Skip to content

PYTHON-6279 Enable ruff rule W505 - #3240

Merged
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6279
Nov 19, 2026
Merged

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

Conversation

@blink1073

@blink1073 blink1073 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

PYTHON-6279

Changes in this PR

Sets pycodestyle.max-doc-length = 100 in the ruff config, arming W505 (doc-line-too-long). Doc lines get a limit separate from line-length, so they can be tightened independently later. At 100 the rule raises nothing beyond E501.

Test Plan

Config-only change, so no unit tests. uv tool run ruff check . and uv tool run ruff check --select W505 . both pass.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)? No changelog entry needed for a lint config change.
  • Is there test coverage? No new tests; see test plan.
  • Is any followup work tracked in a JIRA ticket? If so, add link(s). None.

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.

🟢 Approval recommended

No active review issues are recorded for the documentation-line length configuration change.

No open issues 🎉

What changed in this PR

This PR configures Ruff’s W505 (doc-line-too-long) rule with a separate 100-character limit for documentation lines.

Changes:

  • Sets pycodestyle.max-doc-length = 100.
  • Adds a comment explaining that the documentation limit can be tightened independently of line-length.
File Description
pyproject.toml Configures and explains the documentation-line length limit.

Review effort: Balanced

@blink1073
blink1073 marked this pull request as ready for review November 19, 2026 14:22
@blink1073
blink1073 requested a review from a team as a code owner November 19, 2026 14:22
@blink1073
blink1073 merged commit f98485b into mongodb:main Nov 19, 2026
70 checks passed
@blink1073
blink1073 deleted the PYTHON-6279 branch November 19, 2026 15:31
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