- Notifications
You must be signed in to change notification settings - Fork3.8k
pyupgrade --py36-plus **/*.py#3208
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Heya, thanks for the PR! 🥳 🍰
These are some nice cleanups, I'm kinda surprised myself how we had so much ancient code lying around without these cleanups. 😄
Left a few reviews on some places that could improve with some manual changes.
It would also be handy to get this tool running on our lint CI as long as it's not too heavy
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
Just commented on some things I'm not sure about and added some suggestions to further improve string formatting.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Just FYI, flynt would make an additional 119 f-string conversions. |
Uh oh!
There was an error while loading.Please reload this page.
You folks should consider adding pre-commit so that things like |
Oh, that sounds like a lot. Maybe it would be worth chasing that in a future PR Yeah, pre-commit sounds useful although I don't have much experience with it myself yet. |
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.
LGTM! 🥳
Uh oh!
There was an error while loading.Please reload this page.
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!
Uh oh!
There was an error while loading.Please reload this page.
https://github.com/asottile/pyupgrade/blob/main/README.md
Python f-strings are smaller, faster, and easier to read.https://www.scivision.dev/python-f-string-speed