snakefmt
« Back to VersTracker
Description:
Snakemake code formatter
Type: Formula  |  Latest Version: 0.11.2@0  |  Tracked Since: Oct 12, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: snakemake formatter workflow bioinformatics linting
Install: brew install snakefmt
About:
snakefmt is an opinionated code formatter for Snakemake files. It automatically reformats Snakemake code to a consistent style, making workflows easier to read and maintain. The tool helps teams enforce coding standards and reduces time spent on manual formatting debates.
Key Features:
  • Automatic formatting of Snakemake syntax
  • Configurable style rules via pyproject.toml
  • CLI tool for single files or entire directories
  • Integration with pre-commit hooks
  • Black-compatible formatting engine
Use Cases:
  • Enforcing consistent style across Snakemake workflow repositories
  • Integrating formatting into CI/CD pipelines for bioinformatics pipelines
  • Automatically formatting existing Snakemake files to a standard style
Alternatives:
  • Black – General Python formatter that does not handle Snakemake-specific syntax
  • manual formatting – Time-consuming and inconsistent across teams
Version History
Detected Version Rev Change Commit
Oct 12, 2025 10:24am 0 VERSION_BUMP 7ed7f27f
Oct 11, 2024 8:52pm 0 VERSION_BUMP 592d46bb
Oct 11, 2024 12:39pm 0 VERSION_BUMP 12b5803b
Sep 13, 2024 10:50pm 0 VERSION_BUMP 578938f6