nix/lefthook.yaml
Yorick Barbanneau 67e7a3269d feat(build): add typos checking
for both commitmsg ans staged_files
2024-04-17 16:49:46 +02:00

21 lines
383 B
YAML

---
skip_output: [meta, success]
no_tty: true
commit-msg:
commands:
lint:convco:
run: cat {1} | convco check --from-stdin
lint:typos:
run: cat {1} | typos -
pre-commit:
parallel: false
commands:
lint:typos:staged_files:
run: typos {staged_files}
pre-push:
parallel: false
commands:
check:nix:
tags: check
run: nix flake check