Skip to content

Commit

Permalink
Ease testing of local stubs by extending "MYPYPATH" (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Sep 20, 2023
1 parent b499462 commit 0e7104e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytest_mypy_plugins/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,7 @@ def _collect_mypy_path(self, rootdir: Optional[Path]) -> None:
if mypy_path_key:
mypy_path_parts.append(maybe_to_abspath(mypy_path_key, rootdir))
mypy_path_parts.append(mypy_path_key)
if rootdir:
mypy_path_parts.append(str(rootdir))

self.environment_variables["MYPYPATH"] = ":".join(mypy_path_parts)

0 comments on commit 0e7104e

Please sign in to comment.