Travis CI: Use flake8 to find Python syntax errors or undefined names
authorcclauss <cclauss@bluewin.ch>
Tue, 16 Oct 2018 05:18:00 +0000 (07:18 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 20 Nov 2018 18:02:12 +0000 (19:02 +0100)
commit2a6f57bc098cdfa6320189f2725337c7f74a052e
tree1557212f4467af9988b46c652637d366407e43f7
parentc486283cb8e9bd6c1db7eb01d31a72e68b8dc4b8
Travis CI: Use flake8 to find Python syntax errors or undefined names

CLA: trivial

In Travis CI, add a Python linting step that runs flake8 tests in Travis CI
to find syntax errors and undefined names. (http://flake8.pycqa.org)

__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

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7410)
.travis.yml