You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect either the --version option to return the version number with a "v" prefix or the git tags to omit the "v" prefix to match the version output.
The existing behavior causes issues where other tools or users are using the --version output to point to a git tag (e.g., when defining a pre-commit hook, or e.g., when aggregating versions of many linters and formatters like in super-linter).
david-mcdowell-ilw
changed the title
--version option output does not match any existing git tags
"--version" option does not produce output matching an existing git tag
Jun 3, 2025
You probably don't want to be using this repo (https://github.com/python/mypy) in pre-commit, because pre-commit installs things from source as opposed to wheels. That will lead you to use a pure Python mypy instead of mypyc-compiled mypy, which is maybe 4x slower
You probably don't want to be using the repo tag in pre-commit, because that will lead you to use a pure Python mypy instead of mypyc-compiled mypy, which is maybe 4x slower
Sorry, I can't find any references to what you're saying here, and I also can't get consistent run times with pre-commit between what should be identical runs to test these differences accurately. Could you explain a bit more?
Bug Report
This version output does not match an existing tag in git.
https://github.com/python/mypy/tags
https://github.com/python/mypy/releases/tag/v1.15.0
I would expect either the
--version
option to return the version number with a "v" prefix or the git tags to omit the "v" prefix to match the version output.The existing behavior causes issues where other tools or users are using the
--version
output to point to a git tag (e.g., when defining a pre-commit hook, or e.g., when aggregating versions of many linters and formatters like in super-linter).related issue: super-linter/super-linter#6826
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: