Clarification regarding dmypy and "one set of source files"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README passage describing one user and one set of source files, then inspect the dmypy command behavior for repeated runs with the same status file. Confirm what happens when baz.py is added to foo.py and bar.py, including whether the daemon must restart or can retain its cache, and document the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100