Installation¶
Cargo (Rust)¶
Homebrew (macOS/Linux)¶
Pre-built binaries are available for macOS (arm64, x86_64) and Linux (x86_64). No Rust toolchain needed.
From Source¶
Pre-commit / prek¶
If you only need scythe for pre-commit hooks, add it directly to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/Goldziher/scythe
rev: v0.6.0
hooks:
- id: scythe-fmt
- id: scythe-lint
See Pre-commit Hooks for all available hooks and configuration.