Skip to content

Commit 7e97cb9

Browse files
authored
pre-commit add spelling checking with crate typos (#37)
I already fixed a lot of spelling in previous PRs using typos from the command line https://github.com/crate-ci/typos https://github.com/crate-ci/typos/blob/master/docs/pre-commit.md In future we can customize more by adding info to the config file: https://github.com/crate-ci/typos/blob/master/docs/reference.md
1 parent 0d4e812 commit 7e97cb9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/linters/.typos.toml

Whitespace-only changes.

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ repos:
4444
args: [--strict, -c=.github/linters/.yaml-lint.yml]
4545
types: [yaml]
4646
files: \.ya?ml$
47+
- repo: https://github.com/crate-ci/typos
48+
rev: v1.34.0
49+
hooks:
50+
- id: typos
51+
files: \.(html|md|py|sh|ya?ml)$
52+
args: [--config=.github/linters/.typos.toml]

0 commit comments

Comments
 (0)