Skip to content

Commit 448a494

Browse files
authored
PYTHON-5574 Allow uv lockfile to update from justfile lint (mongodb#2558)
1 parent 4849eac commit 448a494

File tree

4 files changed

+6
-143
lines changed

4 files changed

+6
-143
lines changed

.evergreen/scripts/setup-dev-env.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,4 @@ uv sync
5151

5252
echo "Setting up python environment... done."
5353

54-
# Ensure there is a pre-commit hook if there is a git checkout.
55-
if [ -d .git ] && [ ! -f .git/hooks/pre-commit ]; then
56-
uv run pre-commit install
57-
fi
58-
5954
popd > /dev/null

justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resync:
1818

1919
install:
2020
bash .evergreen/scripts/setup-dev-env.sh
21+
uvx pre-commit install
2122

2223
[group('docs')]
2324
docs: && resync
@@ -49,15 +50,15 @@ typing-pyright: && resync
4950

5051
[group('lint')]
5152
lint *args="": && resync
52-
uv run pre-commit run --all-files {{args}}
53+
uvx pre-commit run --all-files {{args}}
5354

5455
[group('lint')]
5556
lint-manual *args="": && resync
56-
uv run pre-commit run --all-files --hook-stage manual {{args}}
57+
uvx pre-commit run --all-files --hook-stage manual {{args}}
5758

5859
[group('test')]
5960
test *args="-v --durations=5 --maxfail=10": && resync
60-
uv run --extra test pytest {{args}}
61+
uvx --extra test pytest {{args}}
6162

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

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ Source = "https://github.com/mongodb/mongo-python-driver"
4646
Tracker = "https://jira.mongodb.org/projects/PYTHON/issues"
4747

4848
[dependency-groups]
49-
dev = [
50-
"pre-commit>=4.0"
51-
]
49+
dev = []
5250
pip = ["pip"]
5351
# TODO: PYTHON-5464
5452
gevent = ["gevent", "cffi>=2.0.0b1;python_version=='3.14'"]

0 commit comments

Comments
 (0)