feat(build): use Nix flake, go-task and lefthook
This commit is contained in:
parent
c8e984681d
commit
1c91865705
5 changed files with 154 additions and 60 deletions
21
lefthook.yaml
Normal file
21
lefthook.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue