[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-08-12 14:05:51 +00:00
parent 4f17371f44
commit e4a1e8712f

View file

@ -122,7 +122,8 @@ def locate_relative_path(name, env=None, check_executable=False, use_pathext=Fal
filepath = p.parent / possible_name
try:
if not is_file(filepath) or (
check_executable and not is_executable(filepath, check_file_exist=False)
check_executable
and not is_executable(filepath, check_file_exist=False)
):
continue
return str(p.absolute())