Skip to content

Commit cd470ff

Browse files
committed
pre-commit: Add codespell
1 parent 703fe0e commit cd470ff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ repos:
1212
- id: black
1313
language_version: python3.9
1414

15+
- repo: https://github.com/codespell-project/codespell
16+
rev: v2.4.1
17+
hooks:
18+
- id: codespell # See pyproject.toml for args
19+
additional_dependencies:
20+
- tomli
21+
1522
- repo: https://github.com/pycqa/flake8
1623
rev: 7.2.0
1724
hooks:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ target-version = [
8282
"py39",
8383
]
8484

85+
[tool.codespell]
86+
skip = "AUTHORS.rst,*.po"
87+
8588
[tool.isort]
8689
profile = "black"
8790
py_version = "39"

0 commit comments

Comments
 (0)