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

CLN remove unnecessary trailing commas in pandas/io #36052

Merged
merged 3 commits into from
Sep 3, 2020

Conversation

sarthakvk
Copy link

@sarthakvk sarthakvk commented Sep 1, 2020

@MarcoGorelli can you review this PR this is related to issue #35925, if this looks good to you I can open another PR

  • pandas/io/sas/sas_xport.py

  • pandas/io/stata.py

  • passes black pandas

@pep8speaks
Copy link

pep8speaks commented Sep 1, 2020

Hello @sarthakchaudhary13! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-09-03 11:12:51 UTC

Copy link
Member

@dsaxton dsaxton left a comment

Choose a reason for hiding this comment

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

Thanks @sarthakchaudhary13, can you run black on /pandas/io to get linting green?

@sarthakvk
Copy link
Author

Thanks for reviewing this PR @dsaxton, this is the output after re-running black on pandas/io.

$ black pandas/io
All done! ✨ 🍰 ✨ 
47 files left unchanged. 

@sarthakvk sarthakvk requested a review from dsaxton September 2, 2020 06:33
@MarcoGorelli
Copy link
Member

Thanks for reviewing this PR @dsaxton, this is the output after re-running black on pandas/io.

$ black pandas/io
All done! ✨ 🍰 ✨ 
47 files left unchanged. 

Can you check this with black version 19.10b0 as well, as that's the version that's run during CI? Ideally, you would:

  • upgrade black
  • run black on some files
  • check what's changed, and try removing the trailing commas
  • run black again
  • downgrade black to version 19.10b0 and check everything is still fine

@sarthakvk
Copy link
Author

Can you check this with black version 19.10b0 as well, as that's the version that's run during CI? Ideally, you would:

* upgrade `black`

* run `black` on some files

* check what's changed, and try removing the trailing commas

* run `black` again

* downgrade `black` to version 19.10b0 and check everything is still fine

@MarcoGorelli Thanks for the tip, both black versions checks are passing
I did a git revert for my previous commit but somehow other files also got changed, can you help me to fix this 😞

@MarcoGorelli
Copy link
Member

@sarthakchaudhary13 I think I would do something like

git fetch upstream master
git rebase -i upstream/master  # choose which commits you want to keep
git push origin <your branch name> -f

@sarthakvk
Copy link
Author

@sarthakchaudhary13 I think I would do something like

git fetch upstream master
git rebase -i upstream/master  # choose which commits you want to keep
git push origin <your branch name> -f

@MarcoGorelli Thanks, if this looks good to you I can open another PR with fixing more files 😄

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Nice one @sarthakchaudhary13 ! And sure, any help here would be appreciated

@simonjayhawkins simonjayhawkins added Clean Code Style Code style, linting, code_checks labels Sep 2, 2020
@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Sep 2, 2020
@MarcoGorelli
Copy link
Member

@sarthakchaudhary13 looks like there's a merge conflict, could you fetch and merge upstream/master and then push again please?

@sarthakvk
Copy link
Author

@sarthakchaudhary13 looks like there's a merge conflict, could you fetch and merge upstream/master and then push again please?

Yeah sure.

@WillAyd WillAyd merged commit 8b38239 into pandas-dev:master Sep 3, 2020
@WillAyd
Copy link
Member

WillAyd commented Sep 3, 2020

Thanks @sarthakchaudhary13

@sarthakvk sarthakvk deleted the rm-trailing-commas branch September 3, 2020 20:04
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants