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] 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) 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