mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Fixed E305: expected 2 blank lines after class or function definition
This commit is contained in:
parent
9553c8d8cc
commit
901869731b
2 changed files with 3 additions and 0 deletions
1
setup.py
1
setup.py
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue