Skip to content

Releases: pappasam/toml-sort

Version 0.24.2

19 Nov 14:02
Compare
Choose a tag to compare

Fixed

  • Regression from 0.24.1 and 0.24.0 where sorting inline tables would throw a ValueError if the key in the table had trailing spaces. Resolves #76

Version 0.24.1

18 Nov 02:03
Compare
Choose a tag to compare

Fixed

  • Re-add .pre-commit-hooks. Resolves #75

Version 0.24.0

16 Nov 16:50
Compare
Choose a tag to compare

Fixed

  • Only write to disk if file contents changed

Removed

  • Dropped support for Python 3.7 and 3.8.
  • Dropped support for tomlkit < 0.13.2
  • Removed sphinx documentation.

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