Skip to content

Releases: BlankSpruce/gersemi

0.6.1

29 Dec 16:00
Compare
Choose a tag to compare

Fixed

  • on Python 3.6 sqlite related TypeError isn't raised anymore

0.6.0

19 Nov 21:28
Compare
Choose a tag to compare

Added

  • information about formatted files is cached so that subsequent runs can avoid processing already formatted files
  • support for commands introduced between 3.16 and 3.19 releases of CMake

Changed

  • minor change to how OUTPUT argument in file(GENERATE) is formatted

0.5.0

25 Aug 16:19
Compare
Choose a tag to compare

Added

  • minor performance improvements
  • support for Python 3.6

Changed

  • files are taken as input only once even if provided multiple times
  • files are no longer overwritten if reformatting wouldn't lead to change of content
  • removed dependency to packaging

0.4.0

06 Aug 14:14
Compare
Choose a tag to compare

Added

  • some performance improvements
  • relaxed dependency to lark so that 0.9 can be used as well
  • loading configuration from .gersemirc but command line arguments still take precedence
  • colorized diffs with --color

Fixed

  • comments no longer interfere in splitting arguments by keywords which led to undesired formatting (#1)

0.3.1

20 Jul 17:10
Compare
Choose a tag to compare

Fixed

  • line comments in unknown custom commands are preserved in their original form
  • fail-safe for AST mismatch (between before and after reformatting) now properly reports file where the problem occured

0.3.0

18 Jul 15:08
Compare
Choose a tag to compare

Added

  • utilize multiple cores if avaiable through multiprocessing module
  • use --quiet to suppress non-error message on stderr
  • support for commands from cmake-modules section of CMake documentation
  • support formatting of custom commands without keyworded arguments
  • custom command definitions can be marked now with # gersemi: ignore to suppress generating specialized formatter for these commands

Changed

  • commands with PROPERTIES keyword such as set_directory_properties now are formatted in uniform way as other commands with keyworded arguments

Fixed

  • idempotence of preserving formatting of unknown custom commands

0.2.2

23 Jun 15:52
Compare
Choose a tag to compare

Fixed

  • fixed condition syntax formatting edge-case with opening parenthesis indentation

0.2.1

20 Jun 16:42
Compare
Choose a tag to compare

Fixed

  • Missing value for one value keyword no longer leads to stopping formatting of remaining files in the batch

0.2.0

14 Jun 18:14
Compare
Choose a tag to compare

Added

  • custom commands formatting when definitions of these commands are provided with --definitions
  • preserving CRLF style of newlines if formatted file used that style
  • --version
  • performance improvements

Fixed

  • bracket argument / bracket comment parsing bugfixes
  • removed strict dependency to lark 0.8.0, now anything from 0.8 but below 0.9 should work

0.1.2

14 Feb 18:27
Compare
Choose a tag to compare

Changed

  • formatting of COMMAND keyworded arguments look better when wrapped to line (or multiple lines) instead of listing each constituent of command in separate line