Skip to content

Commit 8c2eb91

Browse files
committed
PYTHON-5538 Clean up uv lock file handling (mongodb#2522)
(cherry picked from commit 98e9f5e)
1 parent 6db793d commit 8c2eb91

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

justfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# See https://just.systems/man/en/ for instructions
22
set shell := ["bash", "-c"]
3+
# Do not modify the lock file when running justfile commands.
4+
export UV_FROZEN := "1"
35

46
# Commonly used command segments.
5-
uv_run := "uv run --frozen "
6-
typing_run := uv_run + "--group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd"
7-
docs_run := uv_run + "--extra docs"
7+
typing_run := "uv run --group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd"
8+
docs_run := "uv run --extra docs"
89
doc_build := "./doc/_build"
910
mypy_args := "--install-types --non-interactive"
1011

@@ -50,15 +51,15 @@ typing-pyright: && resync
5051

5152
[group('lint')]
5253
lint: && resync
53-
{{uv_run}} pre-commit run --all-files
54+
uv run pre-commit run --all-files
5455

5556
[group('lint')]
5657
lint-manual: && resync
57-
{{uv_run}} pre-commit run --all-files --hook-stage manual
58+
uv run pre-commit run --all-files --hook-stage manual
5859

5960
[group('test')]
6061
test *args="-v --durations=5 --maxfail=10": && resync
61-
{{uv_run}} --extra test pytest {{args}}
62+
uv run --extra test pytest {{args}}
6263

6364
[group('test')]
6465
run-tests *args: && resync

0 commit comments

Comments
 (0)