feat(build): use Nix flake, go-task and lefthook

This commit is contained in:
Yorick Barbanneau 2024-09-03 00:28:20 +02:00
parent c8e984681d
commit 1c91865705
5 changed files with 154 additions and 60 deletions

21
lefthook.yaml Normal file
View file

@ -0,0 +1,21 @@
---
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