dots/.pre-commit-config.yaml
Gene Liverman 0dea1aab28
Add pre-commit hooks for nixfmt, deadnix, and statix
Also, exclude .pre-commit-config.yaml from the SOPS differ
2026-03-14 11:23:11 -04:00

25 lines
485 B
YAML

repos:
- repo: local
hooks:
- id: nixfmt
name: nixfmt
entry: nix
language: system
types: [nix]
pass_filenames: false
args: ["fmt"]
- id: deadnix
name: deadnix
entry: deadnix
language: system
types: [nix]
args: ["./modules", "./lib"]
- id: statix
name: statix
entry: statix
language: system
types: [nix]
args: ["check", "--", "."]