Clarification regarding dmypy and "one set of source files"
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 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?
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 dal passaggio del README che descrive un utente e un insieme di file sorgente, quindi esamina il comportamento del comando dmypy durante esecuzioni ripetute con lo stesso file di stato. Conferma cosa succede quando baz.py viene aggiunto a foo.py e bar.py, compreso se il daemon deve essere riavviato o può conservare la propria cache, e documenta il risultato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100