Skip to content
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 26, 2025
commit 58cbea11564e2fa2a19c29c0d7cb2cbf62c87655
10 changes: 6 additions & 4 deletions pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ def _ns(


def _rev_exists(rev: str) -> bool:
return not bool(subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
))
return not bool(
subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
),
)


def _pre_push_ns(
Expand Down