pyupgrade VS mirrors-mypy

Compare pyupgrade vs mirrors-mypy 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)

mirrors-mypy

Mirror of mypy for pre-commit (by pre-commit)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
pyupgrade mirrors-mypy
23 4
3,326 243
- 4.9%
7.9 5.3
20 days ago 5 days ago
Python Python
MIT License MIT 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.

mirrors-mypy

Posts with mentions or reviews of mirrors-mypy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-19.
  • How I start every new Python backend API project
    14 projects | dev.to | 19 Jan 2023
    repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: trailing-whitespace - id: check-merge-conflict - id: check-yaml args: [--unsafe] - id: check-json - id: detect-private-key - id: end-of-file-fixer - repo: https://github.com/timothycrosley/isort rev: 5.10.1 hooks: - id: isort - repo: https://github.com/psf/black rev: 22.8.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.971 hooks: - id: mypy args: [ --warn-unused-configs, --ignore-missing-imports, --disallow-untyped-defs, --follow-imports=silent, --install-types, --non-interactive ]
  • Should I follow the warnings in Pycharm? Does anyone do this?
    6 projects | /r/learnpython | 18 Jul 2022
    repo: https://github.com/pre-commit/mirrors-mypy rev: v0.961 hooks:
  • Error: Cannot find implementation or library stub for module named "pytest" when run from pre-commit
    1 project | /r/learnpython | 8 Jul 2022
    default_language_version: python: python3.10 default_stages: [commit, push] repos: #... Other hooks - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.961 hooks: - args: ["--verbose"] description: Type checking for Python id: mypy
  • Python Code Quality - Improve the quality of your Python code with linters, code formatters, and security vulnerability scanners
    7 projects | /r/Python | 7 Nov 2021
    yaml repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.com/asottile/pyupgrade rev: v2.29.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/PyCQA/isort rev: 5.9.3 hooks: - id: isort - repo: https://github.com/psf/black rev: 21.10b0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 - repo: local hooks: - id: pylint name: pylint entry: pylint language: system types: [python] args: [ "-rn", "-sn", ] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.910-1 hooks: - id: mypy name: mypy entry: mypy language: python types: [python] args: [] require_serial: true - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.4.1 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88]

What are some alternatives?

When comparing pyupgrade and mirrors-mypy you can also consider the following projects:

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

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

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

mirrors-prettier - mirror of the `prettier` npm package for pre-commit

black - The uncompromising Python code formatter

flake8

pep585-upgrade - Pre-commit hook for upgrading type hints

reorder-python-imports - Rewrites source to reorder python imports

isort - A Python utility / library to sort imports. [Moved to: https://github.com/PyCQA/isort]

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