Since flake8 3.2.0 is released [0] it also checks E305 rule: 2 blank lines are expected after class or function definition. [0] http://flake8.pycqa.org/en/latest/release-notes/3.2.0.html Change-Id: I0f4074efefefbd0b510b841625be18ea2f14bded