bazel-contrib/bazel-mypy-integration

mypy check python target dependency multi times

Closed this issue · 3 comments

Hi, considering there was a case like
a.py is import by b.py and c.py, and there is 2 target b and c in BUILD file.
When running bazel-mypy on b and c, will a.py be checked 2 times, once in each target ?

I found that in my repo, the python dependency is really complicated. If the underlying python files will be checked multi times, this will make the mypy checked really slow. Thanks for help me out.

This is a duplicate of: #48

Yeah, let's discuss in the other issue (#48). We should get the cache working to speed this up.