Global configuration file merged with project configuration file
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
I'm trying to use the python language server, pyls-mypy and mypy to asynchronously show me type hints in vim.
This is a bit related to #4542 and #5241.
Immediately I had the problem of Cannot find module named 'a.b.c' which sent me down a rabbit whole trying to figure out what to do. It seems like the answer is --ignore-missing-imports. Since I'm not invoking mypy myself I would like to put this information in a config file. So I put it in ~/.mypy.ini and the error message does not go away. Finally I figured out that setup.cfg is shadowing my configuration file, and yes, putting the [mypy] block in the setup.cfg finally let's me get rid of the warning.
So my question is. What is the proposed solution to get rid of this warning for all my python projects? My preferred solution would be that any project-local configuration file is merged with my personal configuration file (like other tools would do, e.g. git and pylint).
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
Non sono indicati file, test o punti di ingresso. Inizia tracciando il modo in cui mypy individua e assegna la priorità a ~/.mypy.ini e al setup.cfg del progetto, quindi esamina le issue correlate #4542 e #5241. Il lavoro è completato quando sarà definito e implementato un comportamento di merge chiaro, in modo che la configurazione personale possa essere applicata a più progetti senza perdere le impostazioni locali del progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100