Skip to content

Commit d2576e2

Browse files
authored
refactor: migrate to typos (#425)
refactor: use typos
1 parent af64f7e commit d2576e2

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ repos:
2525
rev: "v0.11.0"
2626
hooks:
2727
# Run the linter.
28-
- id: ruff
29-
types_or: [ python, pyi ]
30-
args: [ --fix ]
31-
# Run the formatter.
32-
- id: ruff-format
33-
types_or: [ python, pyi ]
34-
- repo: https://github.com/codespell-project/codespell
35-
rev: v2.4.1
28+
- id: ruff
29+
types_or: [python, pyi]
30+
args: [--fix]
31+
# Run the formatter.
32+
- id: ruff-format
33+
types_or: [python, pyi]
34+
- repo: https://github.com/crate-ci/typos
35+
rev: v1.30.3
3636
hooks:
37-
- id: codespell
38-
exclude: "uv.lock|examples/us_state_lookup.json"
39-
additional_dependencies:
40-
- tomli
37+
- id: typos
4138
- repo: https://github.com/sphinx-contrib/sphinx-lint
4239
rev: "v1.0.0"
4340
hooks:

typos.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default]
2+
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*codespell:ignore\\s*$"]
3+
4+
[default.extend-words]
5+
selectin = 'selectin'
6+
froms = 'froms'
7+
8+
[files]
9+
extend-exclude = ["docs/changelog.rst", '/examples/us_state_lookup.json']

0 commit comments

Comments
 (0)