Added flake8 check before tests