Skip to content

Commit c6e4644

Browse files
[pre-commit.ci] pre-commit autoupdate (#585)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0a3f682 commit c6e4644

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ default_stages:
77
minimum_pre_commit_version: 2.16.0
88
repos:
99
- repo: https://github.com/biomejs/pre-commit
10-
rev: v2.4.9
10+
rev: v2.4.10
1111
hooks:
1212
- id: biome-format
1313
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft
1414
- repo: https://github.com/tox-dev/pyproject-fmt
15-
rev: v2.20.0
15+
rev: v2.21.0
1616
hooks:
1717
- id: pyproject-fmt
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.15.8
19+
rev: v0.15.9
2020
hooks:
2121
- id: ruff-check
2222
types_or: [python, pyi, jupyter]
@@ -36,7 +36,7 @@ repos:
3636
- id: check-merge-conflict
3737
args: [--assume-in-merge]
3838
- repo: https://github.com/pre-commit/mirrors-mypy
39-
rev: v1.19.1
39+
rev: v1.20.0
4040
hooks:
4141
- id: mypy
4242
additional_dependencies: [numpy, types-requests]

pyproject.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,30 @@ envs.hatch-test.scripts.cov-report = [ "coverage report", "coverage xml -o cover
8585
metadata.allow-direct-references = true
8686
version.source = "vcs"
8787

88+
[tool.pixi]
89+
workspace.channels = [ "conda-forge" ]
90+
workspace.platforms = [ "linux-64", "osx-arm64" ]
91+
dependencies.python = ">=3.11"
92+
pypi-dependencies.spatialdata-plot = { path = ".", editable = true }
93+
tasks.format = "ruff format ."
94+
tasks.kernel-install = 'python -m ipykernel install --user --name pixi-dev --display-name "sdata-plot (dev)"'
95+
tasks.lab = "jupyter lab"
96+
tasks.lint = "ruff check ."
97+
tasks.pre-commit-install = "pre-commit install"
98+
tasks.pre-commit-run = "pre-commit run --all-files"
99+
tasks.test = "pytest -v --color=yes --tb=short --durations=10"
100+
# for gh-actions
101+
feature.py311.dependencies.python = "3.11.*"
102+
feature.py313.dependencies.python = "3.13.*"
103+
# 3.13 lane
104+
environments.default = { features = [ "py313" ], solve-group = "py313" }
105+
# 3.11 lane (for gh-actions)
106+
environments.dev-py311 = { features = [ "dev", "test", "py311" ], solve-group = "py311" }
107+
environments.dev-py313 = { features = [ "dev", "test", "py313" ], solve-group = "py313" }
108+
environments.docs-py311 = { features = [ "doc", "py311" ], solve-group = "py311" }
109+
environments.docs-py313 = { features = [ "doc", "py313" ], solve-group = "py313" }
110+
environments.test-py313 = { features = [ "test", "py313" ], solve-group = "py313" }
111+
88112
[tool.ruff]
89113
line-length = 120
90114
exclude = [
@@ -178,27 +202,3 @@ skip = [
178202
"docs/references.md",
179203
"docs/notebooks/example.ipynb",
180204
]
181-
182-
[tool.pixi]
183-
dependencies.python = ">=3.11"
184-
# 3.11 lane (for gh-actions)
185-
environments.dev-py311 = { features = [ "dev", "test", "py311" ], solve-group = "py311" }
186-
environments.docs-py311 = { features = [ "doc", "py311" ], solve-group = "py311" }
187-
# 3.13 lane
188-
environments.default = { features = [ "py313" ], solve-group = "py313" }
189-
environments.dev-py313 = { features = [ "dev", "test", "py313" ], solve-group = "py313" }
190-
environments.docs-py313 = { features = [ "doc", "py313" ], solve-group = "py313" }
191-
environments.test-py313 = { features = [ "test", "py313" ], solve-group = "py313" }
192-
# for gh-actions
193-
feature.py311.dependencies.python = "3.11.*"
194-
feature.py313.dependencies.python = "3.13.*"
195-
pypi-dependencies.spatialdata-plot = { path = ".", editable = true }
196-
tasks.lab = "jupyter lab"
197-
tasks.kernel-install = 'python -m ipykernel install --user --name pixi-dev --display-name "sdata-plot (dev)"'
198-
tasks.test = "pytest -v --color=yes --tb=short --durations=10"
199-
tasks.lint = "ruff check ."
200-
tasks.format = "ruff format ."
201-
tasks.pre-commit-install = "pre-commit install"
202-
tasks.pre-commit-run = "pre-commit run --all-files"
203-
workspace.channels = [ "conda-forge" ]
204-
workspace.platforms = [ "osx-arm64", "linux-64" ]

0 commit comments

Comments
 (0)