FreeBSD.software
Home/devel/py311-ufmt

py311-ufmt

2.9.0

Safe, atomic formatting with black and usort

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.

Origin: devel/py-ufmt
Category: devel
Size: 435KiB
License: MIT
Maintainer: sunpoet@FreeBSD.org
Dependencies: 9 packages
Required by: 0 packages
$pkg install py311-ufmt

Dependencies (9)

More in devel