Skip to content

Commit a854129

Browse files
committed
allow rerun make install without prompt
1 parent 0618b66 commit a854129

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@ install-uv: ## Ensure uv is installed
6666
echo "uv is already installed."; \
6767
fi
6868

69-
setup-venv: ## Create virtual environment
70-
uv venv $(PYTHON_ARG)
69+
setup-venv: ## Create virtual environment (if not exists)
70+
@if [ ! -d ".venv" ]; then \
71+
uv venv $(PYTHON_ARG); \
72+
else \
73+
echo "Virtual environment already exists at .venv"; \
74+
fi
7175

7276
install-dependencies: setup-venv ## Install all dependencies including extras
73-
uv sync $(PYTHON_ARG) --all-extras --reinstall
77+
uv sync $(PYTHON_ARG) --all-extras
7478

7579
install-hooks: ## Install pre-commit hooks
7680
uv run $(PYTHON_ARG) prek install

0 commit comments

Comments
 (0)