-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
incompatibilityIncompatibility between different Ruff tools or rules (formatter, isort, linter)Incompatibility between different Ruff tools or rules (formatter, isort, linter)
Description
class Test:
"""
Test class docstring.
"""lint.select = ["D"]
lint.ignore = ["D100", "D200", "D212", "D211"]When I run ruff check test.py --config ruff.toml I get:
test.py:2:5: D203 [*] 1 blank line required before class docstring
|
1 | class Test:
2 | """
| _____^
3 | | Test class docstring.
4 | | """
| |_______^ D203
|
= help: Insert 1 blank line before class docstring
Found 1 error.
With --fix Ruff changes the file to:
class Test:
"""
Test class docstring.
"""When I now run ruff format test.py --config ruff.toml it redoes the changes and removes the blank line:
class Test:
"""
Test class docstring.
"""Ruff version: 0.5.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
incompatibilityIncompatibility between different Ruff tools or rules (formatter, isort, linter)Incompatibility between different Ruff tools or rules (formatter, isort, linter)