From 1fcbc7a6f19c38a64dc4068fe0ed14039c01075a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:30:40 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.12.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.10...v0.12.7) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.17.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.17.1) - [github.com/adrienverge/yamllint.git: v1.35.1 → v1.37.1](https://github.com/adrienverge/yamllint.git/compare/v1.35.1...v1.37.1) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dce7f3eb..32b6f98d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,29 +22,29 @@ repos: - --autofix - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.10 + rev: v0.12.7 hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.17.1 hooks: - id: mypy args: [--config-file=mypy.ini] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint args: [--config-data=relaxed] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell From fc7ed393c02ceb06119231371a39f2fda6d1b5df Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:31:01 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ome_zarr/axes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ome_zarr/axes.py b/ome_zarr/axes.py index ac55d896..360fe65f 100644 --- a/ome_zarr/axes.py +++ b/ome_zarr/axes.py @@ -1,5 +1,4 @@ -"""Axes class for validating and transforming axes -""" +"""Axes class for validating and transforming axes""" from typing import Any From 2939412977cf0104e93caa95912b1743936b5f56 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Thu, 7 Aug 2025 10:25:48 +0200 Subject: [PATCH 3/3] Fix mypy error ``` ome_zarr/csv.py:79: error: Invalid index type "int | None" for "list[str]"; expected type "SupportsIndex" [index] Found 1 error in 1 file (checked 26 source files) ``` --- ome_zarr/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ome_zarr/csv.py b/ome_zarr/csv.py index 6cea603d..bea23095 100644 --- a/ome_zarr/csv.py +++ b/ome_zarr/csv.py @@ -59,7 +59,7 @@ def csv_to_zarr( cols_types_by_name[col_name_type] = "s" csv_columns = None - id_column = None + id_column: int props_by_id: dict[str | int, dict] = {}