"--version" option does not produce output matching an existing git tag
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug Report
$ mypy --version
mypy 1.15.0 (compiled: yes)
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: https://github.com/super-linter/super-linter/issues/6826
Your Environment
- Mypy version used: v1.15.0
- Mypy command-line flags: --version
- Mypy configuration options from
mypy.ini(and other config files): N/A - Python version used: 3.12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia eseguendo il comando indicato mypy --version e seguendo il punto di ingresso della CLI che formatta l'output della versione. Confronta il risultato con il tag esistente v1.15.0, quindi verifica che la convenzione scelta sia coerente e coperta da un controllo appropriato dell'output della versione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, python
- Ambito
- cli, release
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100