From 2b39c9075fa2b9fcaafa23e9d2bd48f15678235c Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 26 Dec 2025 15:30:10 -0700 Subject: [PATCH] maybe parens? --- 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 e5c26b90..c2af005c 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -111,10 +111,10 @@ def _ns( def _rev_exists(rev: str) -> bool: - return not not subprocess.call( + return not (not subprocess.call( ('git', 'cat-file', '-e', rev), stderr=subprocess.DEVNULL, - ) + )) def _pre_push_ns(