-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Travis CI: Use flake8 to find Python syntax errors or undefined names #7410
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
Conversation
|
Not sure whether this change qualifies as 'trivial'. However, one could be hair-splitting and argument that it is a contribution to the ci and not a contribution to OpenSSL. Since the empty set qualifies as 'trivial', the cla rules would be satisfied. ;-) |
|
Let's wait until the print() PR lands and this PR's Travis tests pass. |
|
Ok, let's wait for the other pull request. A propos: do you have yet more pull requests in your queue? If yes, it might be worthwile to send us your signed CLA forehanded, regardless of whether these two are considered trivial or not. ( Update: if that's your provider, not your employer then of course no CCLA is necessary ;-) |
CLA: trivial Discovered via #7410 @ https://travis-ci.org/openssl/openssl/jobs/442003489#L440 Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Matthias St. Pierre <[email protected]> (Merged from #7403) (cherry picked from commit 83e4533)
CLA: trivial Discovered via #7410 @ https://travis-ci.org/openssl/openssl/jobs/442003489#L440 Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Matthias St. Pierre <[email protected]> (Merged from #7403)
CLA: trivial In Travis CI, add a Python linting step that run [flake8](http://flake8.pycqa.org) tests in Travis CI to find 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
|
@mspncp Looks good. No other PRs in my queue. |
|
@paulidale Could I please get your review on this PR now that #7409 has landed? |
|
Apologies for missing this one. |
|
@paulidale I'll do the merge (in fact, I already did it, but the repo is currently frozen). |
|
Editorial note: I did some minimal editing of the commit message:
|
|
Thanks @mspncp the frozen repository is what stopped me doing it. |
|
Ah, o.k. I thought you had left it for me because I was the first one to approve. Never mind, it's too late for 1.1.1a now anyway. |
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 <[email protected]> Reviewed-by: Matthias St. Pierre <[email protected]> (Merged from #7410)
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 <[email protected]> Reviewed-by: Matthias St. Pierre <[email protected]> (Merged from #7410) (cherry picked from commit 2a6f57b)
In Travis CI, add a Python linting step that run flake8 tests in Travis CI to find 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.
namenamein__all__Checklist