Skip to content

PYTHON-6249 Enable ruff D rules - #3209

Merged
NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6249
Nov 11, 2026
Merged

NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6249

Conversation

@NoahStapp

Copy link
Copy Markdown
Contributor

PYTHON-6249

Changes in this PR

Enable ruff's D linting rules. No changes are necessary to make them pass.

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • 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?

@NoahStapp
NoahStapp requested a review from a team as a code owner November 11, 2026 18:39
@NoahStapp
NoahStapp requested review from blink1073 and a balanced review from Copilot November 11, 2026 18:39

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.

🟢 Approval recommended

No active review issues were identified for the configuration change enabling Ruff’s docstring checks.

No open issues 🎉

What changed in this PR

This PR enables Ruff’s D (pydocstyle) checks in PyMongo’s lint configuration without changing application code.

Changes:

  • Removes the blanket D exclusion from Ruff’s ignore list.
File Description
pyproject.toml Removes the pydocstyle rule-family exclusion to enable docstring linting.

Review effort: Balanced

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@NoahStapp
NoahStapp merged commit 4f1b5ac into mongodb:main Nov 11, 2026
46 of 47 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