Move flake8 to run tests