From 67e7a3269da0afe8dd0e3b25f3fd21763f75dc77 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 17 Apr 2024 16:49:46 +0200 Subject: [PATCH] feat(build): add typos checking for both commitmsg ans staged_files --- _typos.toml | 3 +++ lefthook.yaml | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 _typos.toml 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: