-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
dmypy ignores flags and config file #12249
Comments
Is there a workaround for this issue? I'd really like to use dmypy on a project I'm working on (as it will speed up our CI job considerably compared to mypy), but I need to be able to set options in a config file. |
We have the same problem, first execution |
Maybe a bug in the arg parsing: https://github.com/python/mypy/blob/master/mypy/dmypy/client.py#L256 |
I have the same issue! Really a bummer in terms of productivity :/ |
Hello all 👋 , I've made some progress in understanding the problem. For us the problem is that between two git pulls the daemon checks only the changed files (I think that's normal behavior), but outputs lots of errors that there wasn't in the first run (not sure why, that's the problem) or errors that are not present when running How to reproduce (for me)
The problem
What I tried
I'm out of ideas, hope it helps one of you to have a look Update
|
Latest updateIn the hopes this will help someone days of trial and errors and debugging: we found a workaround The problem described above here ( Solution:
|
Same problem here, really a problem as the errors in vscode are different than when running mypy |
Fixes #5343 Fixes #12249 This can potentially slow down runs in situations where multiple unchanged files are re-added to source list. Potentially, we can track whether modules had errors permanently (not just from previous run), and then only re-check those unchanged re-added files that had errors before. I am not sure if this is important.
Bug Report
dmypy ignores flags and config file
#11396 (comment)
To Reproduce
With the file structure above,
Expected Behavior
--strict
flag and other arguments should be applied.Actual Behavior
--strict
flag of the last command gets ignored.Your Environment
--strict
mypy.ini
(and other config files):strict = true
or no config fileThe text was updated successfully, but these errors were encountered: