Test flake8 on pre-commit hook too.
Add flake8 checking to the pre-commit.sh script.