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
5151
5252echo " 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-
5954popd > /dev/null
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ resync:
1818
1919install :
2020 bash .evergreen/ scripts/ setup-dev-env .sh
21+ uvx pre-commit install
2122
2223[group (' docs' )]
2324docs : && resync
@@ -49,15 +50,15 @@ typing-pyright: && resync
4950
5051[group (' lint' )]
5152lint * args = " ": && resync
52- uv run pre-commit run --all-files {{ args}}
53+ uvx pre-commit run --all-files {{ args}}
5354
5455[group (' lint' )]
5556lint-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' )]
5960test * args = " -v --durations=5 --maxfail=10": && resync
60- uv run --extra test pytest {{ args}}
61+ uvx --extra test pytest {{ args}}
6162
6263[group (' test' )]
6364run-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"
4646Tracker = " https://jira.mongodb.org/projects/PYTHON/issues"
4747
4848[dependency-groups ]
49- dev = [
50- " pre-commit>=4.0"
51- ]
49+ dev = []
5250pip = [" pip" ]
5351# TODO: PYTHON-5464
5452gevent = [" gevent" , " cffi>=2.0.0b1;python_version=='3.14'" ]
You can’t perform that action at this time.
0 commit comments