test: add lefthook as git hook

This commit is contained in:
Yorick Barbanneau 2024-04-16 03:03:25 +02:00
parent 818952d910
commit 2c29a52d74

14
lefthook.yaml Normal file
View file

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