Skip to content

testing: add a pair of E303 testcases#1215

Merged
sigmavirus24 merged 1 commit intoPyCQA:mainfrom
allisonkarlitskaya:e303
Nov 21, 2023
Merged

testing: add a pair of E303 testcases#1215
sigmavirus24 merged 1 commit intoPyCQA:mainfrom
allisonkarlitskaya:e303

Conversation

@allisonkarlitskaya
Copy link
Contributor

@allisonkarlitskaya allisonkarlitskaya commented Nov 21, 2023

Add two test cases to verify that pycodestyle correctly flags 2 empty lines in non-toplevel contexts, even outside of functions: one for two empty lines between class methods and one for two empty lines in the indented body of an if: statement at toplevel.

The motivation here is to resolve ambiguity about the intended behaviour of this rule. See astral-sh/ruff#8720 (comment).

Add two test cases to verify that pycodestyle correctly flags 2 empty
lines in non-toplevel contexts, even outside of functions: one for
two empty lines between class methods and one for two empty lines in the
indented body of an `if:` statement at toplevel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants