pyupgrade VS pep585-upgrade

Compare pyupgrade vs pep585-upgrade and see what are their differences.

pyupgrade

A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language. (by asottile)

pep585-upgrade

Pre-commit hook for upgrading type hints (by snok)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
pyupgrade pep585-upgrade
23 2
3,326 53
- -
7.9 3.0
15 days ago over 1 year ago
Python Python
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pyupgrade

Posts with mentions or reviews of pyupgrade. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-12.

pep585-upgrade

Posts with mentions or reviews of pep585-upgrade. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-22.
  • Mypy 0.800 Released
    5 projects | /r/Python | 22 Jan 2021
    I ran against a private work repo and reset already, sorry :) I ran with precommit using your example here which seemed to be including that flag: https://github.com/snok/pep585-upgrade#config

What are some alternatives?

When comparing pyupgrade and pep585-upgrade you can also consider the following projects:

pre-commit-hooks - Some out-of-the-box hooks for pre-commit

mypyc - Compile type annotated Python to fast C extensions

flynt - A tool to automatically convert old string literal formatting to f-strings

black - The uncompromising Python code formatter

autoflake - Removes unused imports and unused variables as reported by pyflakes

black - The uncompromising Python code formatter [Moved to: https://github.com/psf/black]

pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.

pants - The Pants Build System

flake8

mirrors-mypy - Mirror of mypy for pre-commit

bandit - Bandit is a tool designed to find common security issues in Python code.