Commit Graph

2 Commits

Author SHA1 Message Date
Bryan McCann 6662a33dae
Python 2.7 not currently supported 2018-06-22 10:51:09 -07:00
cclauss ef9282d8e0 Use automated testing to find Python syntax errors
* https://travis-ci.org/salesforce
* https://travis-ci.org/salesforce/decaNLP

http://flake8.pycqa.org will flag the Travis CI build if there are Python syntax errors or 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. This PR therefore recommends a flake8 run of these tests on the entire codebase.

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
2018-06-22 10:44:22 -07:00