From 311eeac59205ce9f6bd1cdea84404272943d58c7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 14 Mar 2025 16:26:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/commands/hook_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index ba6491b4..bd936133 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -115,7 +115,7 @@ def _rev_exists(rev: str) -> bool: def _is_ancestor(ancestor: str, rev: str): return not subprocess.call( - ('git', 'merge-base', '--is-ancestor', ancestor, rev) + ('git', 'merge-base', '--is-ancestor', ancestor, rev), ) @@ -133,7 +133,7 @@ def _pre_push_ns( if local_sha == Z40: continue elif remote_sha != Z40 and _rev_exists(remote_sha) \ - and _is_ancestor(remote_sha, local_sha): + and _is_ancestor(remote_sha, local_sha): return _ns( 'pre-push', color, from_ref=remote_sha, to_ref=local_sha,