From 9f3020883f79ce85ccada72135eee8406c049df9 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 19 Nov 2026 07:55:29 -0600 Subject: [PATCH] PYTHON-6279 Enable ruff rule W505 for doc line length --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 90efc5a583..2813b716af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -272,6 +272,9 @@ flake8-unused-arguments.ignore-variadic-names = true isort.required-imports = ["from __future__ import annotations"] dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|dummy.*)$" pydocstyle.convention = "pep257" +# Arms W505 (doc-line-too-long). Kept separate from `line-length` so doc lines can +# be limited independently; currently raises nothing beyond E501. +pycodestyle.max-doc-length = 100 [tool.ruff.lint.per-file-ignores] "pymongo/__init__.py" = ["E402"]