typeddjango / pytest-mypy-plugins

pytest plugin for testing mypy types, stubs, and plugins
https://pypi.org/project/pytest-mypy-plugins/
MIT License
100 stars 26 forks source link

Support `--mypy-extra-options` CLI flag #122

Open sobolevn opened 1 year ago

sobolevn commented 1 year ago

This is common to have the same mypy.ini / pyproject.toml for tests and type checking. But, sometimes we only need to change a couple of settings in tests.

For example, passing --mypy-extra-settings="--no-incremental" as we did in django-stubs with two mypy.ini files.

Right now, there's no way to do that.