Skip to content

PYTHON-6164 Exclude the drivers-evergreen-tools submodule from linting - #3126

Merged
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6164
Oct 15, 2026
Merged

blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6164

Conversation

@blink1073

@blink1073 blink1073 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

PYTHON-6164

Changes in this PR

Lint runs no longer scan the drivers-evergreen-tools submodule.

  • Excluded the submodule from ruff and pre-commit.
  • Dropped the stale py39 target-version; the rules it newly activates (UP035, UP041, ASYNC109, UP042, UP017, B905) are ignored rather than fixed.

Test Plan

No unit tests (config-only change). Validated with ruff check and ruff format --check (a scratch file inside the submodule is invisible to both), just lint, just lint-manual, and just typing.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)? No: config-only change.
  • Is there test coverage? See Test Plan.
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Ruff’s target-version configuration must be corrected before approval.

0 open findings

What changed in this PR

This PR excludes the drivers-evergreen-tools submodule from linting and updates Ruff configuration.

Changes:

  • Excludes the submodule from Ruff and pre-commit.
  • Revises Ruff target-version and rule-ignore settings.
File Description
pyproject.toml Updates Ruff exclusions and lint configuration.
.pre-commit-config.yaml Excludes the submodule from pre-commit hooks.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@blink1073
blink1073 marked this pull request as ready for review October 15, 2026 01:46
@blink1073
blink1073 requested a review from a team as a code owner October 15, 2026 01:46
@blink1073
blink1073 requested a review from NoahStapp October 15, 2026 01:46
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread pyproject.toml
Comment on lines +244 to +249
"UP035", # Deprecated import (e.g. `typing.Callable` instead of `collections.abc.Callable`)
"UP041", # `asyncio.TimeoutError` is an alias of `TimeoutError` on 3.11+
"ASYNC109", # Async function with a `timeout` parameter (CSOT timeouts are not `asyncio.timeout`)
"UP042", # `str, Enum` should be `StrEnum` (changes `__str__` semantics)
"UP017", # `timezone.utc` preferred over `datetime.UTC` (keep existing style)
"B905", # `zip()` without an explicit `strict=` parameter

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to fix these in a follow-up ticket, or just intentionally permanently ignoring them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created PYTHON-6177

@blink1073
blink1073 requested a review from NoahStapp October 15, 2026 13:25
@blink1073
blink1073 merged commit 029be6e into mongodb:main Oct 15, 2026
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants