Skip to content

Commit 81070f3

Browse files
[pre-commit.ci] pre-commit autoupdate (#106)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tim Treis <[email protected]>
1 parent 538d081 commit 81070f3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ ci:
99
skip: []
1010
repos:
1111
- repo: https://github.com/psf/black
12-
rev: 23.3.0
12+
rev: 23.7.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pre-commit/mirrors-prettier
16-
rev: v3.0.0-alpha.9-for-vscode
16+
rev: v3.0.1
1717
hooks:
1818
- id: prettier
1919
- repo: https://github.com/asottile/blacken-docs
20-
rev: 1.13.0
20+
rev: 1.15.0
2121
hooks:
2222
- id: blacken-docs
2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.3.0
24+
rev: v1.5.0
2525
hooks:
2626
- id: mypy
2727
additional_dependencies: [numpy, types-requests]
2828
exclude: tests/|docs/
29-
- repo: https://github.com/charliermarsh/ruff-pre-commit
30-
rev: v0.0.272
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.0.284
3131
hooks:
3232
- id: ruff
3333
args: [--fix, --exit-non-zero-on-fix]

src/spatialdata_plot/pl/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ def _map_color_seg(
797797

798798
if seg_boundaries:
799799
seg_bound: ArrayLike = np.clip(seg_im - find_boundaries(seg)[:, :, None], 0, 1)
800-
seg_bound = np.dstack((seg_bound, np.where(val_im > 0, 1, 0))) # add transparency here
801-
return seg_bound
800+
return np.dstack((seg_bound, np.where(val_im > 0, 1, 0))) # add transparency here
802801

803802
return np.dstack((seg_im, np.where(val_im > 0, 1, 0)))
804803

0 commit comments

Comments
 (0)