Skip to content

Commit cccd507

Browse files
committed
🩹 fix(makefile): prefix python commands with 'uv run' for environment consistency
- Updated all python command invocations in Makefile to use 'uv run' prefix - Applied changes to test, lint, format, and spell check targets - Ensured consistency in running commands within 'uv' environment wrapper - Preserved existing functionality and arguments of commands unchanged
1 parent 4657da6 commit cccd507

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Makefile

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ test: test_unit test_integration
1212

1313
# Specific test targets
1414
test_unit:
15-
python -m pytest tests/unit_tests/
15+
uv run python -m pytest tests/unit_tests/
1616

1717
test_integration:
18-
python -m pytest tests/integration_tests/
18+
uv run python -m pytest tests/integration_tests/
1919

2020
test_e2e:
21-
python -m pytest tests/e2e_tests/
21+
uv run python -m pytest tests/e2e_tests/
2222

2323
test_all:
24-
python -m pytest tests/
24+
uv run python -m pytest tests/
2525

2626
# Watch mode for tests
2727
test_watch: test_watch_unit
2828

2929
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
3131

3232
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
3434

3535
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
3737

3838
test_profile:
39-
python -m pytest -vv tests/unit_tests/ --profile-svg
39+
uv run python -m pytest -vv tests/unit_tests/ --profile-svg
4040

4141
extended_tests:
42-
python -m pytest --only-extended tests/unit_tests/
42+
uv run python -m pytest --only-extended tests/unit_tests/
4343

4444
######################
4545
# DEVELOPMENT
@@ -66,33 +66,33 @@ lint_tests: PYTHON_FILES=tests
6666
lint_tests: MYPY_CACHE=.mypy_cache_test
6767

6868
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
7474

7575
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)
8181

8282
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
8585
# Skip mypy for tests to allow more flexible typing
8686

8787
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)
9090

9191
spell_check:
92-
codespell --toml pyproject.toml
92+
uv run codespell --toml pyproject.toml
9393

9494
spell_fix:
95-
codespell --toml pyproject.toml -w
95+
uv run codespell --toml pyproject.toml -w
9696

9797
######################
9898
# HELP

0 commit comments

Comments
 (0)