# Install snakefmt with Homebrew, Nix

Snakemake code formatter. Version 2.0.3 via Homebrew; verified 2026-06-27. Also installable with nix: nix profile install nixpkgs#snakefmt.

## 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
- **Version:** 2.0.3
- **Source summary:** Snakemake code formatter
- **Homepage:** <https://github.com/snakemake/snakefmt/>
- **Repository:** <https://github.com/snakemake/snakefmt>
- **Last updated:** 2026-06-27T05:29:21Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- snakefmt (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.0.3
## 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
## 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


## Combined YAML source

View the package source record on GitHub. [combined/snakefmt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/snakefmt.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
