devel/py-ufmt 2.9.1_1 FreeBSD
Safe, atomic formatting with black and usort
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 63.1 KiB, 379.6 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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-ufmt | 2.9.1_1 |
| DragonFly | devel/py-ufmt | 2.8.0 |
Install
Binary package:
pkg install py312-ufmt
From the ports tree:
cd /usr/ports/devel/py-ufmt/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-ufmt>0:devel/py-ufmt
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.9.1_1 | 2.9.1_1 | - | 2.8.0 | 2.9.1_1 |
| FreeBSD:14:quarterly | 2.9.1_1 | 2.9.1_1 | n/a | 2.8.0 | 2.9.1_1 |
| FreeBSD:15:latest | 2.9.1_1 | 2.9.1_1 | n/a | 2.8.0 | 2.8.0 |
| FreeBSD:15:quarterly | 2.9.1_1 | 2.9.1_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.9.1_1 | 2.9.1_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<4: devel/py-flit-core
Runtime 8
${PYTHON_PKGNAMEPREFIX}black>=20.8b0: devel/py-black${PYTHON_PKGNAMEPREFIX}click>=8.2: devel/py-click${PYTHON_PKGNAMEPREFIX}libcst>=0.4.0: devel/py-libcst${PYTHON_PKGNAMEPREFIX}moreorless>=0.4.0: devel/py-moreorless${PYTHON_PKGNAMEPREFIX}tomlkit>=0.7.2: textproc/py-tomlkit${PYTHON_PKGNAMEPREFIX}trailrunner>=1.2.1: devel/py-trailrunner${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0: devel/py-typing-extensions${PYTHON_PKGNAMEPREFIX}usort>=1.0: devel/py-usort
The full lists below include those, and their dependencies in turn.
Build dependencies 15
Run dependencies 30
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-attrs
- devel/py-black
- devel/py-click
- devel/py-colorama
- devel/py-libcst
- devel/py-moreorless
- devel/py-mypy_extensions
- devel/py-packaging
- devel/py-pathspec
- devel/py-platformdirs
- devel/py-pytokens
- devel/py-pyyaml
- devel/py-stdlibs
- devel/py-trailrunner
- devel/py-typing-extensions
- devel/py-usort
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/libyaml
- textproc/py-regex
- textproc/py-toml
- textproc/py-tomlkit
No port depends on this one.
Configuration
Options name: devel_ufmt
| Option | Default | Description |
|---|---|---|
| LSP | off | Language Server Protocol support |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ufmt-2.9.1.tar.gz | 25101 | 7b81af4f05b332354d08f86e80e8a3b916617c11fb886f7084635c9c6e762791 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.