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.
asottile · Code Quality & Review
Common commercial products in this category: SonarCloud, Codacy, DeepSource
- 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.
- • No published release
- ↑ 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!”