Skip to content
Open
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
63 changes: 55 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,20 @@ authors = [
{name = "Giovanni Palla"},
{name = "Michal Klein"},
{name = "Hannah Spitzer"},
{name = "Tim Treis"},
{name = "Laurens Lehner"},
{name = "Selman Ozleyen"},
]
maintainers = [
{name = "Giovanni Palla", email = "[email protected]"},
{name = "Michal Klein", email = "[email protected]"},
{name = "Tim Treis", email = "[email protected]"}
{name = "Tim Treis", email = "[email protected]"},
{name = "Selman Ozleyen", email = "[email protected]"}
]

dependencies = [
"aiohttp>=3.8.1",
"anndata>=0.9",
"spatialdata>=0.2.5",
"spatialdata-plot",
"cycler>=0.11.0",
"dask-image>=0.5.0",
"dask[array]>=2021.02.0,<=2024.11.2",
Expand All @@ -61,7 +65,7 @@ dependencies = [
"pandas>=2.1.0",
"Pillow>=8.0.0",
"scanpy>=1.9.3",
"scikit-image>=0.20",
"scikit-image>=0.25",
# due to https://github.com/scikit-image/scikit-image/issues/6850 breaks rescale ufunc
"scikit-learn>=0.24.0",
"statsmodels>=0.12.0",
Expand All @@ -70,21 +74,27 @@ dependencies = [
"tqdm>=4.50.2",
"validators>=0.18.2",
"xarray>=2024.10.0",
"zarr>=2.6.1,<3.0.0",
"spatialdata>=0.2.5",
"zarr>=2.6.1,<3.0.0", "imagecodecs>=2025.8.2,<2026",
]

[project.optional-dependencies]
dev = [
"pre-commit>=3.0.0",
"hatch>=1.9.0",
"jupyterlab",
"notebook",
"ipykernel",
"ipywidgets",
"jupytext",
"pytest",
"pytest-cov",
"ruff",
]
test = [
"scanpy[leiden]",
"pytest>=7",
"pytest-xdist>=3",
"pytest-mock>=3.5.0",
# Just for VS Code
"pytest-cov>=4",
"coverage[toml]>=7",
"pytest-timeout>=2.1.0",
Expand Down Expand Up @@ -281,4 +291,41 @@ exclude_lines = [
show_missing = true
precision = 2
skip_empty = true
sort = "Miss"
sort = "Miss"

[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64"]

[tool.pixi.dependencies]
python = ">=3.11"

[tool.pixi.pypi-dependencies]
squidpy = { path = ".", editable = true }

# for gh-actions
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"

[tool.pixi.feature.py313.dependencies]
python = "3.13.*"

[tool.pixi.environments]
# 3.11 lane (for gh-actions)
dev-py311 = { features = ["dev", "test", "py311"], solve-group = "py311" }
docs-py311 = { features = ["docs", "py311"], solve-group = "py311" }

# 3.12 lane
default = { features = ["py313"], solve-group = "py313" }
dev-py313 = { features = ["dev", "test", "py313"], solve-group = "py313" }
docs-py313 = { features = ["docs", "py313"], solve-group = "py313" }
test-py313 = { features = ["test", "py313"], solve-group = "py313" }

[tool.pixi.tasks]
lab = "jupyter lab"
kernel-install = "python -m ipykernel install --user --name pixi-dev --display-name \"sdata-plot (dev)\""
test = "pytest -v --color=yes --tb=short --durations=10"
lint = "ruff check ."
format = "ruff format ."
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run --all-files"
2 changes: 1 addition & 1 deletion src/squidpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from importlib import metadata
from importlib.metadata import PackageMetadata

from squidpy import datasets, gr, im, pl, read, tl
from squidpy import datasets, exp, gr, im, pl, read, tl

try:
md: PackageMetadata = metadata.metadata(__name__)
Expand Down
13 changes: 13 additions & 0 deletions src/squidpy/exp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Experimental module for Squidpy.

This module contains experimental features that are still under development.
These features may change or be removed in future releases.
"""

from __future__ import annotations

from . import im, pl
from .im._qc import qc_sharpness
from .pl._qc import qc_sharpness_metrics

__all__ = ["qc_sharpness", "qc_sharpness_metrics"]
5 changes: 5 additions & 0 deletions src/squidpy/exp/im/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from __future__ import annotations

from ._qc import detect_tissue, qc_sharpness

__all__ = ["qc_sharpness", "detect_tissue"]
Loading
Loading