Last active
October 9, 2015 12:15
-
-
Save patrys/ce573b03573fedddfe14 to your computer and use it in GitHub Desktop.
Test file for flake8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from example import ( | |
f401_unused) | |
@f821_undefined_name | |
def c901_too_complex(x): | |
if x > 1: | |
if x > 2: | |
if x > 3: | |
if x > 4: | |
if x > 5: | |
if x > 6: | |
if x > 7: | |
if x > 8: | |
if x > 9: | |
if x > 10: | |
if x > 11: | |
pass | |
indentation_example = ['W291 - trailing whitespace ->', | |
'E128 - underindented', | |
'E127 - over-indented'] # TODO H101 | |
def indent_unaligned( #E262 | |
e125_unaligned): | |
try: | |
f841_unused = True | |
except: # <- H201 | |
pass | |
#E265 | |
try: | |
x = 1 | |
except Exception, e: # <- H231 | |
print 'H233', e | |
class H238_OldStyle: | |
__metaclass__ = type # <- H236 | |
def __init__(self): | |
print('H501 %(self)s' % locals()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment