Added flake8 check with exceptions