Skip to content

pyupgrade #30

Description

@VeckoTheGecko

Suggestions

  • Wait on Echometrics improvements early 2023 #22 (to avoid merge conflicts)
  • Add pre-commit.ci to repo Pre-commit is already in the push.yml GHA workflow
    • Pros: Pre commit hooks run in CI for pull requests (independent of dev install). No associated cost for public repos.
  • Modify .pre-commit-config.yaml to add pyupgrade
    • Pros: Automatically remove outdated Python syntax, and convert code to take advantage of new features (e.g., f-strings, remove encoding comments)
    • Cons: Requires explicitly dropping support for Python versions as per arg in pyupgrade workflow

Addition to .pre-commit-config.yaml

- repo: https://github.com/asottile/pyupgrade
  rev: v3.15.0
  hooks:
    - id: pyupgrade
      args: [--py36-plus]

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions