Skip to content

Commit ab355cb

Browse files
committed
🧪 Address WPS linting violations
1 parent 378f0a8 commit ab355cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packaging/pep517_backend/_backend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def _exclude_dir_path(
209209
if excluded_dir_path == Path(visited_directory) / subdir
210210
]
211211
if visited_directory_subdirs_to_ignore:
212-
print(
213-
f'Preventing `{excluded_dir_path !s}` from being '
212+
print( # noqa: WPS421
213+
f'Preventing `{excluded_dir_path !s}` from being ' # noqa: WPS305
214214
'copied into itself recursively...',
215215
file=_standard_error_stream,
216216
)
@@ -222,14 +222,14 @@ def _in_temporary_directory(src_dir: Path) -> t.Iterator[None]:
222222
with TemporaryDirectory(prefix='.tmp-ansible-pylibssh-pep517-') as tmp_dir:
223223
tmp_dir_path = Path(tmp_dir)
224224
root_tmp_dir_path = tmp_dir_path.parent
225-
_exclude_tmpdir_parent = partial(_exclude_dir_path, root_tmp_dir_path)
225+
exclude_tmpdir_parent = partial(_exclude_dir_path, root_tmp_dir_path)
226226

227227
with chdir_cm(tmp_dir):
228228
tmp_src_dir = tmp_dir_path / 'src'
229229
copytree(
230230
src_dir,
231231
tmp_src_dir,
232-
ignore=_exclude_tmpdir_parent,
232+
ignore=exclude_tmpdir_parent,
233233
symlinks=True,
234234
)
235235
os.chdir(tmp_src_dir)

0 commit comments

Comments
 (0)