Skip to content

Commit 030383c

Browse files
committed
fix: freeze UV by default
Applying canonical/starbase@03aff98 Signed-off-by: Paul Mars <[email protected]>
1 parent 21d7ff0 commit 030383c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ ifneq ($(VERSION_CODENAME),)
99
SETUP_TESTS_EXTRA_ARGS=--extra apt-$(VERSION_CODENAME)
1010
endif
1111

12-
UV_FROZEN=true
13-
1412
include common.mk
1513

1614
.PHONY: format

common.mk

+7-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ endif
1616
PRETTIER=npm exec --package=prettier -- prettier
1717
PRETTIER_FILES=**.yaml **.yml **.json **.json5 **.css **.md
1818

19+
# By default we should not update the uv lock file here.
20+
export UV_FROZEN := true
21+
1922
.DEFAULT_GOAL := help
2023

2124
.ONESHELL:
@@ -45,19 +48,19 @@ help: ## Show this help.
4548

4649
.PHONY: setup
4750
setup: install-uv setup-precommit ## Set up a development environment
48-
uv sync --frozen $(SETUP_TESTS_EXTRA_ARGS) --extra docs --extra lint --extra types
51+
uv sync $(SETUP_TESTS_EXTRA_ARGS) --extra docs --extra lint --extra types
4952

5053
.PHONY: setup-tests
5154
setup-tests: install-uv install-build-deps ##- Set up a testing environment without linters
52-
uv sync --frozen $(SETUP_TESTS_EXTRA_ARGS)
55+
uv sync $(SETUP_TESTS_EXTRA_ARGS)
5356

5457
.PHONY: setup-lint
5558
setup-lint: install-uv install-shellcheck install-pyright install-lint-build-deps ##- Set up a linting-only environment
56-
uv sync --frozen --no-install-workspace --extra lint --extra types
59+
uv sync --no-install-workspace --extra lint --extra types
5760

5861
.PHONY: setup-docs
5962
setup-docs: install-uv ##- Set up a documentation-only environment
60-
uv sync --frozen --no-dev --no-install-workspace --extra docs
63+
uv sync --no-dev --no-install-workspace --extra docs
6164

6265
.PHONY: setup-precommit
6366
setup-precommit: install-uv ##- Set up pre-commit hooks in this repository.

0 commit comments

Comments
 (0)