Git hook does not prevent commiting
When flake8 finds errors in pre-commit hook it doesn't stop the commit. I installed the hook with flake8 --install-hook=git
.
I used simple shell git hook before like:
#!/bin/sh
flake8 . || exit 1
Which did prevent it, but it became to slow.