rules_mypy aims to make the process of adding mypy
type-checking to your existing rules_python targets as seamless as possible,
through the use of Bazel aspects.
With this approach, we get all the benefits of rules_python for Python builds
and packaging, as well as rules_python_gazelle_plugin for build file generation.
Refer to the latest release for information on how to integrate these rules into your monorepo.
- Integration with
rules_pythonandgazellefor basicmypytype-checking via aspects - Integration with
rules_proto_grpcfor protobuf and gRPC type stubs - Virtual environment isolation and hermetic toolchain integration
- Support as an external repo
-
bzlmodsupport
- Install Bazelisk to easily get up and running with the right version of Bazel for the project.
The source code in this repo was initially inspired by bazel-mypy-integration, with added PEP-561 and protobuf/gRPC type stub support.