Skip to content

CLN: 29547 replace old string formatting 3 #31945

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

3vts
Copy link
Contributor

@3vts 3vts commented Feb 13, 2020

I splitted PR #31844 in batches, this is the third
For this PR I ran the command grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/ and checked all the files that were returned for .format( and changed the old string format for the corresponding fstrings to attempt a full clean of, #29547. I may have missed something so is a good idea to double check just in case

  • [ x ] tests added / passed
  • [ x ] passes black pandas
  • [ x ] passes git diff upstream/master -u -- "*.py" | flake8 --diff

@3vts 3vts marked this pull request as ready for review February 13, 2020 05:55
@3vts 3vts requested review from ShaharNaveh and WillAyd February 13, 2020 05:56
@simonjayhawkins simonjayhawkins added Clean Code Style Code style, linting, code_checks labels Feb 13, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

@simonjayhawkins @WillAyd do we have a poilicy on this? e.g. i don't think its a big deal to have extra f'' on lines that don't need them.

@simonjayhawkins
Copy link
Member

@simonjayhawkins @WillAyd do we have a poilicy on this? e.g. i don't think its a big deal to have extra f'' on lines that don't need them.

yeah, no big deal since we don't have code check to enforce.

my preference would be to not include but would not request changes on a PR that does.

however, would accept clean-up PRs that remove unused.

@3vts
Copy link
Contributor Author

3vts commented Feb 13, 2020

@simonjayhawkins @WillAyd do we have a poilicy on this? e.g. i don't think its a big deal to have extra f'' on lines that don't need them.

yeah, no big deal since we don't have code check to enforce.

my preference would be to not include but would not request changes on a PR that does.

however, would accept clean-up PRs that remove unused.

Ok will clean it since there is no gain and this is a cleanup anyways

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Feb 13, 2020
@simonjayhawkins
Copy link
Member

Ok will clean it since there is no gain and this is a cleanup anyways

yeah, that's probably the objection here, the intentional adding of the unused string literal prefixes.

@pep8speaks
Copy link

pep8speaks commented Feb 13, 2020

Hello @3vts! 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-02-13 19:36:56 UTC

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

@3vts lgtm pending green. one comment. not blocker.

@simonjayhawkins simonjayhawkins merged commit 72bc92e into pandas-dev:master Feb 13, 2020
@simonjayhawkins
Copy link
Member

Thanks @3vts

@3vts 3vts deleted the CLN-29547-Replace-old-string-formatting-3 branch February 21, 2020 01:30
roberthdevries pushed a commit to roberthdevries/pandas that referenced this pull request Mar 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