-
Notifications
You must be signed in to change notification settings - Fork 688
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 to our toolchain #6699
Comments
@legoktm I can work on this if you'd like. I'm relatively new and don't have professional experience yet but I do open source sometimes and I've worked with |
Hi @phershbe, thanks for your interest! I want to get input from other team members before we move ahead with this, that will probably take (or not) a week if you don't mind waiting, or I can suggest another task for you to work on now! |
Generated with `pyupgrade --py38-plus **.py`, with manual adjustments for unused imports and then running black+isort. Mostly covers: * migration to f-strings * removal of coding: utf-8 comments * io.open() -> open() Fixes #6699.
Generated with `pyupgrade --py38-plus **.py`, with manual adjustments for unused imports and then running black+isort. Mostly covers: * migration to f-strings * removal of coding: utf-8 comments * io.open() -> open() Fixes #6699.
Generated with `pyupgrade --py38-plus **.py`, with manual adjustments for unused imports and then running black+isort. Mostly covers: * migration to f-strings * removal of coding: utf-8 comments * io.open() -> open() Fixes #6699.
Generated with `pyupgrade --py38-plus **.py`, with manual adjustments for unused imports and then running black+isort. Mostly covers: * migration to f-strings * removal of coding: utf-8 comments * io.open() -> open() Fixes #6699.
Description
pyupgrade is a tool that automatically rewrites code to use modern syntax. https://github.com/asottile/pyupgrade has a detailed list with examples.
This would be similar to black/isort, in which we'd have a command like
make pyupgrade
that applies all the changes, and then another likemake pyupgrade-check
which verifies there are no unapplied changes. Note that black should always run after pyupgrade changes things.User Stories
The text was updated successfully, but these errors were encountered: