feat(build): add typos checking
for both commitmsg ans staged_files
This commit is contained in:
parent
cc4d0a7d3f
commit
67e7a3269d
2 changed files with 11 additions and 1 deletions
3
_typos.toml
Normal file
3
_typos.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[default.extend-words]
|
||||||
|
doas = "doas"
|
||||||
|
edn = "edn"
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue