Skip to content

Commit 6e95171

Browse files
committed
Add mypy-only-local-stub option
1 parent da29f34 commit 6e95171

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pytest_mypy_plugins_shim/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ def pytest_addoption(parser: Parser) -> None: # noqa: D103
7171
help="Fully qualified path to the extension hook function, in case you need custom yaml keys. "
7272
"Has to be top-level.",
7373
)
74+
group.addoption(
75+
"--mypy-only-local-stub",
76+
action="store_true",
77+
help="mypy will ignore errors from site-packages",
78+
)

0 commit comments

Comments
 (0)