Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giving document.path to dmypy limits the daemon and makes it prone to crash #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StabbarN
Copy link

When you use dmypy run -- file, you're telling the daemon to only check that specific file, rather than checking your entire project. The daemon is still watching for all file changes, but you've limited the scope of that particular check.

Difference:

  • dmypy run (without arguments): Checks your entire project, using the configuration from your mypy.ini/setup.cfg/pyproject.toml
  • dmypy run -- file: Only checks the specified file and its direct dependencies

This is helpful in situations where you want a quick check of just one file during development, but it won't give you the complete project-wide type checking that dmypy run provides. The daemon itself maintains a cache and tracks file dependencies regardless of which command you use, but the scope of checking is determined by your command arguments.

Continuation of #65 :) It's still problematic for me. Seems like you don't want to change the behaviour so I did a rough attempt to add an option for it. Please advise.

…to crash

When you use `dmypy run -- file`, you're telling the daemon to only check that specific file, rather than checking your entire project. The daemon is still watching for all file changes, but you've limited the scope of that particular check.

Difference:

dmypy run (without arguments): Checks your entire project, using the configuration from your mypy.ini/setup.cfg/pyproject.toml
dmypy run -- file: Only checks the specified file and its direct dependencies

This is helpful in situations where you want a quick check of just one file during development, but it won't give you the complete project-wide type checking that dmypy run provides.
The daemon itself maintains a cache and tracks file dependencies regardless of which command you use, but the scope of checking is determined by your command arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant