Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down
48 changes: 24 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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" ]
Loading