From c43a95bfe2c72ac66fb329134f9e357acbb79ad9 Mon Sep 17 00:00:00 2001 From: patrykorwat Date: Tue, 18 Aug 2026 10:37:37 +0000 Subject: [PATCH] style(axelera): collapse single-line raise per ruff format Matches the pinned ruff 0.15.20 used by upstream CI (docker/main/requirements-dev.txt). --- frigate/detectors/plugins/axelera.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frigate/detectors/plugins/axelera.py b/frigate/detectors/plugins/axelera.py index e1ce7407cd..8fbec6b6b3 100644 --- a/frigate/detectors/plugins/axelera.py +++ b/frigate/detectors/plugins/axelera.py @@ -243,9 +243,7 @@ class _AxeleraInference: if frame.ndim == 4: # Frigate feeds a batched NHWC frame (1, H, W, C); drop the batch dim if frame.shape[0] != 1: - raise ValueError( - f"Unexpected batch dimension in frame: {frame.shape}" - ) + raise ValueError(f"Unexpected batch dimension in frame: {frame.shape}") frame = frame[0] frame = np.ascontiguousarray(frame) self._frame_q.put(frame)