Skip to content

Commit 87f1dec

Browse files
committed
Small refactor for Makefile.
1 parent 895e299 commit 87f1dec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/make -f
22

3+
VENV_PATH = .venv/bin
4+
35
install-dev-requirements:
46
curl -LsSf https://astral.sh/uv/install.sh | sh
57
uv venv && uv pip install hatch
@@ -25,18 +27,18 @@ develop: install-dev-requirements install-test-requirements
2527

2628
types:
2729
@echo "Type checking Python files"
28-
.venv/bin/mypy --pretty
30+
$(VENV_PATH)/mypy --pretty
2931
@echo ""
3032

3133
test: types
3234
@echo "Running Python tests"
3335
uv pip uninstall pook || true
34-
.venv/bin/wait-for-it --service httpbin.local:443 --service localhost:6379 --timeout 5 -- .venv/bin/pytest
35-
uv pip install pook && .venv/bin/pytest tests/test_pook.py && uv pip uninstall pook
36+
$(VENV_PATH)/wait-for-it --service httpbin.local:443 --service localhost:6379 --timeout 5 -- $(VENV_PATH)/pytest
37+
uv pip install pook && $(VENV_PATH)/pytest tests/test_pook.py && uv pip uninstall pook
3638
@echo ""
3739

3840
safetest:
39-
export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; .venv/bin/pytest
41+
export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; $(VENV_PATH)/pytest
4042

4143
publish: clean install-test-requirements
4244
uv run python3 -m build --sdist --wheel .

0 commit comments

Comments
 (0)