-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Using pyupgrade to convert string formatting to f-string
.
#3579
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @prady0t!
- Not all pre-commit related changes were included in 41019cf, so you might have to reset the commits and include all the changes in a single commit.
- Some pre-commit suggestions must be resolved manually. These are visible here - https://results.pre-commit.ci/run/github/155538761/1701378735.92sVUq40SsSDBx8YpLEX4w. You can access this by scrolling to the bottom of your PR and clicking "details" on the pre-commit.ci job.
- There are a few typing fixes required for the pre-commit job to pass. Adding
UP007
to the list of excluded checks inpyproject.toml
with a small note should fix this for now. (@pipliggins could fix these and add the check back in Adds typing to expression tree #3578.)
Am I supposed to add Line 202 in ebacf49
|
Yes!
You can add the commit hash in the git-revs files. You should roughly do the following -
|
@prady0t How is this coming along? |
Sorry for not being active. I had exams then had to travel back home. Was working on this just today, will complete this by EOD. |
No rush, just curious since you were close |
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Done! Please have a look. |
Pretty sure I messed up something. 😨 |
After you reset your branch locally you pulled the changes in it that were present on GitHub instead of a force push (I think). This is why 101 or so commits are showing up (probably due to a broken merge commit, the presence of which would have fixed it otherwise) |
I might have to close this PR as well. What do you think? |
You can reset your branch and keep working on the same PR using the instructions posted above, no worries! Otherwise, you can undo your commits till 75b58bc is the last commit. |
@prady0t You are so close. If you want I can post the full set of commands to do it with reset/cherry pick. The general procedure I would follow is
|
You can also This would be a nice git exercise but please feel free to open a new PR if you feel that would be better. Edit: Just saw @kratman's comment, haha! |
8a6be25
to
75b58bc
Compare
Did this work? I basically just did this:
|
Yes, you are back on track. All that is left is to follow the instructions in #3579 (comment) |
But all those commits are already there and ci test have passed as well. Do I have to do it again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be done, then – these changes look great! Thanks, @prady0t! Let's wait and see if @Saransh-cpp requires any extra changes here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @prady0t! I could see some formatting issues but hopefully they'll be resolved once ruff format
is added in. You can add all these changes in without having to worry about git blame.
Co-authored-by: Saransh Chopra <saransh0701@gmail.com> Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
Thanks for being so supportive everyone 😄 . |
@all-contributors please add @prady0t for infrastructure |
I've put up a pull request to add @prady0t! 🎉 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #3579 +/- ##
========================================
Coverage 99.59% 99.59%
========================================
Files 258 258
Lines 20755 20755
========================================
Hits 20670 20670
Misses 85 85 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Saransh Chopra <saransh0701@gmail.com>
Fixes #3496
Linked to PR #3551