devel/py-ufmt 2.8.0 DragonFly
Safe, atomic formatting with black and usort
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 59.1 KiB, 429.2 KiB installed
Description
ufmt is a safe, atomic code formatter for Python built on top of black and usort:
- Black makes code review faster by producing the smallest diffs possible. Blackened code looks the same regardless of the project you're reading.
- usort is a safe, minimal import sorter. Its primary goal is to make no "dangerous" changes to code, and to make no changes on code style.
ufmt formats files in-memory, first with usort and then with black, before writing any changes back to disk. This enables a combined, atomic step in CI/CD workflows for checking or formatting files, without any chance of conflict or intermediate changes between the import sorter and the code formatter.
In the other systems
The newest version among them is 2.9.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-ufmt | 2.8.0 | none known | - | [email protected] | - |
| FreeBSD | devel/py-ufmt | 2.9.1_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-ufmt | 2.9.1_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-ufmt | 2.9.1_1 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install py311-ufmt
From DPorts:
cd /usr/dports/devel/py-ufmt && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 9
No port depends on this one.