From 63684d941ba02f45b3b4a6972f777c37bc022e5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 11:07:26 +0000 Subject: [PATCH 1/2] Bump the pre-commit group with 3 updates Bumps the pre-commit group with 3 updates: [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.25.1 to 2.26.0 - [Release notes](https://github.com/tox-dev/pyproject-fmt/releases) - [Commits](https://github.com/tox-dev/pyproject-fmt/compare/v2.25.1...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](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.20 to 0.16.0 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.0) --- updated-dependencies: - dependency-name: https://github.com/tox-dev/pyproject-fmt dependency-version: 2.26.0 dependency-type: direct:production dependency-group: pre-commit - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.3 dependency-type: direct:production dependency-group: pre-commit - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.0 dependency-type: direct:production dependency-group: pre-commit ... Signed-off-by: dependabot[bot] --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ff503c..fbb54c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-yaml - id: detect-private-key - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.25.1" + rev: "v2.26.0" hooks: - id: pyproject-fmt - repo: https://github.com/citation-file-format/cffconvert @@ -17,7 +17,7 @@ repos: hooks: - id: validate-cff - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell exclude: | @@ -39,7 +39,7 @@ repos: - id: yamllint exclude: pre-commit-config.yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.20" + rev: "v0.16.0" hooks: - id: ruff-format - id: ruff-check From 43f10b20e84a594705f35b970361056ac307b03b Mon Sep 17 00:00:00 2001 From: Dave Bunten Date: Sat, 1 Aug 2026 12:44:38 -0600 Subject: [PATCH 2/2] Resolve Ruff checks after hook update --- pyproject.toml | 2 +- src/ome_arrow/tensor.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ecfc7b6..690ce0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,7 +119,7 @@ lint.select = [ "W", ] # ignore various rules for all -lint.per-file-ignores."*" = [ "ANN401", "C901", "PLC0415", "PLR0912", "PLR0913", "PLR0915", "PLR2004" ] +lint.per-file-ignores."*" = [ "ANN401", "C901", "PLC0415", "PLR0912", "PLR0913", "PLR0915", "PLR0917", "PLR2004" ] # Ignore `F401` (unused imports) for `__init__.py` file lint.per-file-ignores."__init__.py" = [ "F401" ] # ignore docstring presence checks for docs diff --git a/src/ome_arrow/tensor.py b/src/ome_arrow/tensor.py index 0272e69..f963eab 100644 --- a/src/ome_arrow/tensor.py +++ b/src/ome_arrow/tensor.py @@ -139,14 +139,14 @@ def with_layout(self, layout: str) -> "LazyTensorView": def select( self, *, - t: int | slice | Sequence[int] | None | _Unset = _UNSET, - z: int | slice | Sequence[int] | None | _Unset = _UNSET, - c: int | slice | Sequence[int] | None | _Unset = _UNSET, - roi: tuple[int, int, int, int] | None | _Unset = _UNSET, - roi3d: tuple[int, int, int, int, int, int] | None | _Unset = _UNSET, - roi_nd: tuple[int, ...] | None | _Unset = _UNSET, - roi_type: Literal["2d", "2d_timelapse", "3d", "4d"] | None | _Unset = _UNSET, - tile: tuple[int, int] | None | _Unset = _UNSET, + t: int | slice | Sequence[int] | _Unset | None = _UNSET, + z: int | slice | Sequence[int] | _Unset | None = _UNSET, + c: int | slice | Sequence[int] | _Unset | None = _UNSET, + roi: tuple[int, int, int, int] | _Unset | None = _UNSET, + roi3d: tuple[int, int, int, int, int, int] | _Unset | None = _UNSET, + roi_nd: tuple[int, ...] | _Unset | None = _UNSET, + roi_type: Literal["2d", "2d_timelapse", "3d", "4d"] | _Unset | None = _UNSET, + tile: tuple[int, int] | _Unset | None = _UNSET, ) -> "LazyTensorView": """Return a new lazy plan with updated index/ROI selections.""" updates = {}