From 901869731b93701bc2ecb6e8334d4baaa8d3ef73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=BD?= Date: Tue, 8 Nov 2016 20:12:26 +0100 Subject: [PATCH] Fixed E305: expected 2 blank lines after class or function definition --- setup.py | 1 + src/flake8/plugins/pyflakes.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 08335a5..3393b5e 100644 --- a/setup.py +++ b/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) diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py index 542e5fa..ca22302 100644 --- a/src/flake8/plugins/pyflakes.py +++ b/src/flake8/plugins/pyflakes.py @@ -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()