mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Add pre-commit hooks for nixfmt, deadnix, and statix
Also, exclude .pre-commit-config.yaml from SOPS processing
This commit is contained in:
parent
c1a53997ce
commit
f830613ded
21 changed files with 42 additions and 39 deletions
18
.pre-commit-config.yaml
Normal file
18
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: nixfmt
|
||||
name: nixfmt
|
||||
entry: nixfmt
|
||||
language: system
|
||||
types: [nix]
|
||||
pass_filenames: false
|
||||
args: ["."]
|
||||
|
||||
- id: deadnix
|
||||
name: deadnix
|
||||
entry: deadnix
|
||||
language: system
|
||||
types: [nix]
|
||||
args: ["./modules", "./lib"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue