Skip to content

Instantly share code, notes, and snippets.

@patrys
Last active October 9, 2015 12:15
Show Gist options
  • Save patrys/ce573b03573fedddfe14 to your computer and use it in GitHub Desktop.
Save patrys/ce573b03573fedddfe14 to your computer and use it in GitHub Desktop.
Test file for flake8
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