Skip to content

Commit bbf5107

Browse files
committed
➕ Add codespell
1 parent cdcc07a commit bbf5107

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lint := $(ruff) check --select I
1010
fmt := $(ruff) format
1111
mypy := $(run) mypy
1212
mkdocs := $(run) mkdocs
13+
spell := $(run) codespell
1314

1415
##############################################################################
1516
# Local "interactive testing" of the code.
@@ -50,8 +51,12 @@ typecheck: # Perform static type checks with mypy
5051
stricttypecheck: # Perform a strict static type checks with mypy
5152
$(mypy) --scripts-are-modules --strict $(src)
5253

54+
.PHONY: spellcheck
55+
spellcheck: # Spell check the code
56+
$(spell) *.md $(src) $(docs) $(tests)
57+
5358
.PHONY: checkall
54-
checkall: codestyle lint stricttypecheck # Check all the things
59+
checkall: spellcheck codestyle lint stricttypecheck # Check all the things
5560

5661
##############################################################################
5762
# Documentation.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ dev = [
7070
"mkdocs-material>=9.6.9",
7171
"markdown-exec>=1.10.2",
7272
"ruff>=0.12.9",
73+
"codespell>=2.4.1",
7374
]
7475

7576
[[tool.uv.index]]

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)