From 03aff98049a236c6f60c13b36bc041e0e3e67e2c Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Mon, 13 Jan 2025 14:44:08 -0500 Subject: [PATCH] fix(common.mk): freeze UV by default. --- common.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/common.mk b/common.mk index 3c3a146..6407b00 100644 --- a/common.mk +++ b/common.mk @@ -16,6 +16,9 @@ endif PRETTIER=npm exec --package=prettier -- prettier PRETTIER_FILES=**.yaml **.yml **.json **.json5 **.css **.md +# By default we should not update the uv lock file here. +export UV_FROZEN := true + .DEFAULT_GOAL := help .ONESHELL: @@ -45,19 +48,19 @@ help: ## Show this help. .PHONY: setup setup: install-uv setup-precommit ## Set up a development environment - uv sync --frozen --all-extras + uv sync --all-extras .PHONY: setup-tests setup-tests: install-uv install-build-deps ##- Set up a testing environment without linters - uv sync --frozen + uv sync .PHONY: setup-lint setup-lint: install-uv install-shellcheck install-pyright install-lint-build-deps ##- Set up a linting-only environment - uv sync --frozen --no-install-workspace --extra lint --extra types + uv sync --no-install-workspace --extra lint --extra types .PHONY: setup-docs setup-docs: install-uv ##- Set up a documentation-only environment - uv sync --frozen --no-dev --no-install-workspace --extra docs + uv sync --no-dev --no-install-workspace --extra docs .PHONY: setup-precommit setup-precommit: install-uv ##- Set up pre-commit hooks in this repository.