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

Add __future__ import style checker #1898

Merged
merged 5 commits into from
Apr 16, 2016
Merged

Add __future__ import style checker #1898

merged 5 commits into from
Apr 16, 2016

Conversation

sampsyo
Copy link
Member

@sampsyo sampsyo commented Feb 28, 2016

This adds the flake8-future-import plugin for flake8, which enforces the standard set of __future__ imports at the top of all Python files. This revealed a fair number of files that need to be fixed.

To be revisited after #1887 is merged.

@jackwilsdon
Copy link
Member

Hmm, I'm not sure why Travis is refusing to run on my most recent commit to this branch 😢. Looking at the requests page, it seems that fe835a1 was ignored because the branch is "not included or excluded", and this has "overridden" the fact that it is a change PR and should have been built as a change to a PR.

@sampsyo
Copy link
Member Author

sampsyo commented Mar 16, 2016

That's weird! Sometimes I really don't understand Travis.

@untitaker
Copy link
Contributor

Travis seems to have passed?

@sampsyo
Copy link
Member Author

sampsyo commented Apr 3, 2016

I think you're just seeing AppVeyor (the Windows CI), which is a no-op for now.

sampsyo and others added 5 commits April 16, 2016 01:26
This adds the [flake8-future-import][f] plugin for flake8, which enforces the
standard set of `__future__` imports at the top of all Python files. This
revealed a fair number of files that need to be fixed.

To be revisited after #1887 is merged.

[f]: https://github.com/xZise/flake8-future-import
@wisp3rwind
Copy link
Member

I rebased this, and added the missing imports. There was only one further line to change slightly, and the tests run fine. However I don't know how github will react if force-pushing this to beetbox/flake8-future-import. Will this be fine, or is it better to open a new PR from a distinct branch?

@sampsyo
Copy link
Member Author

sampsyo commented Apr 16, 2016

Thanks, @wordofglass! In my experience, it's fine to force-push to the branch associated with a PR—it will just replace the commits currently listed here. The UI is a little confusing, but it works.

@wisp3rwind
Copy link
Member

Ok, let's hope that I don't break things 😟

@sampsyo
Copy link
Member Author

sampsyo commented Apr 16, 2016

It worked! The commits list moved farther down in the thread visually, but everything worked. 🚀

@sampsyo sampsyo merged commit 3fb2185 into master Apr 16, 2016
@wisp3rwind wisp3rwind deleted the flake8-future-import branch April 21, 2016 22:33
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.

4 participants