xieme-art/lefthook.yaml
2024-11-08 01:06:23 +01:00

26 lines
440 B
YAML

---
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}