From 168f4536e156007646ef33234ff2e964a38faf9f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:53:33 +0000 Subject: [PATCH 1/3] =?UTF-8?q?chore(pre=5Fcommit):=20=E2=AC=86=20pre=5Fco?= =?UTF-8?q?mmit=20autoupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/bandit: 1.8.0 → 1.8.2](https://github.com/PyCQA/bandit/compare/1.8.0...1.8.2) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecc376c..4f606dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,14 +22,14 @@ repos: - id: mixed-line-ending - repo: https://github.com/PyCQA/bandit - rev: '1.8.0' + rev: '1.8.2' hooks: - id: bandit args: ["-c", "pyproject.toml"] additional_dependencies: ["bandit[toml]"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 86e081b964337cbee47782a445799fbe17d9b71b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:53:47 +0000 Subject: [PATCH 2/3] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20?= =?UTF-8?q?format=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maestro/postprocessing/mask.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maestro/postprocessing/mask.py b/maestro/postprocessing/mask.py index b19f593..b69bc82 100644 --- a/maestro/postprocessing/mask.py +++ b/maestro/postprocessing/mask.py @@ -34,8 +34,7 @@ def compute_mask_iou_vectorized(masks: np.ndarray) -> np.ndarray: """ if np.any(masks.sum(axis=(1, 2)) == 0): raise ValueError( - "One or more masks are empty. Please filter out empty masks before using " - "`compute_iou_vectorized` function." + "One or more masks are empty. Please filter out empty masks before using `compute_iou_vectorized` function." ) masks_bool = masks.astype(bool) From e0d0c88963f747df5b00f3d514c763c9052c3de2 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 27 Jan 2025 21:03:19 +0300 Subject: [PATCH 3/3] chore: delete removed B410 bandit rule --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a1255ee..23d172e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,7 @@ exclude = ["cookbooks", "docs", "docs.*", "test", "test.*", "mkdocs", "mkdocs.*" ### Linting and Formatting [tool.bandit] target = ["test", "maestro"] -tests = ["B201", "B301", "B318", "B314", "B303", "B413", "B412", "B410"] +tests = ["B201", "B301", "B318", "B314", "B303", "B413", "B412"] [tool.autoflake] check = true