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

add pyupgrade lint group #2661

Merged
merged 3 commits into from Mar 29, 2024
Merged

add pyupgrade lint group #2661

merged 3 commits into from Mar 29, 2024

Conversation

danieleades
Copy link
Contributor

No description provided.

@danieleades danieleades marked this pull request as ready for review March 9, 2024 15:34
@Anteru
Copy link
Collaborator

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:

But overall, I think this has merit. Any strong feelings about this? Otherwise I'll merge this for 2.18.

@birkenfeld
Copy link
Member

Yeah the long lines should be broken, but otherwise, I think it's okay.

@danieleades
Copy link
Contributor Author

@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:

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.

@Anteru
Copy link
Collaborator

Anteru commented Mar 28, 2024

The 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 Anteru merged commit eeb568d into pygments:master Mar 29, 2024
13 checks passed
@Anteru
Copy link
Collaborator

Anteru commented Mar 29, 2024

Merged, thanks!

@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Mar 29, 2024
@Anteru Anteru self-assigned this Mar 29, 2024
@Anteru Anteru added this to the 2.18.0 milestone Mar 29, 2024
@danieleades danieleades deleted the pyupgrade branch March 29, 2024 13:29
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants