Change dmypy status file with config or environment variable
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 54
Beschreibung
Feature
The only way I've been able to set the dmypy status file is by passing --status-file on the command-line, but I'm running dmypy in a few different scripts and would love to be able to hard-code this in one spot.
Pitch
Instead of dmypy --status-file /tmp/dmypy-status, I'd like to either make an environment variable (DMYPY_STATUS_FILE, DMYPY_STATUS_FILE, or similar) or even a mypy config option (status_file?) so that I don't have to explicitly set the status file in every command-line invocation.
Why are you even changing the status file?
Great question. I'm using Docker with a host-mounted volume, and I'd like to avoid sharing the host-mounted volume back and forth between the host and the container. By moving it out of the current directory, I'll be able to run dmypy both inside and outside of the container without conflicts.
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
Beginnen Sie bei dmypys Verarbeitung der Befehlszeilenoption --status-file und verfolgen Sie, wie Konfigurations- und Umgebungswerte geladen werden. Entscheiden Sie, welcher unterstützte Mechanismus zur Anfrage passt, und überprüfen Sie anschließend, dass Benutzer die Statusdatei einmal festlegen und dmypy aufrufen können, ohne die Option erneut anzugeben, einschließlich separater Ausführungen auf dem Host und im Container.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100