New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --mypy-config option #110
Comments
Hey there 👋 I would recommend implementing a def pytest_configure(config):
plugin = config.pluginmanager.getplugin("mypy")
plugin.mypy_argv.extend(["--config-file", "tox.ini"]) |
@dmtucker: doing this would require implementing it in every |
Maybe I'm not understanding the issue? 🤔
Most projects won't need this, and I really don't want to get into the business of mirroring If you want to be able to control how multiple |
@dmtucker I am using Bazel to run pytest across my python libraries and services in a monorepo. Since Bazel builds everything in a separate environment I cannot pass the config file path to the plugin in conftest.py, I have to define the path in Bazel's BUILD file. But the only way to pass config file path in Bazel's BUILD file is via flag to this plugin. |
Hello! I have not found how to pass path to mypy config?
I want something like: pytest --mypy --mypy-config tox.ini
It's because mypy isn't read config from tox.
The text was updated successfully, but these errors were encountered: