build: find Python syntax errors in dependencies
As discussed in https://github.com/nodejs/node/issues/30129#issuecomment-546662351, when we vendor in code, we own the Syntax Errors in that code. This PR adds a Travis CI test run that looks for syntax errors and undefined names in the Python code of our vendored dependencies. The .flake8
config file at the root of this repo puts blinders on the linting of our dependencies so this test disables that file before starting the linting.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines