feat: add git hook (lefthook)
And remove Makefile
This commit is contained in:
parent
9696ec6889
commit
c666484b22
2 changed files with 26 additions and 48 deletions
26
lefthook.yaml
Normal file
26
lefthook.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
commit-msg:
|
||||
parallel: true
|
||||
commands:
|
||||
|
||||
lint:convco:
|
||||
run: cat {1} | convco check --from-stdin
|
||||
|
||||
lint:typos:
|
||||
run: cat {1} | typos -
|
||||
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
|
||||
nixcheck:
|
||||
glob: "flake.{nix,lock}"
|
||||
run: nix flake check
|
||||
|
||||
shellcheck:
|
||||
glob: "*.sh"
|
||||
run: shellcheck {staged_files}
|
||||
|
||||
shfmt:
|
||||
glob: "*.sh"
|
||||
run: shfmt -d -ln bash -i 4 {staged_files}
|
Loading…
Add table
Add a link
Reference in a new issue