From 9eb8afe2598e1cc87344cbdf8e695a52dffe38f1 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 17 Apr 2024 16:45:34 +0200 Subject: [PATCH 1/3] fix(README): fix some typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d82a7d..a559b32 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ doas nixos-rebuild switch --flake ".#mrmeeseeks" ## Update manual packages from github -Somes of module use `fetchFromGithub` who need *SHA-256* hash to meet +Some modules use `fetchFromGithub` who need *SHA-256* hash to meet reproductibility. Theses hashed can be obtain with `nix-prefetch-github`: ```shell @@ -33,4 +33,4 @@ $ nix-prefetch-ghithub --rev v1.22.0 sindresorhus pure } ``` -In this example whe have obtained the hash for the specific 1.22.0 version. +In this example we have obtained the hash for the specific 1.22.0 version. From cc4d0a7d3fa68202474b5ad5f098b3ca4f5e4f46 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 17 Apr 2024 16:47:39 +0200 Subject: [PATCH 2/3] chore: update git ignored files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index b2be92b..9302510 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ result +.direnv/ +.envrc/ +.task/ From 67e7a3269da0afe8dd0e3b25f3fd21763f75dc77 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 17 Apr 2024 16:49:46 +0200 Subject: [PATCH 3/3] 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: