File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,8 @@ def _exclude_dir_path(
209
209
if excluded_dir_path == Path (visited_directory ) / subdir
210
210
]
211
211
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
214
214
'copied into itself recursively...' ,
215
215
file = _standard_error_stream ,
216
216
)
@@ -222,14 +222,14 @@ def _in_temporary_directory(src_dir: Path) -> t.Iterator[None]:
222
222
with TemporaryDirectory (prefix = '.tmp-ansible-pylibssh-pep517-' ) as tmp_dir :
223
223
tmp_dir_path = Path (tmp_dir )
224
224
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 )
226
226
227
227
with chdir_cm (tmp_dir ):
228
228
tmp_src_dir = tmp_dir_path / 'src'
229
229
copytree (
230
230
src_dir ,
231
231
tmp_src_dir ,
232
- ignore = _exclude_tmpdir_parent ,
232
+ ignore = exclude_tmpdir_parent ,
233
233
symlinks = True ,
234
234
)
235
235
os .chdir (tmp_src_dir )
You can’t perform that action at this time.
0 commit comments