diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4245841f..a2500823 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,25 +9,25 @@ ci: skip: [] repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v3.0.1 hooks: - id: prettier - repo: https://github.com/asottile/blacken-docs - rev: 1.13.0 + rev: 1.15.0 hooks: - id: blacken-docs - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.5.0 hooks: - id: mypy additional_dependencies: [numpy, types-requests] exclude: tests/|docs/ - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.272 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.284 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/spatialdata_plot/pl/utils.py b/src/spatialdata_plot/pl/utils.py index 66aeb8f0..cf391c1d 100644 --- a/src/spatialdata_plot/pl/utils.py +++ b/src/spatialdata_plot/pl/utils.py @@ -797,8 +797,7 @@ def _map_color_seg( if seg_boundaries: seg_bound: ArrayLike = np.clip(seg_im - find_boundaries(seg)[:, :, None], 0, 1) - seg_bound = np.dstack((seg_bound, np.where(val_im > 0, 1, 0))) # add transparency here - return seg_bound + return np.dstack((seg_bound, np.where(val_im > 0, 1, 0))) # add transparency here return np.dstack((seg_im, np.where(val_im > 0, 1, 0)))