Blank LinesΒΆ
Whitespace and statement-separation rules.
Enable with:
enable = ["blank-lines"]
Rule |
Message |
Python |
Autofix |
|---|---|---|---|
Add a blank line after this multiline control-flow block. |
Any |
Yes |
|
Add a blank line after this early-exit control-flow block. |
Any |
Yes |
|
Add a blank line before this branch statement in a larger code block. |
Any |
Yes |
|
Add a blank line before this block; the preceding statements do not prepare values used by it. |
Any |
Yes |
|
Remove blank lines at the beginning or end of a code block. |
Any |
Yes |