Skip to content

Commit 7eb307c

Browse files
committed
feat: Add conditional to show help to install first before running test, if .venv does not exist
1 parent 5e96b08 commit 7eb307c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ install: check ## Install project dependencies
1919

2020
{% if "pytest" in dev_deps -%}
2121
test: ## Run all unit tests
22+
@set -eu; \
23+
if [[ ! -d ".venv" ]]; then \
24+
printf "ERROR: .venv not found — run 'make install' first\n" >&2; \
25+
exit 1; \
26+
fi; \
2227
@uv run pytest tests/unit/
2328
{% endif -%}
2429

0 commit comments

Comments
 (0)