Releases: pappasam/toml-sort
Releases · pappasam/toml-sort
Version 0.23.1
Version 0.23.0
Version 0.22.4
Fixed
- Trailing whitespace is no longer added to blank comments
- An issue where dotted keys raised a
TypeError
Version 0.22.3
Fixed
- Turns out that, at this time,
toml-sort
is only compatible withtomlkit
0.11.2
+. We now make this clear in our dependencies. See: #41 and python-poetry/tomlkit@0.11.1...0.11.2.
Version 0.22.2
Added
- New pre-commit hook (
toml-sort-fix
) that enables users to change, instead of check, their toml files.
Version 0.22.1
Fixed
- Issue where an IndexError exception was raised on an empty array. See: #36
Version 0.22.0
Release entirely related to this PR: #33
Added
- Optionally add the ability to sort inline tables and arrays. New switches added for this functionality:
--sort-inline-tables
and--sort-inline-arrays
, which are implied by the existing--all
option - New options groups to the CLI, to group the related formatting, comment, and sorting arguments
- Switch to add trailing comma to multi-line inline arrays
--trailing-comma-inline-array
- Some additional formatting checks
Changed
- Make sure inline arrays and tables are consistently formatted
- Normalize the formatting for
key = value
pairs, always one space on either side of equals sign
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