My bad; I should set up a git hook for this.
Edit: Whoa, installing git hook for flake8 is actually very simple:
flake8 --install-hook git
:+1:
+1
Pull-Request has been merged by lholecek
One day Jenkins will do this for us :-)