theoremlp / rules_mypy

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

Feature request: opt-in type-checking #44

Closed chrisirhc closed 1 week ago

chrisirhc commented 1 week ago

There's a suppression_tags on the aspect initializer, my ask is to have an optional enable_tags that's used when it's non-empty to enable the type-checking.

This is mainly for us to enable mypy selectively and incrementally on a large and mostly untyped codebase.

Is there any interest for such an option? I don't mind working on a PR. Also open other suggestions.