File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 58
58
59
59
@contextmanager
60
60
def append_to_sys_path (path : PathLike ):
61
+ """
62
+ Append ``path`` to :py:obj:`sys.path` for the scope of the :keyword:`with` block.
63
+
64
+ :param path:
65
+ """
66
+
61
67
path = os .fspath (path )
62
68
63
69
if path in sys .path :
@@ -74,7 +80,7 @@ def append_to_sys_path(path: PathLike):
74
80
75
81
76
82
@hookimpl
77
- def tox_testenv_create (venv : VirtualEnv , action : Action ) -> None :
83
+ def tox_testenv_create (venv : VirtualEnv , action : Action ) -> None : # noqa: D103
78
84
envconfig : TestenvConfig = venv .envconfig
79
85
config : Config = envconfig .config
80
86
toxinidir = config .toxinidir
Original file line number Diff line number Diff line change 2
2
#
3
3
# hooks.py
4
4
"""
5
- Built in hooks for ``tox-recreate-hook`.
5
+ Built in hooks for ``tox-recreate-hook`` .
6
6
7
7
These are exposed via the ``builtin`` pseudo-module.
8
8
"""
You can’t perform that action at this time.
0 commit comments