mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Add pre-commit hooks for nixfmt, deadnix, and statix
Also, exclude .pre-commit-config.yaml from the SOPS differ
This commit is contained in:
parent
c1a53997ce
commit
0dea1aab28
23 changed files with 50 additions and 41 deletions
25
.pre-commit-config.yaml
Normal file
25
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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", "--", "."]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue