Skip to content

pyupgrade #30

@VeckoTheGecko

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]

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