This PR adds flake8 to GitHub actions and fixes all reported flake8 issues in the Genomedata codebase.
Of note there were some bare excepts being used presumably as a catch-all for generic error reporting. These have been replaced with referencing the Exception type which allows for any program exception, but not catching any system-style exception (e.g. KeyboardInterrupt or SystemExit).
This also ignores linting in examples directory and inside doc/conf.py since that file is largely autogenerated.
This PR adds flake8 to GitHub actions and fixes all reported flake8 issues in the Genomedata codebase.
Of note there were some bare excepts being used presumably as a catch-all for generic error reporting. These have been replaced with referencing the
Exception
type which allows for any program exception, but not catching any system-style exception (e.g.KeyboardInterrupt
orSystemExit
).This also ignores linting in
examples
directory and insidedoc/conf.py
since that file is largely autogenerated.