Skip to content

Commit 07ab81a

Browse files
author
Lennard Wolf
committed
fix: uv allow existing
1 parent 18108fd commit 07ab81a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ help: ## Show available commands and their descriptions
1010

1111
.PHONY: in-venv
1212
in-venv: ## make sure we're in the venv
13-
uv venv
13+
uv venv --allow-existing
1414
.PHONY: bootstrap
1515
bootstrap: python-version clean-venv venv ## Delete existing & create new venv
1616

@@ -34,8 +34,8 @@ bootstrap-dev: ## set up a fresh dev environment
3434

3535
setup-pre-commit: in-venv ## install pre-commit hooks
3636
# installing pre-commit hooks...
37-
pre-commit autoupdate
38-
pre-commit install && pre-commit install --hook-type commit-msg
37+
@uvx pre-commit autoupdate
38+
@uvx pre-commit install && @uvx pre-commit install --hook-type commit-msg
3939
.PHONY: setup-pre-commit
4040

4141
setup-docs: in-venv ## install docs dependencies
@@ -49,9 +49,9 @@ build-docs: in-venv ## build docs
4949
.PHONY: build-docs
5050

5151
update: in-venv ## update lock file if needed
52-
uv pip install --upgrade uv
53-
pdm run update-all
54-
pre-commit autoupdate
52+
@uv pip compile pyproject.toml --all-extras --upgrade --output-file requirements-dev.txt
53+
@uv sync
54+
@uvx pre-commit autoupdate
5555
.PHONY: update
5656

5757
lint: in-venv ## Run linter on python files

Makefile.venv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ endif
225225
$(VENV):
226226
$(PY) -m pip install --upgrade uv pipx
227227
$(PY) -m pipx install pdm uv
228-
$(PY) -m uv venv
228+
$(PY) -m uv venv --allow-existing
229229
uv pip install --upgrade setuptools wheel pdm
230230

231231
$(VENV)/$(MARKER): $(VENVDEPENDS) | $(VENV)

0 commit comments

Comments
 (0)