Skip to content

Commit 257c23e

Browse files
committed
Linting.
1 parent 74c8f32 commit 257c23e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tox_recreate_hook/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858

5959
@contextmanager
6060
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+
6167
path = os.fspath(path)
6268

6369
if path in sys.path:
@@ -74,7 +80,7 @@ def append_to_sys_path(path: PathLike):
7480

7581

7682
@hookimpl
77-
def tox_testenv_create(venv: VirtualEnv, action: Action) -> None:
83+
def tox_testenv_create(venv: VirtualEnv, action: Action) -> None: # noqa: D103
7884
envconfig: TestenvConfig = venv.envconfig
7985
config: Config = envconfig.config
8086
toxinidir = config.toxinidir

tox_recreate_hook/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# hooks.py
44
"""
5-
Built in hooks for ``tox-recreate-hook`.
5+
Built in hooks for ``tox-recreate-hook``.
66
77
These are exposed via the ``builtin`` pseudo-module.
88
"""

0 commit comments

Comments
 (0)