python_version should default to the interpreter for python_executable
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
Feature
If python_version is omitted and python_executable is set, the Python version is determined by running python_executable.
Currently python_version defaults to the version of Python that is running mypy.
Pitch
This reduces the amount of duplicate configuration needed in some cases.
For example, if mypy is installed with pipx then to run it against a venv you would need
python_executable = ".venv/bin/python3.10"
python_version = "3.10"
We particularly have a desire to avoid duplicating the Python version into lots of places. The target state would be
python_executable = ".venv/bin/python3"
This means that changing the version of Python in use in a project just involves smashing and recreating the venv, instead of configuration changes in mypy.
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 tracciando la gestione della configurazione di mypy per python_version e python_executable, quindi individua dove viene selezionata la versione dell’interprete corrente. Verifica il comportamento con configurazioni che omettono python_version e impostano python_executable, incluso l’esempio .venv/bin/python3; il lavoro è completato quando viene utilizzata la versione dell’interprete dell’eseguibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100