theoremlp / rules_mypy

a Bazel mypy aspect
Apache License 2.0
18 stars 6 forks source link

Fix default mypy.ini and update readme #17

Closed mark-thm closed 3 months ago

mark-thm commented 3 months ago

Issue

Closes #15. We set --follow-imports=silent when we call the CLI, which generally prevents type-checking 3rd party dependencies. When 3rd party dependencies contain typings in .pyi files, we also need to set follow_imports_for_stubs = True.

Summary

Set reasonable defaults in the (mandatory if not otherwise provided) default_mypy.ini file. Update the README to clarify that the contents of mypy.ini should contain some instructions around following imports.