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 to pre-commit hooks #419

Open
3 tasks
hwine opened this issue Dec 1, 2020 · 0 comments
Open
3 tasks

Add pyupgrade to pre-commit hooks #419

hwine opened this issue Dec 1, 2020 · 0 comments
Labels
code hygiene Improvements to code quality, but no visible features. enhancement

Comments

@hwine
Copy link
Contributor

hwine commented Dec 1, 2020

pyupgrade can help with moving the code base to utilize newer python features, such as f-strings. I roughly works like black, in that it will modify the files, allowing easy inspection of the changes.

Current plan:

  • introduce & pin to --py38-plus
  • examine scope of changes to decide if "flag day" approach is needed.
  • land it

Notes:

  • Updating the python version for this plugin will never be a blocker to upgrading the supported version.
  • Any maintenance of the python version will be delegated to the "bump version" solution
@hwine hwine added enhancement code hygiene Improvements to code quality, but no visible features. labels Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code hygiene Improvements to code quality, but no visible features. enhancement
Projects
None yet
Development

No branches or pull requests

1 participant