From a530b2ba5edbcfe8ef008ee2e21c9e5c6a1d5a8d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:20:42 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/detection/utils.md | 1 - test/detection/test_utils.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/detection/utils.md b/docs/detection/utils.md index 7b221231..32d48c70 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -33,4 +33,3 @@ ## scale_boxes :::supervision.detection.utils.scale_boxes - diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 66c84ae6..83b71b85 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -10,7 +10,8 @@ from supervision.detection.utils import ( filter_polygons_by_area, move_boxes, non_max_suppression, - process_roboflow_result, scale_boxes, + process_roboflow_result, + scale_boxes, ) TEST_MASK = np.zeros((1, 1000, 1000), dtype=bool) @@ -537,7 +538,7 @@ def test_move_boxes( np.array([[-5, -5, 15, 15], [0, 0, 40, 40]]), DoesNotRaise(), ), # two boxes with factor equal to 2.0 - ] + ], ) def test_scale_boxes( xyxy: np.ndarray, @@ -550,7 +551,6 @@ def test_scale_boxes( assert np.array_equal(result, expected_result) - @pytest.mark.parametrize( "masks, expected_result, exception", [