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 tests to find syntax errors and undefined names (…
…Trusted-AI#29) * Travis CI: Add flake8 tests to find syntax errors and undefined names Another attempt at Trusted-AI#15 which also tries to consolidate repetitive parts of the __.travis.yml__ file. Add [flake8](http://flake8.pycqa.org) tests to find Python syntax errors and undefined names. __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 * Undefined Name -- Typo: typeError --> typeError * Move non-vital flake8 run to Python3 before_script This run is merely about "style violations" that do not adversely effect Python runtime behavior. Putting it in the __before_script_ keeps the output under a twisty. We get quite similar results when running the style tests under Py2 and Py3 so just run them once. * env: MLDB_URL="ftp://ftp.ics.uci.edu/pub/machine-learning-databases" * Reinsert branches: only: - master
- Loading branch information