@@ -12,34 +12,34 @@ test: test_unit test_integration
12
12
13
13
# Specific test targets
14
14
test_unit :
15
- python -m pytest tests/unit_tests/
15
+ uv run python -m pytest tests/unit_tests/
16
16
17
17
test_integration :
18
- python -m pytest tests/integration_tests/
18
+ uv run python -m pytest tests/integration_tests/
19
19
20
20
test_e2e :
21
- python -m pytest tests/e2e_tests/
21
+ uv run python -m pytest tests/e2e_tests/
22
22
23
23
test_all :
24
- python -m pytest tests/
24
+ uv run python -m pytest tests/
25
25
26
26
# Watch mode for tests
27
27
test_watch : test_watch_unit
28
28
29
29
test_watch_unit :
30
- python -m ptw --snapshot-update --now . -- -vv tests/unit_tests
30
+ uv run python -m ptw --snapshot-update --now . -- -vv tests/unit_tests
31
31
32
32
test_watch_integration :
33
- python -m ptw --snapshot-update --now . -- -vv tests/integration_tests
33
+ uv run python -m ptw --snapshot-update --now . -- -vv tests/integration_tests
34
34
35
35
test_watch_e2e :
36
- python -m ptw --snapshot-update --now . -- -vv tests/e2e_tests
36
+ uv run python -m ptw --snapshot-update --now . -- -vv tests/e2e_tests
37
37
38
38
test_profile :
39
- python -m pytest -vv tests/unit_tests/ --profile-svg
39
+ uv run python -m pytest -vv tests/unit_tests/ --profile-svg
40
40
41
41
extended_tests :
42
- python -m pytest --only-extended tests/unit_tests/
42
+ uv run python -m pytest --only-extended tests/unit_tests/
43
43
44
44
# #####################
45
45
# DEVELOPMENT
@@ -66,33 +66,33 @@ lint_tests: PYTHON_FILES=tests
66
66
lint_tests : MYPY_CACHE=.mypy_cache_test
67
67
68
68
lint :
69
- python -m ruff check .
70
- python -m ruff format src --diff
71
- python -m ruff check --select I src
72
- python -m mypy --strict src
73
- mkdir -p .mypy_cache && python -m mypy --strict src --cache-dir .mypy_cache
69
+ uv run python -m ruff check .
70
+ uv run python -m ruff format src --diff
71
+ uv run python -m ruff check --select I src
72
+ uv run python -m mypy --strict src
73
+ mkdir -p .mypy_cache && uv run python -m mypy --strict src --cache-dir .mypy_cache
74
74
75
75
lint_diff lint_package :
76
- python -m ruff check .
77
- [ " $( PYTHON_FILES) " = " " ] || python -m ruff format $(PYTHON_FILES ) --diff
78
- [ " $( PYTHON_FILES) " = " " ] || python -m ruff check --select I $(PYTHON_FILES )
79
- [ " $( PYTHON_FILES) " = " " ] || python -m mypy --strict $(PYTHON_FILES )
80
- [ " $( PYTHON_FILES) " = " " ] || mkdir -p $(MYPY_CACHE ) && python -m mypy --strict $(PYTHON_FILES ) --cache-dir $(MYPY_CACHE )
76
+ uv run python -m ruff check .
77
+ [ " $( PYTHON_FILES) " = " " ] || uv run python -m ruff format $(PYTHON_FILES ) --diff
78
+ [ " $( PYTHON_FILES) " = " " ] || uv run python -m ruff check --select I $(PYTHON_FILES )
79
+ [ " $( PYTHON_FILES) " = " " ] || uv run python -m mypy --strict $(PYTHON_FILES )
80
+ [ " $( PYTHON_FILES) " = " " ] || mkdir -p $(MYPY_CACHE ) && uv run python -m mypy --strict $(PYTHON_FILES ) --cache-dir $(MYPY_CACHE )
81
81
82
82
lint_tests :
83
- python -m ruff check tests --fix
84
- python -m ruff format tests
83
+ uv run python -m ruff check tests --fix
84
+ uv run python -m ruff format tests
85
85
# Skip mypy for tests to allow more flexible typing
86
86
87
87
format format_diff :
88
- ruff format $(PYTHON_FILES )
89
- ruff check --select I --fix $(PYTHON_FILES )
88
+ uv run ruff format $(PYTHON_FILES )
89
+ uv run ruff check --select I --fix $(PYTHON_FILES )
90
90
91
91
spell_check :
92
- codespell --toml pyproject.toml
92
+ uv run codespell --toml pyproject.toml
93
93
94
94
spell_fix :
95
- codespell --toml pyproject.toml -w
95
+ uv run codespell --toml pyproject.toml -w
96
96
97
97
# #####################
98
98
# HELP
0 commit comments