Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .evergreen/scripts/setup-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,4 @@ uv sync

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

# Ensure there is a pre-commit hook if there is a git checkout.
if [ -d .git ] && [ ! -f .git/hooks/pre-commit ]; then
uv run pre-commit install
fi

popd > /dev/null
7 changes: 4 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ resync:

install:
bash .evergreen/scripts/setup-dev-env.sh
uvx pre-commit install

[group('docs')]
docs: && resync
Expand Down Expand Up @@ -49,15 +50,15 @@ typing-pyright: && resync

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

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

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

[group('test')]
run-tests *args: && resync
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ Source = "https://github.com/mongodb/mongo-python-driver"
Tracker = "https://jira.mongodb.org/projects/PYTHON/issues"

[dependency-groups]
dev = [
"pre-commit>=4.0"
]
dev = []
pip = ["pip"]
# TODO: PYTHON-5464
gevent = ["gevent", "cffi>=2.0.0b1;python_version=='3.14'"]
Expand Down
Loading
Loading