BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-ufmt2.9.1_1
DragonFlydevel/py-ufmt2.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.9.1_12.9.1_1-2.8.02.9.1_1
FreeBSD:14:quarterly2.9.1_12.9.1_1n/a2.8.02.9.1_1
FreeBSD:15:latest2.9.1_12.9.1_1n/a2.8.02.8.0
FreeBSD:15:quarterly2.9.1_12.9.1_1n/an/an/a
FreeBSD:16:latest2.9.1_12.9.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 8

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Run dependencies 30

No port depends on this one.

Configuration

Options name: devel_ufmt

OptionDefaultDescription
LSPoffLanguage Server Protocol support
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
ufmt-2.9.1.tar.gz251017b81af4f05b332354d08f86e80e8a3b916617c11fb886f7084635c9c6e762791
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.