Clarification regarding dmypy and "one set of source files"
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
I'm working to set up dmypy in a multi-root workspace where we'll need to run multiple instances of dmypy for various subsets of files. We're hoping to do something like dmypy --status-file dmypy_$subset.json run -- <flags> <subset files...> for each subset so they all get their own instance.
However, I'm curious how the server will deal with the addition of new files to one of the subsets in light of this note on the readme:
Each mypy daemon process supports one user and one set of source files, and it can only process one type checking request at a time. You can run multiple mypy daemon processes to type check multiple repositories.
For example, if we typically do
dmypy --status-file .dmypy_foo.json run -- <flags> foo.py bar.py
what happens when we add some baz.py to the repo? We'd start calling
dmypy --status-file .dmypy_foo.json run -- <flags> foo.py bar.py baz.py
Is that going to break anything? Do we need to restart the daemon and lose the caching benefits if there's a new file?
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 dem README-Abschnitt, der einen Benutzer und einen Satz von Quelldateien beschreibt, und untersuche dann das Verhalten des dmypy-Befehls bei wiederholten Ausführungen mit derselben Statusdatei. Bestätige, was passiert, wenn baz.py zu foo.py und bar.py hinzugefügt wird, einschließlich der Frage, ob der Daemon neu gestartet werden muss oder seinen Cache behalten kann, und dokumentiere das Ergebnis.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100