Config file format is inconvenient when you have a lot of untyped dependencies
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
- 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
...
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den mypy.ini-Beispielen im Issue und ermittle dann mypys Konfigurationsparser sowie die Tests für Optionen pro Modul. Prüfe, wie wiederholte Abschnitte für ignore_missing_imports und durch Punkte getrennte Muster wie bson.* derzeit behandelt werden. Als abgeschlossen gilt die Aufgabe, wenn eine einzelne Einstellung im Listenformat die Option auf jedes benannte Modul oder Muster anwendet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100