Update flake8 tests and docs