Skip to content

Commit 64624ac

Browse files
committed
📦⚡️ Enable dmypy for faster mypy checks
1 parent 6872891 commit 64624ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

project_name/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ venv/
5454

5555
# development tools
5656
.mypy_cache/
57+
.dmypy.json
5758
.ruff_cache/
5859
.hypothesis/
5960
.benchmarks/

project_name/justfile.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ format-and-check:
4141
# Run all code quality checks and tests, except pylint
4242
check:
4343
just test
44-
uv run mypy
44+
just lint
4545
uv run pre-commit run --all-files
4646

4747
# Format code and files
@@ -65,7 +65,7 @@ isort:
6565
# Run linters: ruff and mypy
6666
lint:
6767
uv run ruff check
68-
uv run mypy
68+
uv run dmypy run
6969

7070
# Run Pylint, might be slow
7171
pylint:

0 commit comments

Comments
 (0)