Open
Description
It would be great if this plugin could support a reporting scope of project
, which typechecks all files in the current project (defined as the first directory in the tree with a pyproject.toml
file).
We have a large monorepo where:
file
scope is not useful as we need cross-file type checkingworkspace
scope is too broad, making type checking slow, and requiring the entire repo to be type-checkable (sometimes we files that will cause mypy to throw, such as a missing__init__.py
file)
I'm not sure if mypy itself supports this kind of scoping, but if not, perhaps this plugin could detect the current project and pass that in as the directory to the mypy command i.e. python -m mypy /path/to/project
.
At the same time, it is important that mypy config is respected from the root of the workspace. In monorepos, we tend to have a root pyproject.toml
that defines mypy config, and it would be great to respect that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment