diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..e5c26af --- /dev/null +++ b/_typos.toml @@ -0,0 +1,3 @@ +[default.extend-words] +doas = "doas" +edn = "edn" diff --git a/lefthook.yaml b/lefthook.yaml index ced9740..76a8dd0 100644 --- a/lefthook.yaml +++ b/lefthook.yaml @@ -4,8 +4,15 @@ no_tty: true commit-msg: commands: - lint:commitmsg: + 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: