-
Notifications
You must be signed in to change notification settings - Fork 290
Description
Xoogler here, love this tool! I’m trying to write Bazel rules to run pytype which don’t seem to exist as open-source. My current solution effectively ends up running pytype from scratch on each py_library which scales poorly. Does anyone have a solution to this?
I’m imagining a way for the bazel rule impl to run pytype incrementally on one .py file plus the .pyi of the dependencies that bazel previously orchestrated inferring IOW skip analyze_project/ninja. The difficulty with using pytype-single is imports that we don’t want to infer e.g. because they are from @pypi, etc. analyze_project writes default.pyi entries for these in the imports file but with pytype-single these are just missing imports. pytype-single --disable=import-error seems to get around this but I’m not sure if this is actually doing what I want?