add pyupgrade lint group by danieleades · Pull Request #2661 · pygments/pygments
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 780
Merged
Anteru merged 3 commits intopygments:masterfrom
Anteru merged 3 commits intopygments:masterfrom
Conversation
danieleades
marked this pull request as ready for review
Copy link
Collaborator
Anteru
commented
Mar 26, 2024
Anteru commented
Mar 26, 2024@jeanas , @birkenfeld : I'm generally in favor of being consistent in application of f strings instead of using .format() all over the place, but I'm not 100% convinced if we want this kind of sweeping change. Things I dislike here are:
- https://github.com/pygments/pygments/pull/2661/files#diff-19b41a2482f38f35c49309b6d25775ed9c2b059c2e5a4139d7c10a90bef1d9c9R601
- https://github.com/pygments/pygments/pull/2661/files#diff-972e36f207f7e653c50bdc7dd2bb0469f93eb3aa64558e4341a446fa147660d1R121
But overall, I think this has merit. Any strong feelings about this? Otherwise I'll merge this for 2.18.
Copy link
Member
birkenfeld
commented
Mar 27, 2024
birkenfeld commented
Mar 27, 2024Yeah the long lines should be broken, but otherwise, I think it's okay.
Copy link
Contributor Author
danieleades
commented
Mar 28, 2024
danieleades commented
Mar 28, 2024@jeanas , @birkenfeld : I'm generally in favor of being consistent in application of
fstrings instead of using.format()all over the place, but I'm not 100% convinced if we want this kind of sweeping change. Things I dislike here are:
yep, will break this up
what's the issue with this one?
But overall, I think this has merit. Any strong feelings about this? Otherwise I'll merge this for 2.18.
Copy link
Collaborator
Anteru
commented
Mar 28, 2024
Anteru commented
Mar 28, 2024The issue there is that I find groupname to be a better name than _re_id, and I don't see a way to get to the same level of readability with f- strings, but it's not a strong argument.
Anteru
merged commit
eeb568d
into
pygments:master
Copy link
Collaborator
Anteru
commented
Mar 29, 2024
Anteru commented
Mar 29, 2024Merged, thanks!
Anteru
added
the
changelog-update
label
Mar 29, 2024
Anteru
self-assigned this
Anteru
added this to the
2.18.0 milestone
danieleades
deleted the
pyupgrade
branch
Anteru
removed
the
changelog-update
label
Apr 28, 2024This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment