Changelog
2.16.0 (2026-01-11)
- Drop Python 3.8 support, add Python 3.11, 3.13 and 3.14 support
- Update GoogleJavaFormatter to 1.33.0
- Update ktfmt to version 0.61
- Update ktlint to version 1.8.0
- Update palantir to version 2.83.0
- [internal] Add Dependabot configuration for automated dependency updates (GitHub Actions and pip)
- [internal] Add auto-merge workflow for Dependabot PRs
- [internal] Update pre-commit hooks, github actions, tox and mypy configurations
- [internal] Apply pyupgrade modernizations (remove encoding pragmas, use modern Python syntax)
2.15.0 (2025-06-25)
- Update GoogleJavaFormatter to 1.27.0
- Update ktfmt to version 0.55
- Update ktlint to version 1.6.0
- Update palantir to version 2.67.0
- Enhance documentation to highlight that TOML formatting might be removing comments. PR #249 - @maresb - @corneliusroemer
- Improve
pretty-format-rustto better manage workspaces PR #263 - @GUIpsp
2.14.0 (2024-07-14)
- Update GoogleJavaFormatter to 1.22.0
- Update ktfmt to version 0.51 NOTE: This updates removes dropbbox style formatting (here).
- Update KTLint to version 1.3.1
- [Kotlin] Improved support for ktfmt - PR #224 - @mxr
- [Java/Kotlin] Enable checksum verification of download artifacts - PR #222 - @mxr
- [Rust] Add support for non-root cargo projects - PR #217 - @AJIOB
- [Java] Add support for palantir-cli - PR #213 - @eirnym
- [internal] Update pre-commit hooks, github actions and removed deprecated usage of
pkg_resources
2.13.0 (2024-03-31)
- Update KTLint to version 1.2.1
- Update GoogleJavaFormatter to version 1.21.0
- Ensure that TOML processing assumes that the files have UTF-8 encoding - PR #208 - @Jayman2000 thanks for your contribution
- Pretty TOML allows for customisation of inline-comment-space - PR #205 - @alkatar21 thanks for your contribution
- [internal] Update pre-commit hooks, github actions
2.12.0 (2023-12-19)
- Add support for ktfmt Kotlin code formatter - PR #196 - @aandres thanks for your contribution
- Update KTLint to version 1.0.1
2.11.0 (2023-10-11)
- Update KTLint to version 1.0.0
- Update GoogleJavaFormatter to 1.18.1
- Make library compatible with Python 3.12 - PR #182 - @Delgan thanks for your contribution
2.10.0 (2023-07-13)
- Add
--indentand--trailing-commasarguments forpretty-format-toml- PR #160 - @maresb thanks for your contribution - Improve
pretty-format-kotlininteraction withktlintto prevent attempts to format not kotlin files, (Issue #162) - PR #163 - @languitar thanks for your contribution - Improve
pretty-format-kotlinto reduce log verbosity - PR #177 - @Velfi thanks for your contribution - Allow
pretty-format-javaandpretty-format-kotlinto leverage pre downloaded JAR instead of fetching it - PR #156 / PR #??? - @fabasoad thanks for your contribution - Update KTLint to 0.50.0
2.9.0 (2023-05-13)
- Update GoogleJavaFormatter to 1.17.0
- Update KTLint to 0.49.1
- Bug fix pretty-format-yaml Sequecence item indentation should condider offset as part of the indentation, #154 (comment) has more details. Thanks @datalogics-kam and @fmigneault for reporting the issue and helping me identify the underlying root cause.
2.8.0 (2023-03-17)
- Update GoogleJavaFormatter to 1.16.0
2.7.0 (2023-02-18)
- Add support for customisable offset in
pretty-format-yaml- PR #143 - Update KTLint to 0.48.2
2.6.0 (2023-01-20)
- Fix
pretty-format-tomlto be compatible with latesttoml-sortlibraries - Thanks @liblaf and @stewartHutchins for the support on having toml prettification working again The fix has been carried over multiple PRs (PR #134, PR #136 and PR #137). - Internal build fix (failures caused by
toxmajor release) - PR #141, inspired from PR #135 - Thanks @malmans2 for the support - Update KTlint to 0.48.1 - PR #140 - Thanks @detouched for the upgrade
2.5.0 (2022-12-05)
- Lift JDK 16+ restriction - PR #123 - @harti2006 thanks for your contribution
- Update KTlint to 0.47.1 - PR #125
- pretty_format_rust does no longer use explicit rust versions - PR #126
2.4.0 (2022-07-01)
- Update GoogleJavaFormatter to 1.15.0
- Update KTlint to 0.45.1
- Ensure Python 3.10 support and drop Python3.6 guaranteed support - PR #114 / PR #115
- Updated prettifier library for INI files (from
configobjtoconfig_formatter) to provide more deterministic output and proper comments handling - PR #113 - @Delgan thanks for your contribution pretty-format-yamlallows customization of max line length - PR #104- More explicit error messages in case of prettifier failires - PR #116
- Use explicit encoding within INI prettifier - PR #102 - @hbre thanks for your contribution
2.3.0 (2022-02-17)
- Update GoogleJavaFormatter to 1.14.0
- Update KTlint to 0.44.0
- Use explicit encoding within YAML prettifier - PR #92 - @passionsfrucht thanks for your contribution
2.2.0 (2021-08-08)
- Make download of external artifacts resilient to systems with temporary directory on different disk partitions - @psmit and @kbalston thanks for your contribution
- Make usage of Google Java Formatter compatible with JDK16+ - @ostrya thanks for your contribution
- Update GoogleJavaFormatter to 1.11.0
- Bump KTlint to 0.42.1
- Misc github workflow updates (testing on Python 3.9, better tracking of tool versions tested, etc.)
- Improved error message in case of Google Java Formatter and KTLint not supported Java Version
ℹ: pretty-format-java now supports Java 16+
⚠: pretty-format-kotlin supports Java up to Java 15
2.1.0 (2021-05-28)
- Bump KTlint to 0.40.0
- Update GoogleJavaFormatter to 1.10.0
2.0.0 (2021-01-16)
- Preserve comments in while formatting
inifiles. PR #45 - @Skylion007 thanks for your contribution - Preserve comments in while formatting
tomlfiles. PR #46 - @Skylion007 thanks for your contribution - ⚠ Drop Python2 support. PR #48
- Update KTLint to 0.40.0
1.6.1 (2020-10-31)
- Internal fix of downloaded files path. PR #43
1.6.0 (2020-10-24)
- Update KTLint to 0.39.0
- Update GoogleJavaFormatter to 1.9
- Run
pretty-format-javaserially to prevent multiple-downloads of the same Java artifact. PR #23 - @ineiti thanks for your contribution - Internal update of download logic to reduce race coditions while download big artifacts from network. PR #24
- Bump min
pre-commitsupported version. PR #27 - Allow
pretty-format-javato modify the Google Java Formatter to use (--google-java-formatter-versionCLI argument). PR #30 - Allow
pretty-format-kotlinto modify the KTLint to use (--ktlint-versionCLI argument). PR #30 - Enhance security in commands execution (prevent shell-injection). PR #38
1.5.0 (2020-06-16)
- Add
--preserve-quotesargument intopretty-format-yaml. PR #16 - @vbisserie thanks for your contribution
1.4.2 (2020-06-09)
- Update KTLint to 0.37.1
1.4.1 (2020-06-03)
- Update KTLint to 0.37.0
1.4.0 (2020-05-20)
- Improve handling of multi-document YAML files. PR #3 - @dan-cohn thanks for your contribution
pretty-format-javadoes default to Google style. Add--aospargument for Android Open Source Project style. PR #8 - @ChenAndrew thanks for your contribution.- Update GoogleJavaFormatter to 1.8
1.3.2 (2020-01-25)
- Definitive packaging fix
1.3.1 (2020-01-24)
- Update Packaging informations
⚠️ This version broke module retrieval (😞) while improving quality of PyPi uploaded information. You're recommended to use a more recent version of the library.
1.3.0 (2020-01-24)
- Update KTLint to 0.36.0
- Enhange
pretty-format-yamlto deal with YAML files containing primitive types only - PR #1 - @dan-cohn thanks for your contribution
1.2.5 (2019-11-22)
- Update KTLint to 0.35.0
1.2.4 (2019-07-19)
- Update KTLint to 0.34.0 and fix KTLint GitHub link
1.2.3 (2019-02-14)
- Update Google Java Formatter to 1.7 and KTlint to 0.30.0
1.2.2 (2018-11-20)
- pretty-format-rust fails if
cargo fmtfails
1.2.1 (2018-11-20)
- no-diff release
1.2.0 (2018-11-20)
- Bump KTlint to 0.29.0
- Remove duplicated filenames from command execution
1.1.3 (2018-09-02)
- Last fix to cargo invocations to use the environmentally defined toolchain
1.1.2 (2018-09-02)
- Bump KTlint to 0.27.0
1.1.1 (2018-09-02)
- Ensure that generated files end with a new line
- Allow rust toolchain customization via
RUST_TOOLCHAINenvironment variable
1.1.0 (2018-07-29)
- Add pretty formatters for INI, Rust and TOML files
1.0.1 (2018-07-20)
- Improve detection of modified files from kotlin formatter
1.0.0 (2018-07-20)
- Initial release: added pretty formatters for Golang, Java, Kotlin and YAML