Skip to content

Releases: snakemake/snakefmt

snakefmt v0.7.0

08 Nov 10:45
f136a7e
Compare
Choose a tag to compare

Features

  • add support for new exclude expressions in use rule statements (9f03019)

Bug Fixes

  • do not align the inside of multiline strings [#123]] (bb4aabf)
  • don't format r-strings [#123] (bcc5371)
  • formatting of triple quoted strings [#152] (764e11d)
  • line spacing after snakemake keyword (beca978)

snakefmt v0.6.1

13 Jun 00:20
3dbd524
Compare
Choose a tag to compare

Added

Fixed

  • Keyword argument lambdas are now allowed inside rules [[#135][135]]
  • Improve reported line number in Snakefile when black fails to parse [[#127][127]]
  • Better handling of snakemake code inside nested if-else statements with comments at differing indentation levels [[#126][126]] - a HUGE thank you to @siebrenf for testing

0.6.1 - 01/06/2022

01 Jun 01:03
96aac82
Compare
Choose a tag to compare

0.6.1

Added

Fixed

  • Keyword argument lambdas are now allowed inside rules [#135]
  • Improve reported line number in Snakefile when black fails to parse [#127]
  • Better handling of snakemake code inside nested if-else statements with comments at differing indentation levels [#126] - a HUGE thank you to @siebrenf for testing

snakefmt v0.6.0

03 Mar 11:07
d233dfa
Compare
Choose a tag to compare

Features

  • add template_engine keyword from Snakemake 7.0 (1502504)

0.5.0

15 Feb 23:17
Compare
Choose a tag to compare

0.5.0

Added

  • Support for prefix and default_target keywords [#131]

Changed

  • Updated snakemake dependency to ^6.15.0
  • Updated black dependency to stable version (v22.1.0). See the release changes
    for details of style changes. This also required updating click to v8.0.0.

Fixed

  • Fix edge case for keywords inside Python if/else [#115]

Removed

  • No longer raise error if multiple keywords have the same name (e.g. rule a used
    twice)

Version 0.4.4

18 Oct 16:21
Compare
Choose a tag to compare

Fixed

  • Collapsing of multi-line strings does not cause syntax error now [#118]
  • Version detection adapts to python version
  • Single-quoted multi-line strings are now supported [#121]

Credit

#118 @fgypas @SultanOrazbayev @Benjamin-Lee

Version 0.4.3

04 Sep 03:57
a3e8518
Compare
Choose a tag to compare

Added

Changed

  • Upgraded minimum black version to 21.7b0 [#116] (@jalaziz)

Version 0.4.2

29 Jul 09:23
Compare
Choose a tag to compare

Fixed

  • Three parsing-related bugs:
    • Complex lambda function syntax ([#108])
    • Argument unpacking ([#109])
    • Multiline parameters ([#111])

Version 0.4.1

09 Jun 09:24
Compare
Choose a tag to compare

Fixed

  • Add support for multiple anonymous rules, as per snakemake grammar (#103)
  • Newline bug in use syntax (#106)

Version 0.4.0

09 Mar 22:17
Compare
Choose a tag to compare

Added

  • Support for module syntax: module keyword and use rule syntax ([#99][99])
  • Support for containerized keyword

Changed

  • Updated snakemake dependency to ^6.0.0 ([#99][99])