Skip to content

Commit ccec1d7

Browse files
committed
Separate the lint task from check
Avoids performance penalty of mypy
1 parent 8bc30ba commit ccec1d7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Justfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test: mypy _check && check-format
1+
test: mypy _lint && check-format
22
# Testing project
33
@just _test
44

@@ -7,10 +7,14 @@ test-single:
77
# Test on current python version
88
uv run pytest
99

10-
check: mypy _check && check-format spellcheck
10+
check: mypy lint
1111

12-
# runs additional checks
13-
_check:
12+
# runs lints, but not type checking or tests
13+
#
14+
# Avoids performance penalty of `mypy`
15+
lint: _lint && check-format
16+
17+
_lint:
1418
-ruff check src
1519

1620
fix: && _format fix-spelling

0 commit comments

Comments
 (0)