From 54400b18b0fbdeb93f10bbdc0e689651c44214e3 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 10 Sep 2025 09:51:09 -0500 Subject: [PATCH] PYTHON-5538 Clean up uv lock file handling --- justfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 24da94a499..7ac5bd33ff 100644 --- a/justfile +++ b/justfile @@ -1,10 +1,11 @@ # See https://just.systems/man/en/ for instructions set shell := ["bash", "-c"] +# Do not modify the lock file when running justfile commands. +export UV_FROZEN := "1" # Commonly used command segments. -uv_run := "uv run --frozen " -typing_run := uv_run + "--group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd" -docs_run := uv_run + "--extra docs" +typing_run := "uv run --group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd" +docs_run := "uv run --extra docs" doc_build := "./doc/_build" mypy_args := "--install-types --non-interactive" @@ -50,15 +51,15 @@ typing-pyright: && resync [group('lint')] lint: && resync - {{uv_run}} pre-commit run --all-files + uv run pre-commit run --all-files [group('lint')] lint-manual: && resync - {{uv_run}} pre-commit run --all-files --hook-stage manual + uv run pre-commit run --all-files --hook-stage manual [group('test')] test *args="-v --durations=5 --maxfail=10": && resync - {{uv_run}} --extra test pytest {{args}} + uv run --extra test pytest {{args}} [group('test')] run-tests *args: && resync