-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Broken mypy cache? #83
Comments
I guess that the real question is, why this part might be needed: pytest-mypy-plugins/pytest_mypy_plugins/item.py Lines 302 to 304 in a2d4add
Are there any cases, where test case cache can leak to files not identified by simply iterating over |
Just thinking out loud:
|
I am trying to investigate some issues related to caching behavior. When testing project with complex dependencies, I see serious performance degradation (roughly 20 fold on just 36 tests) compared to using
mypy.test.testcheckTypeCheckSuite
directly.I thought the issue was a simple logic mistake (#82), but it seems it might be actually with
find_dependent_paths
pytest-mypy-plugins/pytest_mypy_plugins/item.py
Line 187 in a2d4add
Since it uses at least
main.py
it includes all kinds of packages usingmain
as a name (not necessarily as a module name, could be even an argument), for exampleThis seems to escalate (in my case, to
numpy
annotations, for reason yet to be determined), and break caching in general.Possibly related to #37
Originally posted by @zero323 in #82 (comment)
The text was updated successfully, but these errors were encountered: