Skip to content

Releases: snakemake/snakefmt

v2.0.0

22 May 00:09
faf5fa7

Choose a tag to compare

2.0.0 (2026-05-22)

⚠ BREAKING CHANGES

  • shell blocks in rules are now formatted by shfmt by default. Existing Snakefiles may see whitespace and structure changes in their shell directives. Use --no-format-shell or format_shell = false in pyproject.toml to opt out.

Features

v1.1.0

20 Apr 03:19
290531e

Choose a tag to compare

1.1.0 (2026-04-07)

Features

  • add # fmt: off to disable formatting (#280) (e7201e1)

v1.0.0

24 Mar 00:29
d871276

Choose a tag to compare

1.0.0 (2026-03-20)

⚠ BREAKING CHANGES

  • The default formatting behaviour has changed. snakefmt will now automatically reorder rule directives. Users can explicitly opt out by using the --no-sort CLI flag.

Features

v0.11.5

13 Mar 02:26
7c7e9a1

Choose a tag to compare

0.11.5 (2026-03-13)

Bug Fixes

  • correctly format multiple if/elif blocks with Snakemake keywords [closes #239] (a3ecda2)
  • correctly format run blocks with multiple comments [closes #196] (f6a0387)
  • report warning line numbers based on formatted output [closes #241]. (b249a95)

v0.11.4

09 Feb 04:20
49feb0b

Choose a tag to compare

0.11.4 (2026-02-09)

Bug Fixes

  • handle interspersed comments (#193) and complex shell expressions (#129) (5db51bc)
  • preserve comment indentation in run blocks (#267) (5fc754d)

v0.11.3

22 Jan 02:11
5a301ff

Choose a tag to compare

0.11.3 (2026-01-22)

Bug Fixes

v0.11.2

04 Sep 00:58

Choose a tag to compare

0.11.2 (2025-09-04)

Bug Fixes

  • f-string conversion specifier spacing issue (db6427a)

v0.11.1

31 Aug 23:18
da063d0

Choose a tag to compare

0.11.1 (2025-08-31)

Bug Fixes

  • improve robustness and formatting in snakefmt for complex cases (#259) (2f8e693)

v0.11.0

21 Mar 14:10
404d140

Choose a tag to compare

0.11.0 (2025-03-21)

Features

  • adapt to Snakemake 8 and 9 (add inputflags, outputflags, storage directive support, remove version and subworkflow directive support) (4709fcf)
  • add support for inputflags and outputflags (dab68fa)

v0.10.3

21 Mar 12:24
7223a2b

Choose a tag to compare

0.10.3 (2025-03-14)

Documentation