Fixed E305: expected 2 blank lines after class or function definition

This commit is contained in:
Ondřej Nový 2016-11-08 20:12:26 +01:00
parent 9553c8d8cc
commit 901869731b
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@ def get_long_description():
descr.append(f.read())
return '\n\n'.join(descr)
PEP8 = 'pycodestyle'
_FORMAT = '{0}.{1} = {0}:{1}'
PEP8_PLUGIN = functools.partial(_FORMAT.format, PEP8)

View file

@ -38,6 +38,8 @@ def patch_pyflakes():
for name, obj in vars(pyflakes.messages).items():
if name[0].isupper() and obj.message:
obj.flake8_msg = '%s %s' % (codes.get(name, 'F999'), obj.message)
patch_pyflakes()