feat(build): add typos checking

for both commitmsg ans staged_files
This commit is contained in:
Yorick Barbanneau 2024-04-17 16:49:46 +02:00
parent cc4d0a7d3f
commit 67e7a3269d
2 changed files with 11 additions and 1 deletions

3
_typos.toml Normal file
View file

@ -0,0 +1,3 @@
[default.extend-words]
doas = "doas"
edn = "edn"

View file

@ -4,8 +4,15 @@ no_tty: true
commit-msg: commit-msg:
commands: commands:
lint:commitmsg: lint:convco:
run: cat {1} | convco check --from-stdin 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: pre-push:
parallel: false parallel: false
commands: commands: