Skip to content

Commit 3a9656f

Browse files
Bump the pre-commit-hooks group across 1 directory with 3 updates (#40)
* Bump the pre-commit-hooks group across 1 directory with 3 updates Bumps the pre-commit-hooks group with 3 updates in the / directory: [https://github.com/tox-dev/pyproject-fmt](https://github.com/tox-dev/pyproject-fmt), [https://github.com/codespell-project/codespell](https://github.com/codespell-project/codespell) and [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit). Updates `https://github.com/tox-dev/pyproject-fmt` from v2.23.0 to 2.25.3 - [Release notes](https://github.com/tox-dev/pyproject-fmt/releases) - [Commits](tox-dev/pyproject-fmt@v2.23.0...v2.25.3) Updates `https://github.com/codespell-project/codespell` from v2.4.2 to 2.4.3 - [Release notes](https://github.com/codespell-project/codespell/releases) - [Commits](codespell-project/codespell@v2.4.2...v2.4.3) Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.16 to 0.16.0 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](astral-sh/ruff-pre-commit@v0.15.16...v0.16.0) --- updated-dependencies: - dependency-name: https://github.com/tox-dev/pyproject-fmt dependency-version: 2.25.3 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.3 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.0 dependency-type: direct:production dependency-group: pre-commit-hooks ... Signed-off-by: dependabot[bot] <support@github.com> * Bump the pre-commit-hooks group across 1 directory with 3 updates Bumps the pre-commit-hooks group with 3 updates in the / directory: [https://github.com/tox-dev/pyproject-fmt](https://github.com/tox-dev/pyproject-fmt), [https://github.com/codespell-project/codespell](https://github.com/codespell-project/codespell) and [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit). Updates `https://github.com/tox-dev/pyproject-fmt` from v2.23.0 to 2.26.0 - [Release notes](https://github.com/tox-dev/pyproject-fmt/releases) - [Commits](tox-dev/pyproject-fmt@v2.23.0...v2.26.0) Updates `https://github.com/codespell-project/codespell` from v2.4.2 to 2.4.3 - [Release notes](https://github.com/codespell-project/codespell/releases) - [Commits](codespell-project/codespell@v2.4.2...v2.4.3) Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.16 to 0.16.0 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](astral-sh/ruff-pre-commit@v0.15.16...v0.16.0) --- updated-dependencies: - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.0 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.3 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/tox-dev/pyproject-fmt dependency-version: 2.25.3 dependency-type: direct:production dependency-group: pre-commit-hooks ... Signed-off-by: dependabot[bot] <support@github.com> * fix positional argument enforcement --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregory Way <gregory.way@gmail.com>
1 parent 0287827 commit 3a9656f

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ repos:
99
- id: check-yaml
1010
- id: detect-private-key
1111
- repo: https://github.com/tox-dev/pyproject-fmt
12-
rev: "v2.23.0"
12+
rev: "v2.26.0"
1313
hooks:
1414
- id: pyproject-fmt
1515
- repo: https://github.com/citation-file-format/cffconvert
1616
rev: b6045d78aac9e02b039703b030588d54d53262ac
1717
hooks:
1818
- id: validate-cff
1919
- repo: https://github.com/codespell-project/codespell
20-
rev: v2.4.2
20+
rev: v2.4.3
2121
hooks:
2222
- id: codespell
2323
exclude: |
@@ -39,7 +39,7 @@ repos:
3939
- id: yamllint
4040
exclude: pre-commit-config.yaml
4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: "v0.15.16"
42+
rev: "v0.16.0"
4343
hooks:
4444
- id: ruff-format
4545
- id: ruff-check

src/zedprofiler/IO/loading_classes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class ImageSetLoader:
138138

139139
def __init__( # noqa: PLR0913
140140
self,
141+
*,
141142
anisotropy_spacing: tuple[float, float, float],
142143
channel_mapping: dict[str, str],
143144
image_set_path: pathlib.Path | None,

src/zedprofiler/featurization/colocalization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def bisection_costes_threshold_calculation(
262262

263263

264264
def prepare_two_images_for_colocalization( # noqa: PLR0913
265+
*,
265266
label_object1: numpy.ndarray,
266267
label_object2: numpy.ndarray,
267268
image_object1: numpy.ndarray,

src/zedprofiler/featurization/granularity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def _upsample_3d(
116116

117117
def compute_granularity( # noqa: C901, PLR0912, PLR0913, PLR0915
118118
object_loader: ObjectLoader,
119+
*,
119120
radius: int = 10,
120121
granular_spectrum_length: int = 16,
121122
subsample_size: float = 0.25,

tests/featurization/test_colocalization.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ def test_prepare_two_images_for_colocalization_crops() -> None:
9595
im2[3, 3, 3] = expected_peak_im2
9696

9797
cropped1, cropped2 = prepare_two_images_for_colocalization(
98-
label,
99-
label,
100-
im1,
101-
im2,
102-
1,
103-
1,
98+
label_object1=label,
99+
label_object2=label,
100+
image_object1=im1,
101+
image_object2=im2,
102+
object_id1=1,
103+
object_id2=1,
104104
)
105105

106106
assert isinstance(cropped1, np.ndarray) and isinstance(cropped2, np.ndarray)

0 commit comments

Comments
 (0)