bazel-mypy-integration
bazel-mypy-integration copied to clipboard
Support for multiple mypy.ini files
Hi, I work on a large monorepo that has multiple projects owned by different people. I'm migrating these projects to bazel and currently they each have their own mypy.ini
file.
From reading the setup instructions it seems that they are meant to have a single configuration file for the whole repo, is there a way around this?
Mypy itself doesn't support this, based on my understanding of https://mypy.readthedocs.io/en/stable/config_file.html - unlike ruff or eslint, the working directory must be carefully set to the spot where a configuration file should be read, for each invocation of the tool. I'll add to the TODO list on https://github.com/aspect-build/rules_lint/pull/78