Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis CI: Add flake8 jobs on both Python 2.7 and 3.7
Run [flake8](https://gitlab.com/pycqa/flake8) __. --select=E901,E999,F821,F822,F823__ under both Python 2 and Python 3 to find syntax errors and undefined names. This should help us catch Python incompatibilities in pull requests before they are reviewed. This PR is an update to #4227 which I closed because I thought that we could quickly move to Circle CI but that is blocked by #4335 and then #4345. __E901,E999,F821,F822,F823__ are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety. * F821: undefined name `name` * F822: undefined name `name` in `__all__` * F823: local variable `name` referenced before assignment * E901: SyntaxError or IndentationError * E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
- Loading branch information