Skip to content

Releases: pappasam/toml-sort

Version 0.21.0

29 Dec 07:39
Compare
Choose a tag to compare

This is a pretty big comment-related release. Resolves the long-standing issue: #11.

Changed

  • Header, Footer, and Block comments are retained by default and can be disabled with new CLI options.

Added

  • New CLI comment-removal options: --no-comments, --no-header-comments, --no-footer-comments, --no-inline-comments, --no-block-comments
  • The ability to configure spaces before inline comments with --spaces-before-inline-comment

Deprecated

  • The CLI option: --no-header. This will be removed in a future release and is replaced by --no-header-comments

Version 0.20.2

28 Dec 05:01
Compare
Choose a tag to compare

Fixed

  • An issue where the sorter fails with boolean values in file. See #29 and #31

Version 0.20.1

31 Aug 18:12
Compare
Choose a tag to compare

Fixed

  • Preserve inline comments for boolean values. See: #27

Version 0.20.0

31 Mar 00:13
Compare
Choose a tag to compare

Added

  • Support configuring cli with pyproject.toml configuration file.

Changed

  • Moved CLI from click to argparse.
  • Update minimum version of tomlkit to 0.8.0. This drops support for Python 3.6.

Version 0.19.0

01 Apr 23:11
Compare
Choose a tag to compare

Added

  • CLI option to ignore case while sorting

Version 0.18.0

19 Apr 21:11
Compare
Choose a tag to compare

0.18.0

Note: in this release, we've discovered a strange bug (we believe in tomlkit) where, sometimes, AOT elements are ordered without our consent. One of the cli tests has been marked xfail. If you'd like to help figure out why, we're always looking for contributors!

Added

  • Support for multiple FILENAME arguments in the CLI. Used for precommit / linting multiple files. Thanks @atugushev!
  • Pre-commit hook

Changed

  • Provide more-comprehensive error messages for interactive CLI usage.

Version 0.17.0

24 Nov 20:53
Compare
Choose a tag to compare

Added

  • This CHANGELOG.md

Changed

  • tomlkit>=0.5.8. Upstream library made some important fixes.
  • Add isort, make part of pre-commit pipeline

Fixed

  • mypy, pylint, black, and isort all pass.

Removed

  • AOT workaround in AOT parser. Latest version of tomlkit no longer spits out duplicate elements for AOT.

Readme bug fixes

19 Aug 02:39
Compare
Choose a tag to compare
v0.16.1

Fix examples in readme / cli

Add "in-place" and "check" options

19 Aug 02:36
Compare
Choose a tag to compare
  • --check: makes toml-sort usable as a linter. Will simply return non-zero status code if a file needs to be formatted. Now you can use this with pre-commit!
  • --in-place: from the command line, you can now format a toml file in-place.

Add shields to docs

18 Aug 16:04
Compare
Choose a tag to compare

Not a functional release; just adds pypi shields to the readme.