Ufmt

Latest version: v2.6.0

Safety actively analyzes 629052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

2.1.0

------

Feature release

- Better support for 3.10+ syntax, enable LibCST native parser by default (127)
- Stronger validation of ufmt config in pyproject.toml (137)

text
$ git shortlog -s v2.0.1...v2.1.0
1 Aarni Koskela
9 Amethyst Reese
5 dependabot[bot]

2.0.1

------

Bugfix release

- Fix index error when formatting files that trigger assertion errors in usort/black (115)

text
$ git shortlog -s v2.0.0...v2.0.1
5 Amethyst Reese
3 dependabot[bot]

2.0.0

------

Feature release

- New: Support for formatting content via stdin (71)
- New: Final report printed after formatting files (101)
- New: Added `--quiet` flag for suppressing reports and non-error messages (101)
- New: Support for running µfmt via GitHub Actions (107)
- New: Official Visual Studio Code extension for µfmt
- New: Refactored core API for public usage (66)
- New: Support for passing black/µsort config factories (66)
- New: Support for passing pre/post-processor functions (66, 72)
- New: `ufmt_paths` now returns a generator yielding results as they complete (76)
- New: Added `return_content` flag to API to save before/after bytes on results (75)
- New: Allow raising `SkipFormatting` from pre/post-processors to skip file (79)
- Fix: Better error handling when formatting files (68)
- Fix: Handle CRLF newlines correctly in diff output and results (85)
- Fix: Added click and libcst to deps list (90)
- Docs: New API reference covering high- and low-level API
- Deprecated: `ufmt_string` will be removed in v3.0, use `ufmt_bytes`
- Breaking change: Dropped support for Python 3.6
- Breaking change: Requires µsort >= 1.0
- Breaking change: `ufmt_file` and `ufmt_paths` require keyword arguments

text
$ git shortlog -s action-v1...v2.0.0
4 Amethyst Reese
2 dependabot[bot]

2.0.0rc1

---------

Release candidate:

- Fix: fake stdin path now resolvable on Windows (100)
- Fix: skipped file message sent to stderr (101)
- New: final report after formatting files (101)
- New: `--quiet` flag for suppressing reports and non-error messages (101)

text
$ git shortlog -s v2.0.0b2...v2.0.0rc1
10 Amethyst Reese
1 dependabot[bot]

2.0.0b2

--------

Beta release

- Fix: sorting empty files is now handled correctly (93)
- Added click and libcst to deps list (90)

text
$ git shortlog -s v2.0.0b1...v2.0.0b2
5 Amethyst Reese

2.0.0b1

--------

Beta release

- Fix: Handle CRLF newlines correctly in diff output and results (85)
- Fix: preserve given path when formatting stdin (77)

text
$ git shortlog -s v2.0.0a4...v2.0.0b1
6 Amethyst Reese
2 dependabot[bot]

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.