Skip to content

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

Merged
merged 7 commits into from
Feb 25, 2014
Merged

MAINT: add pyflakes to Travis-CI #3384

merged 7 commits into from
Feb 25, 2014

Conversation

pv
Copy link
Member

@pv pv commented Feb 24, 2014

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.

pv added 7 commits February 25, 2014 01:15
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.
@pv pv added the PR label Feb 24, 2014
@rgommers
Copy link
Member

Looks good to me. TravisCI errors look unrelated, but haven't seen that error before so re-run anyway.

@rgommers rgommers closed this Feb 25, 2014
@rgommers rgommers reopened this Feb 25, 2014
@charris
Copy link
Member

charris commented Feb 25, 2014

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.

@rgommers
Copy link
Member

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b94a5d5 on pv:travis-pyflakes into 3b0c4a0 on scipy:master.

@rgommers rgommers added this to the 0.14.0 milestone Feb 25, 2014
rgommers pushed a commit that referenced this pull request Feb 25, 2014
MAINT: add pyflakes to Travis-CI
@rgommers rgommers merged commit 48b9d09 into scipy:master Feb 25, 2014
@rgommers
Copy link
Member

Works now, merging. Thanks Pauli.

@rgommers rgommers modified the milestone: 0.14.0 Feb 25, 2014
@cowlicks
Copy link
Contributor

@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.

@rgommers
Copy link
Member

@cowlicks thanks, that looks much more reasonable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants