bazel-mypy-integration icon indicating copy to clipboard operation
bazel-mypy-integration copied to clipboard

mypy check python target dependency multi times

Open WeiYunKolmostar opened this issue 2 years ago β€’ 1 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 ?

WeiYunKolmostar avatar Sep 19 '22 08:09 WeiYunKolmostar

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.

WeiYunKolmostar avatar Sep 19 '22 08:09 WeiYunKolmostar

This is a duplicate of: https://github.com/bazel-contrib/bazel-mypy-integration/issues/48

ewhauser avatar Nov 19 '22 16:11 ewhauser

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

adzenith avatar Feb 01 '24 06:02 adzenith