Skip to content

Commit 95bafcd

Browse files
committed
chore: split mypy calls
Mypy can sometimes get confused when checking everything at once. I have found more stability by separately checking the main subdirectories. Signed-off-by: JP-Ellis <[email protected]>
1 parent 1ce0a25 commit 95bafcd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,17 @@ requires = [
174174
installer = "uv"
175175

176176
[tool.hatch.envs.default.scripts]
177-
all = ["example", "format", "lint", "test", "typecheck"]
178-
docs = "mkdocs serve {args}"
179-
docs-build = "mkdocs build {args}"
180-
example = "pytest --numprocesses=1 examples/ {args}"
181-
format = "ruff format {args}"
182-
lint = "ruff check --output-format=full --show-fixes {args}"
183-
test = "pytest tests/ {args}"
184-
typecheck = "mypy {args:.}"
177+
all = ["example", "format", "lint", "test", "typecheck"]
178+
docs = "mkdocs serve {args}"
179+
docs-build = "mkdocs build {args}"
180+
example = "pytest --numprocesses=1 examples/ {args}"
181+
format = "ruff format {args}"
182+
lint = "ruff check --output-format=full --show-fixes {args}"
183+
test = "pytest tests/ {args}"
184+
typecheck = ["typecheck-examples", "typecheck-src", "typecheck-tests"]
185+
typecheck-examples = "mypy examples/ {args}"
186+
typecheck-src = "mypy src/ {args}"
187+
typecheck-tests = "mypy tests/ {args}"
185188

186189
# Test environment for running unit tests. This automatically tests against all
187190
# supported Python versions.

0 commit comments

Comments
 (0)