I'm using flake8 with emacs. If I begin a file with
# comment comment comment comment comment comment comment comment comment comment
class Foo(object):
pass
It says there is no syntax error. But if I wrap it to:
# comment comment comment comment comment comment comment comment
# comment comment
class Foo(object):
pass
I get "E302 expected 2 blank lines, found 0" for the "class" line.
Is this a bug? Can it be fixed with a config setting?
This question is here, because it was marked oftop on emacs site, but the actual answer is there: https://emacs.stackexchange.com/a/13762
Anyway, this code is good:
This is good too:
And this will fail with
E302 expected 2 blank lines found 1
The error is caused by one line between classes. Probably, this is what your question about