bazel-mypy-integration icon indicating copy to clipboard operation
bazel-mypy-integration copied to clipboard

Support for multiple mypy.ini files

Open juanique opened this issue 1 year ago β€’ 1 comments

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?

juanique avatar Jul 28 '22 06:07 juanique

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

alexeagle avatar Dec 21 '23 01:12 alexeagle