Skip to content

Releases: pappasam/toml-sort

Version 0.23.1

08 May 04:14
Compare
Choose a tag to compare

Fixed

  • Error where the first override introduced tomlkit wrappers into the configuration and caused serialization problems for the dataclass: #58

Version 0.23.0

19 Mar 18:09
Compare
Choose a tag to compare

Added

  • Ability to override sort configuration per key in configuration: #52
  • Option to sort particular keys first in output: #53, updated by #54

Fixed

  • Issue where files that contain only comments are doubled: #51

Version 0.22.4

27 Feb 04:27
Compare
Choose a tag to compare

Fixed

  • Trailing whitespace is no longer added to blank comments
  • An issue where dotted keys raised a TypeError

Version 0.22.3

22 Jan 23:35
Compare
Choose a tag to compare

Fixed

Version 0.22.2

17 Jan 02:07
Compare
Choose a tag to compare

Added

  • New pre-commit hook (toml-sort-fix) that enables users to change, instead of check, their toml files.

Version 0.22.1

31 Dec 17:42
Compare
Choose a tag to compare

Fixed

  • Issue where an IndexError exception was raised on an empty array. See: #36

Version 0.22.0

31 Dec 08:30
Compare
Choose a tag to compare

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

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