From 04c78ed693ee3f16980c9bfe3bf22221cc92e021 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:55:56 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/biomejs/pre-commit: v2.4.9 → v2.4.10](https://github.com/biomejs/pre-commit/compare/v2.4.9...v2.4.10) - [github.com/tox-dev/pyproject-fmt: v2.20.0 → v2.21.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.20.0...v2.21.0) - [github.com/astral-sh/ruff-pre-commit: v0.15.8 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.8...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63edd8fa..75dab4b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,16 +7,16 @@ default_stages: minimum_pre_commit_version: 2.16.0 repos: - repo: https://github.com/biomejs/pre-commit - rev: v2.4.9 + rev: v2.4.10 hooks: - id: biome-format exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.20.0 + rev: v2.21.0 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.8 + rev: v0.15.9 hooks: - id: ruff-check types_or: [python, pyi, jupyter] @@ -36,7 +36,7 @@ repos: - id: check-merge-conflict args: [--assume-in-merge] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy additional_dependencies: [numpy, types-requests] From 4ad718b3cae8161898d3d8faaba4846a5a6400be Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:19:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 773f63aa..bf21ab7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,30 @@ envs.hatch-test.scripts.cov-report = [ "coverage report", "coverage xml -o cover metadata.allow-direct-references = true version.source = "vcs" +[tool.pixi] +workspace.channels = [ "conda-forge" ] +workspace.platforms = [ "linux-64", "osx-arm64" ] +dependencies.python = ">=3.11" +pypi-dependencies.spatialdata-plot = { path = ".", editable = true } +tasks.format = "ruff format ." +tasks.kernel-install = 'python -m ipykernel install --user --name pixi-dev --display-name "sdata-plot (dev)"' +tasks.lab = "jupyter lab" +tasks.lint = "ruff check ." +tasks.pre-commit-install = "pre-commit install" +tasks.pre-commit-run = "pre-commit run --all-files" +tasks.test = "pytest -v --color=yes --tb=short --durations=10" +# for gh-actions +feature.py311.dependencies.python = "3.11.*" +feature.py313.dependencies.python = "3.13.*" +# 3.13 lane +environments.default = { features = [ "py313" ], solve-group = "py313" } +# 3.11 lane (for gh-actions) +environments.dev-py311 = { features = [ "dev", "test", "py311" ], solve-group = "py311" } +environments.dev-py313 = { features = [ "dev", "test", "py313" ], solve-group = "py313" } +environments.docs-py311 = { features = [ "doc", "py311" ], solve-group = "py311" } +environments.docs-py313 = { features = [ "doc", "py313" ], solve-group = "py313" } +environments.test-py313 = { features = [ "test", "py313" ], solve-group = "py313" } + [tool.ruff] line-length = 120 exclude = [ @@ -178,27 +202,3 @@ skip = [ "docs/references.md", "docs/notebooks/example.ipynb", ] - -[tool.pixi] -dependencies.python = ">=3.11" -# 3.11 lane (for gh-actions) -environments.dev-py311 = { features = [ "dev", "test", "py311" ], solve-group = "py311" } -environments.docs-py311 = { features = [ "doc", "py311" ], solve-group = "py311" } -# 3.13 lane -environments.default = { features = [ "py313" ], solve-group = "py313" } -environments.dev-py313 = { features = [ "dev", "test", "py313" ], solve-group = "py313" } -environments.docs-py313 = { features = [ "doc", "py313" ], solve-group = "py313" } -environments.test-py313 = { features = [ "test", "py313" ], solve-group = "py313" } -# for gh-actions -feature.py311.dependencies.python = "3.11.*" -feature.py313.dependencies.python = "3.13.*" -pypi-dependencies.spatialdata-plot = { path = ".", editable = true } -tasks.lab = "jupyter lab" -tasks.kernel-install = 'python -m ipykernel install --user --name pixi-dev --display-name "sdata-plot (dev)"' -tasks.test = "pytest -v --color=yes --tb=short --durations=10" -tasks.lint = "ruff check ." -tasks.format = "ruff format ." -tasks.pre-commit-install = "pre-commit install" -tasks.pre-commit-run = "pre-commit run --all-files" -workspace.channels = [ "conda-forge" ] -workspace.platforms = [ "osx-arm64", "linux-64" ]