We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4bae65 commit 5fbff02Copy full SHA for 5fbff02
src/pytest_mypy.py
@@ -108,7 +108,11 @@ def pytest_configure_node(self, node): # xdist hook
108
def pytest_collect_file(path, parent):
109
"""Create a MypyFileItem for every file mypy should run on."""
110
if path.ext in {".py", ".pyi"} and any(
111
- [parent.config.option.mypy, parent.config.option.mypy_ignore_missing_imports],
+ [
112
+ parent.config.option.mypy,
113
+ parent.config.option.mypy_config_file,
114
+ parent.config.option.mypy_ignore_missing_imports,
115
+ ],
116
):
117
# Do not create MypyFile instance for a .py file if a
118
# .pyi file with the same name already exists;
0 commit comments