Skip to content

Commit 96dbd5f

Browse files
committed
Modernize setup
Signed-off-by: Lukas Heumos <lukas.heumos@posteo.net>
1 parent b314b75 commit 96dbd5f

File tree

15 files changed

+33
-181
lines changed

15 files changed

+33
-181
lines changed

.flake8

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Set up Python 3.12
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: "3.12"
1717
cache: pip

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
PYTHON: ${{ matrix.python }}
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: Set up Python ${{ matrix.python }}
31-
uses: actions/setup-python@v3
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python }}
3434

.pre-commit-config.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,19 @@ minimum_pre_commit_version: 2.16.0
88
ci:
99
skip: []
1010
repos:
11-
- repo: https://github.com/psf/black
12-
rev: 25.1.0
13-
hooks:
14-
- id: black
15-
- repo: https://github.com/pre-commit/mirrors-prettier
16-
rev: v4.0.0-alpha.8
11+
- repo: https://github.com/rbubley/mirrors-prettier
12+
rev: v3.5.1
1713
hooks:
1814
- id: prettier
19-
- repo: https://github.com/asottile/blacken-docs
20-
rev: 1.19.1
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.11.2
2117
hooks:
22-
- id: blacken-docs
18+
- id: ruff
19+
args: [--fix, --exit-non-zero-on-fix]
20+
- id: ruff-format
2321
- repo: https://github.com/pre-commit/mirrors-mypy
2422
rev: v1.15.0
2523
hooks:
2624
- id: mypy
2725
additional_dependencies: [numpy, types-requests]
2826
exclude: tests/|docs/
29-
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.11.0
31-
hooks:
32-
- id: ruff
33-
args: [--fix, --exit-non-zero-on-fix]

.readthedocs.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# https://docs.readthedocs.io/en/stable/config-file/v2.html
21
version: 2
32
build:
4-
os: ubuntu-20.04
3+
os: ubuntu-24.04
54
tools:
6-
python: "3.10"
5+
python: "3.12"
6+
commands:
7+
- asdf plugin add uv
8+
- asdf install uv latest
9+
- asdf global uv latest
10+
- uv venv
11+
- uv pip install .[docs,pre]
12+
- .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
713
sphinx:
814
configuration: docs/conf.py
915
fail_on_warning: false
10-
python:
11-
install:
12-
- method: pip
13-
path: .
14-
extra_requirements:
15-
- docs
16-
- pre

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
The `spatialdata-plot` package extends `spatialdata` with a declarative plotting API that enables to quickly visualize `spatialdata` objects and their respective elements (i.e. `images`, `labels`, `points` and `shapes`).
2020

21-
SpatialData’s plotting capabilities allow to quickly visualise all contained modalities. The user can specify which elements should be rendered (images, labels, points, shapes) and specify certain parameters for each layer, such as for example the intent to color shapes by a gene’s expression profile or which color to use for which image channel. When the plot is then eventually displayed, all transformations, alignments and coordinate systems are internally processed to form the final visualisation. In concordance with the general SpatialData philosophy, all modalities of the major spatial technologies are supported out of the box.
21+
SpatialData’s plotting capabilities allow to quickly visualise all contained modalities.
22+
The user can specify which elements should be rendered (images, labels, points, shapes) and specify certain parameters for each layer, such as for example the intent to color shapes by a gene’s expression profile or which color to use for which image channel.
23+
When the plot is then eventually displayed, all transformations, alignments and coordinate systems are internally processed to form the final visualisation.
24+
In concordance with the general SpatialData philosophy, all modalities of the major spatial technologies are supported out of the box.
2225

2326
<img src='https://raw.githubusercontent.com/scverse/spatialdata-plot/main/docs/spatialdata-plot.png'/>
2427

@@ -36,15 +39,13 @@ Python installed, we recommend installing [Mambaforge](https://github.com/conda-
3639

3740
There are several alternative options to install spatialdata-plot:
3841

39-
<!--
40-
1) Install the latest release of `spatialdata-plot` from `PyPI <https://pypi.org/project/spatialdata-plot/>`_:
42+
1. Install the latest release of `spatialdata-plot` from `PyPI <https://pypi.org/project/spatialdata-plot/>`\_:
4143

4244
```bash
4345
pip install spatialdata-plot
4446
```
45-
-->
4647

47-
1. Install the latest development version:
48+
2. Install the latest development version:
4849

4950
```bash
5051
pip install git+https://github.com/scverse/spatialdata-plot.git@main

docs/_static/.gitkeep

Whitespace-only changes.

docs/_templates/.gitkeep

Whitespace-only changes.

docs/api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
:maxdepth: 1
55
:caption: API
66
7-
preprocessing.rst
87
plotting.rst
98
109
```

docs/conf.py.rej

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)