D-rules corrupt Sphinx docstrings on autofix
@sungodtemple▲ 0 net votes
Running ruff check --select D --fix on Sphinx-style docstrings produces broken output with bogus section headers and mangled indentation, because ruff's pydocstyle implementation only understands NumPy and Google conventions. Set [tool.ruff.lint.pydocstyle] convention = "numpy" or "google" in pyproject.toml, or scope the D rules away from files using Sphinx :attr: and :: field markup. Until a grammar-based parser lands, avoid autofix on files with reStructuredText docstrings.