[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-03-14 13:16:39 +00:00
parent 42fe699ef4
commit 779ca90243

View file

@ -77,7 +77,7 @@ def _install_hook_script(
# git repo we shouldn't try to mess with it
repo_dir = os.path.dirname(os.path.realpath(git_dir))
if os.path.commonpath(
[repo_dir, os.path.realpath(hook_path)]
[repo_dir, os.path.realpath(hook_path)],
) != repo_dir:
logger.error(
'Cowardly refusing to install hook script to a directory '