Skip to content

Add pyupgrade to pre-commit #2301

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

Merged
merged 4 commits into from
Jan 17, 2021
Merged

Add pyupgrade to pre-commit #2301

merged 4 commits into from
Jan 17, 2021

Conversation

Bibo-Joshi
Copy link
Member

Stumbled accros that project it thought it's neat. TBH, I'm not 100% we should add it to the pre-commit as it's somewhat young (2017) and doesn't seem well recognized in terms of stars, forks and dependent packages (https://github.com/asottile/pyupgrade).
Then again, dependent packages don't list pre-commit iirc, and it's apparently rather actively maintained by the pre-commit author himself.
Also I didn't find an option to make it not change files in pre-commit (it fails, but automatically modifies the files).
Anyway, even if we don't add it, at least the changes it made seem valid :)

@Bibo-Joshi Bibo-Joshi added the ⚙️ tests affected functionality: tests label Jan 7, 2021
@Bibo-Joshi Bibo-Joshi requested a review from Poolitzer January 7, 2021 21:49
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)

@Poolitzer
Copy link
Member

Poolitzer commented Jan 10, 2021

I would vote in favour of implementing this, but since this is a dev dependency kind of, we should get votes from other maintainers I guess?

Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

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

alright, looks good, just one comment

@Bibo-Joshi
Copy link
Member Author

I'm gonna go ahead and merge. If we dislike it at some point, we can kick it, but we don't have to bee too strict on dev dependencies I guess …

@Bibo-Joshi Bibo-Joshi merged commit f31787a into master Jan 17, 2021
@Bibo-Joshi Bibo-Joshi deleted the pyupgrade branch January 17, 2021 22:24
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ tests affected functionality: tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy