From 07ad09136345775799ba4867d2d58fcc48cb7072 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Dec 2025 22:30:25 +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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index c2af005c..85517ece 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -111,10 +111,12 @@ def _ns( def _rev_exists(rev: str) -> bool: - return not (not subprocess.call( - ('git', 'cat-file', '-e', rev), - stderr=subprocess.DEVNULL, - )) + return not ( + not subprocess.call( + ('git', 'cat-file', '-e', rev), + stderr=subprocess.DEVNULL, + ) + ) def _pre_push_ns(