Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: add a pair of E303 testcases #1215

Merged
merged 1 commit into from
Nov 21, 2023

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.
@sigmavirus24 sigmavirus24 merged commit 13a238b into PyCQA:main Nov 21, 2023
9 checks passed
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