Config file format is inconvenient when you have a lot of untyped dependencies
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
- Are you reporting a bug, or opening a feature request?
Feature request.
- Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
When a project with many dependencies is ported to mypy, it will typically have to tell mypy to ignore the imports of these many dependencies. That means that the mypy.ini config file will look like this
[mypy-numpy]
ignore_missing_imports = True
[mypy-cv2]
ignore_missing_imports = True
[mypy-bson,bson.*]
ignore_missing_imports = True
For big projects, this list will be very long.
- What is the behavior/output you expect?
It would be nice if you could specify the list as a single option in the mypy config file:
[mypy]
ignore_missing_imports =
numpy
cv2
bson
...
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 con gli esempi di mypy.ini nell’issue, quindi individua il parser della configurazione di mypy e i test per le opzioni per modulo. Verifica come vengono gestite attualmente le sezioni ripetute di ignore_missing_imports e i pattern con punti come bson.*. Il lavoro è completato quando una singola impostazione in formato lista applica l’opzione a ogni modulo o pattern indicato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100