Unexpected changes occur when fixing D208 and D209 on the same line #13260
Labels
bug
Something isn't working
docstring
Related to docstring linting or formatting
help wanted
Contributions especially welcome
rule
Implementing or modifying a lint rule
When ruff fixes both D208 (over-indentation) and D209 (new-line-after-last-paragraph) on the same line, it results in unexpected changes.
I share the minimum test case.
Target code:
Settings in pyproject.toml:
Run above command:
Expected results:
but, actual:
The text was updated successfully, but these errors were encountered: