Skip to content

Commit

Permalink
MNT: add a typo checker pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 20, 2024
1 parent c95de37 commit 6e74830
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ repos:
- id: end-of-file-fixer
- id: check-toml

- repo: https://github.com/crate-ci/typos
rev: v1.18.1
hooks:
- id: typos

# this hook is broken on Python 3.12 because it depends on nodeenv, which is
# still using removed and deprecated parts of the Python stdlib
# see https://github.com/ekalinin/nodeenv/issues/343
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ exclude src/gpgi/_lib.py

recursive-exclude tests *
exclude .pre-commit-config.yaml
exclude _typos.toml
exclude constraints/*
exclude requirements/*
3 changes: 3 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
ND = "ND"
NDArray = "NDArray"

0 comments on commit 6e74830

Please sign in to comment.