Skip to content

Commit c7f9d96

Browse files
committed
feat(CI): Add support for codespell via pre-commit hooks
1 parent 79bb773 commit c7f9d96

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ storage*/
1111
.idea/
1212
# Python virtual environment
1313
.venv/
14+
# npm node_modules
15+
node_modules/
1416
# Python bytecode caches
1517
__pycache__
1618
*.pyc

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ repos:
3434
entry: detect-secrets-hook
3535
language: system
3636
stages: [pre-commit]
37+
- id: codespell
38+
name: codespell
39+
entry: codespell
40+
language: python
41+
types: [text]
42+
stages: [pre-commit]

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dependencies = [
4747
[project.optional-dependencies]
4848
dev = [
4949
"build == 1.2.2",
50+
"codespell == 2.4.1",
5051
"conventional-pre-commit == 4.0.0",
5152
"coverage == 7.6.12",
5253
"detect-secrets == 1.5.0",
@@ -119,6 +120,11 @@ max-line-length = 120
119120
[tool.ruff.lint.per-file-ignores]
120121
"tests/**/test_**.py" = ["D101", "D102", "D103"] # Don't require doc strings for tests
121122

123+
[tool.codespell]
124+
ignore-words-list = [
125+
"upport" # Part of regular expressions in cliff.toml
126+
]
127+
122128
[build-system]
123129
requires = ["setuptools", "setuptools-scm"]
124130
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)