Releases: pappasam/toml-sort
Releases · pappasam/toml-sort
Version 0.21.0
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
Version 0.20.1
Fixed
- Preserve inline comments for boolean values. See: #27
Version 0.20.0
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
Added
- CLI option to ignore case while sorting
Version 0.18.0
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
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
, andisort
all pass.
Removed
- AOT workaround in AOT parser. Latest version of tomlkit no longer spits out duplicate elements for AOT.
Readme bug fixes
v0.16.1 Fix examples in readme / cli
Add "in-place" and "check" options
- --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
Not a functional release; just adds pypi shields to the readme.