pyupgrade

Pyupgrade is a tool used to automatically upgrade the source code syntax in Python projects to newer language versions. It can be run from the command line and configured as a pre-commit hook. It updates many different syntax patterns, such as set invariants, dictionary generators, formatted strings, and unnecessary lambdas.

PY

asottile · Code Quality & Review

STARS4.1K
FORKS229
COMMITS0
CONTRIBUTORS0
VERSION—
UPDATED17 days ago
PythonPre-commitRefactoringSyntaxMIT

Common commercial products in this category: SonarCloud, Codacy, DeepSource

What can it do?
  • You can install it from the command line using the Pip tool.
  • You can integrate it into your project as a Pre-commit hook.
  • You can automatically convert old syntax patterns in your code.
Heads up
  • • No published release
User reviews
  • ↑ PositiveHacker News

    Pants 2.8: Golang support, Autoflake and Pyupgrade, Docker publishing, and more

    “Howdy, author here. I'm particularly excited about Pants now supporting Pyupgrade: . It's a well-written tool to automate using all the amazing new Python features, like f-strings. I'm happy to answer any questions and hear any feedback!”

GitHub

My note

Alternative pages

More in: Code Quality & Review