Skip to content

Add pyupgrade to pre-commit hooks #419

Description

@hwine

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code hygieneImprovements to code quality, but no visible features.enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions