Skip to content

Commit

Permalink
testing: add a pair of E303 testcases
Browse files Browse the repository at this point in the history
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
intended body of an `if:` statement at toplevel.
  • Loading branch information
allisonkarlitskaya committed Nov 21, 2023
1 parent cefd59c commit 83c9d0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testing/data/E30.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ def a():
#:


#: E303:6:5
class xyz:
def a(self):
pass


def b(self):
pass
#: E303:5:5
if True:
a = 1


a = 2
#: E304:3:1
@decorator

Expand Down

0 comments on commit 83c9d0b

Please sign in to comment.