-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
MAINT: add pyflakes to Travis-CI #3384
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
The variables will receive their values during the running of the value.
The `types` and `r_mend` variables are undefined, making the routines tokenize_multilines and floupi inoperable.
There's no routine get_psolve. Just assume psolve is given.
Not bugs per se here, but let's make pyflakes happier.
Looks good to me. TravisCI errors look unrelated, but haven't seen that error before so re-run anyway. |
Note that you can rerun travis from the travis page, look for icon on the tab line. You can also rerun individual tests from their page. If you don't see those options, it may be that you have to join travis-ci. |
Ah yes. I looked for it, but I didn't sign in. Now it's asking me for write access on all my public Github data though, which I don't think I want it to have. |
MAINT: add pyflakes to Travis-CI
Works now, merging. Thanks Pauli. |
@rgommers I signed into Travis-CI today and its permissions have changed. It no longer asks for write access to your repos if I understand correctly. |
@cowlicks thanks, that looks much more reasonable |
Static code checking can be useful in some cases, esp. catching missing imports and so on. Of the Python static checkers, pyflakes seems to do the least amount of opinion-based style checking, and seems the best for this purpose.
This PR adds pyflakes run to the automated test suite. I filter out most "assigned but unused" failures, as those shouldn't result to Travis failures.
I also fix some issues it finds. Mainly harmless, although some of them were actual bugs.