File tree Expand file tree Collapse file tree 4 files changed +6
-143
lines changed Expand file tree Collapse file tree 4 files changed +6
-143
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,4 @@ uv sync
51
51
52
52
echo " Setting up python environment... done."
53
53
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
-
59
54
popd > /dev/null
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ resync:
18
18
19
19
install :
20
20
bash .evergreen/ scripts/ setup-dev-env .sh
21
+ uvx pre-commit install
21
22
22
23
[group (' docs' )]
23
24
docs : && resync
@@ -49,15 +50,15 @@ typing-pyright: && resync
49
50
50
51
[group (' lint' )]
51
52
lint * args = " ": && resync
52
- uv run pre-commit run --all-files {{ args}}
53
+ uvx pre-commit run --all-files {{ args}}
53
54
54
55
[group (' lint' )]
55
56
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}}
57
58
58
59
[group (' test' )]
59
60
test * args = " -v --durations=5 --maxfail=10": && resync
60
- uv run --extra test pytest {{ args}}
61
+ uvx --extra test pytest {{ args}}
61
62
62
63
[group (' test' )]
63
64
run-tests * args : && resync
Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ Source = "https://github.com/mongodb/mongo-python-driver"
46
46
Tracker = " https://jira.mongodb.org/projects/PYTHON/issues"
47
47
48
48
[dependency-groups ]
49
- dev = [
50
- " pre-commit>=4.0"
51
- ]
49
+ dev = []
52
50
pip = [" pip" ]
53
51
# TODO: PYTHON-5464
54
52
gevent = [" gevent" , " cffi>=2.0.0b1;python_version=='3.14'" ]
You can’t perform that action at this time.
0 commit comments