PYTHON-5538 Clean up uv lock file handling (#2522)

This commit is contained in:
Steven Silvester 2025-09-10 10:36:14 -05:00 committed by GitHub
parent d7316afb63
commit 98e9f5ecc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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