Compare commits

...

3 commits

Author SHA1 Message Date
67e7a3269d feat(build): add typos checking
for both commitmsg ans staged_files
2024-04-17 16:49:46 +02:00
cc4d0a7d3f chore: update git ignored files 2024-04-17 16:47:39 +02:00
9eb8afe259 fix(README): fix some typos 2024-04-17 16:45:34 +02:00
4 changed files with 16 additions and 3 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
result result
.direnv/
.envrc/
.task/

View file

@ -19,7 +19,7 @@ doas nixos-rebuild switch --flake ".#mrmeeseeks"
## Update manual packages from github ## 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`: reproductibility. Theses hashed can be obtain with `nix-prefetch-github`:
```shell ```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.

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: