# Install snakefmt with Homebrew, Nix

Snakemake code formatter. Version 2.0.3 via Homebrew; verified 2026-06-27.

## Install

```sh
sudo av install brew:snakefmt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install snakefmt
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#snakefmt
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sn/snakefmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:snakefmt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/snakefmt>
- **Version:** 2.0.3
- **Source summary:** Snakemake code formatter
- **Homepage:** <https://github.com/snakemake/snakefmt/>
- **Repository:** <https://github.com/snakemake/snakefmt>
- **Upstream docs:** <https://github.com/snakemake/snakefmt#readme>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/da/9b/c3dce69468a32d9b2dd9366c41c472b59ecafa28971761e8620466fb288f/snakefmt-2.0.3.tar.gz>
- **Last updated:** 2026-06-27T05:29:21Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- snakefmt (cli)
- snakefmt (alias)

## Dependencies

- python@3.14

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.3
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://github.com/snakemake/snakefmt
- info: No cached GitHub release or tag data was available.
## Project history and usage

snakefmt is the Snakemake code formatter, modeled culturally on opinionated formatters such as Black while targeting Snakefiles and Snakemake-specific syntax.

### Project history

The official GitHub repository was created in February 2020 and v0.1.0 was published in June 2020. The project metadata and README describe it as the uncompromising Snakemake code formatter.

### Adoption history

snakefmt is distributed through Homebrew and Nix in the supplied package metadata and supports pre-commit integration from its official README, making it easy to add to package and repository hygiene workflows.

### How it is used

Users run snakefmt against Snakefiles or directories. By default it searches parent directories for pyproject.toml and reads snakefmt and Black configuration from that file; command-line options override config values.

### Why package nerds care

snakefmt matters to package and workflow maintainers because it standardizes Snakemake formatting, can run in pre-commit, and reduces noisy diffs in scientific workflow repositories.

### Timeline

- 2020: Official GitHub repository created.
- 2020: v0.1.0 published on GitHub releases.
- 2026: Project metadata lists snakefmt 2.x and a Python 3.11+ requirement.

### Related projects

- Snakemake
- Black
- shfmt
- pre-commit

### Sources

- <https://api.github.com/repos/snakemake/snakefmt>
- <https://api.github.com/repos/snakemake/snakefmt/releases>
- <https://github.com/snakemake/snakefmt>
- <https://github.com/snakemake/snakefmt/blob/master/pyproject.toml>
- input source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyproject.toml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** snakefmt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - snakefmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/sn/snakefmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [yapf](https://www.automicvault.com/pkg/brew/yapf/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [cljfmt](https://www.automicvault.com/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [fprettify](https://www.automicvault.com/pkg/brew/fprettify/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, python.
- [gci](https://www.automicvault.com/pkg/brew/gci/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [gnu-indent](https://www.automicvault.com/pkg/brew/gnu-indent/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [mdformat](https://www.automicvault.com/pkg/brew/mdformat/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, python.
- [stylish-haskell](https://www.automicvault.com/pkg/brew/stylish-haskell/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [stylua](https://www.automicvault.com/pkg/brew/stylua/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [gersemi](https://www.automicvault.com/pkg/brew/gersemi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-style, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/snakefmt.yml](https://github.com/automic-vault/db/blob/main/combined/snakefmt.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
