Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Python flake8 tests on several Nodejs repos #21942

Closed
wants to merge 1 commit into from

Commits on Jul 23, 2018

  1. WIP: DO NOT MERGE: Flake8 tests on Nodejs repos

    __DO NOT MERGE__: This will run the [flake8](http://flake8.pycqa.org) linter on several Nodejs repos that contain Python code to detect syntax errors and undefined names which can raise NameError at runtime.  There is a discussion in nodejs/node-gyp#1336 about the importance of using tools like Travis CI to automate the discovery of code quality issues.
    
    __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 demonstrates such a flake8 run these Nodejs codebases.
    * 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
    cclauss authored Jul 23, 2018
    Configuration menu
    Copy the full SHA
    42b011e View commit details
    Browse the repository at this point in the history