diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-05 15:46:52 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2019-01-24 18:04:21 -0800 |
commit | 68335d1a6d65de7ed09af580bdb909c5f6c139c2 (patch) | |
tree | e5759cfc7eb5a1ebe430274d1695d61ab7dfc836 /testsuite/E11.py | |
parent | db80d0750951e4a9d1ac82338285496534d6c061 (diff) | |
download | pep8-68335d1a6d65de7ed09af580bdb909c5f6c139c2.tar.gz |
Add check for over-indented blocks
In a project with all lines indented 4 spaces, I noticed pycodestyle was
not catching code that was accidentally indented two levels (8 spaces).
The over indentation was unintended and can be caught during static
analysis.
Fixes #430
Diffstat (limited to 'testsuite/E11.py')
-rw-r--r-- | testsuite/E11.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/E11.py b/testsuite/E11.py index 4ed1096..c7b11d1 100644 --- a/testsuite/E11.py +++ b/testsuite/E11.py @@ -1,7 +1,7 @@ #: E111 if x > 2: print x -#: E111 +#: E111 E117 if True: print #: E112 @@ -34,3 +34,6 @@ def start(self): # finally: # sys.exit() self.master.start() +#: E117 +def start(): + print |