Skip to content

Releases: snakemake/snakefmt

Version 0.3.1

15 Feb 12:12
Compare
Choose a tag to compare

Fixed

  • Support nested python code following python/snakemake nested code ([#96])

Removed

  • Dockerfile has been removed as the
    biocontainers images are smaller
    and some recent changes to the cryptography dependency require Rust to be installed
    (on Alpine) which further bloats our DockerHub image.

Version 0.3.0

14 Feb 08:09
Compare
Choose a tag to compare

Changed

  • Update click, toml and black (major version) to latest releases (@jlewis91) [#97]

The reason for the minor version bump is that the new version of black may give slightly different formatting to previous versions.

Version 0.2.6

14 Feb 08:08
Compare
Choose a tag to compare

Fixed

  • Remove use of a Python 3.8-only logging module feature (#89)
  • Update Python support to ^3.6.1 due to use of typing module NamedTuples
  • Better support for python/snakemake interspersed code (#91; #93)

Version 0.2.5

15 Dec 16:51
Compare
Choose a tag to compare

Added

  • Documentation for integration with Visual Studio Code (#80; thanks @austinkeller)
  • Issue warnings for comment-related formatting (#85)
  • File-specific logging: warnings and errors during reformatting now automatically refer to the raising source file.

Fixed

Better comment-related formatting (#85; thanks @dlaehnemann):

  • PEP8 inline comment formatting: use 2 spaces
  • Comments above keywords stay untouched
  • Inline comments in inline-formatted keywords get relocated above
    keyword

Version 0.2.4

12 Nov 23:25
Compare
Choose a tag to compare

Added

Fixed

  • Proper indentation of nested if/else python code mixed with snakemake keywords [#78]

Changed

  • Vim plugin imports: snakefmt and black module imports raise distinct errors (@dcroote) [#79]

Version 0.2.3

25 Oct 16:28
Compare
Choose a tag to compare

Added

  • Add a vim plugin to snakefmt [#62] and instructions to use it
  • New searching for project configuration. Used to look for pyproject.toml in current working directory, now recursively search for it in directories of formatted file(s).

Version 0.2.2

07 Oct 00:26
Compare
Choose a tag to compare

0.2.2

Fixed

  • black config was not being used if it did not contain [tool.snakefmt] [#73]
  • better handling of black.FileMode params [#73]

Version 0.2.1

30 Sep 23:21
Compare
Choose a tag to compare

Added

  • new scattergather directive to the grammar [#74]

Version 0.2.0

22 Sep 00:28
Compare
Choose a tag to compare

0.2.0

Added

  • repeated top-level, single-parameter keywords get placed on consecutive lines [#67]

Changed

  • allow --check and --diff to be used together [#68]

Version 0.1.5

11 Sep 00:38
Compare
Choose a tag to compare

0.1.5

Fixed

  • dedented comments were being tied to previous indented context in run directive
    [#61]
  • single version sourcing from pyproject.toml was failing on pip installed distributions [#65]. Fixed by using importlib_metadata.