Skip to content

Check the whitespace of pull requests on Travis #2367

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 8 commits into from
Jun 24, 2017

Conversation

brettcannon
Copy link
Member

@brettcannon brettcannon self-assigned this Jun 23, 2017
@brettcannon brettcannon requested a review from ncoghlan June 23, 2017 22:46
@brettcannon
Copy link
Member Author

Since this will block PRs from being submitted if I get this wrong I won't be merging it until someone can provide me an approving review.

Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor suggestion regarding the failure message, but the actual check looks good to me.

if not fixed:
print('No whitespace issues found')
else:
print(f'Please fix the {len(fixed)} file(s) with whitespace issues')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps specifically mention make patchcheck here? It won't help Windows devs, but it's the easiest option elsewhere.

@brettcannon brettcannon merged commit 70cb187 into python:master Jun 24, 2017
@brettcannon brettcannon deleted the check-whitespace branch June 24, 2017 23:51
brettcannon added a commit to brettcannon/cpython that referenced this pull request Jun 24, 2017
brettcannon added a commit to brettcannon/cpython that referenced this pull request Jun 24, 2017
@bedevere-bot
Copy link

GH-2386 is a backport of this pull request to the 3.6 branch.

@bedevere-bot
Copy link

GH-2387 is a backport of this pull request to the 3.5 branch.

@miss-islington
Copy link
Contributor

Thanks @brettcannon for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @brettcannon, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.

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.

6 participants