Skip to content

Commit afcb8d0

Browse files
Updating CI/CD (#981)
* Modernised setup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added excludes * removed redundant action * fixed linting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added pre-commit exclude for .pyi * added arg * added arg * added arg * added arg * added arg * Removed .pyi files * added exports * removed unused typehints * Removed lintconfig from tox --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1d02182 commit afcb8d0

25 files changed

+144
-170
lines changed

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ changelog:
2525
- "release-security"
2626
- title: Other Changes
2727
labels:
28-
- "*"
28+
- "*"

.github/workflows/lint.yml

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

.github/workflows/release.yml

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.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737
- name: Set up Python ${{ matrix.python }}
38-
uses: actions/setup-python@v4
38+
uses: actions/setup-python@v5
3939
with:
4040
python-version: ${{ matrix.python }}
4141

.pre-commit-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
fail_fast: false
2+
default_language_version:
3+
python: python3
24
default_stages:
35
- pre-commit
46
- pre-push
5-
minimum_pre_commit_version: 2.9.3
7+
minimum_pre_commit_version: 2.16.0
68
repos:
9+
- repo: https://github.com/rbubley/mirrors-prettier
10+
rev: v3.5.1
11+
hooks:
12+
- id: prettier
713
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.9.10
14+
rev: v0.11.2
915
hooks:
1016
- id: ruff
1117
types_or: [python, pyi, jupyter]
@@ -16,6 +22,5 @@ repos:
1622
rev: v1.15.0
1723
hooks:
1824
- id: mypy
19-
additional_dependencies: [numpy, pandas, types-requests]
20-
exclude: .scripts/ci/download_data.py|squidpy/datasets/_(dataset|image).py # See https://github.com/
21-
25+
additional_dependencies: [numpy, types-requests]
26+
exclude: tests/|docs/

.readthedocs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: ubuntu-24.04
55
tools:
6-
python: "3.10"
6+
python: "3.12"
7+
commands:
8+
- asdf plugin add uv
9+
- asdf install uv latest
10+
- asdf global uv latest
11+
- uv venv
12+
- uv pip install .[docs,pre]
13+
- .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
714

815
sphinx:
916
builder: html
1017
configuration: docs/conf.py
1118
fail_on_warning: false
1219

13-
python:
14-
install:
15-
- method: pip
16-
path: .
17-
extra_requirements: [docs]
18-
1920
submodules:
2021
include: [docs/notebooks]
2122
recursive: true

docs/_static/css/custom.css

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
div.version {
6-
color: #FFD92C!important;
6+
color: #ffd92c !important;
77
}
88

99
.wy-nav-side {
@@ -15,7 +15,7 @@ div.version {
1515
}
1616

1717
.wy-side-nav-search input[type="text"] {
18-
border-radius: 6px!important;
18+
border-radius: 6px !important;
1919
}
2020

2121
.wy-nav-content {
@@ -51,41 +51,52 @@ div.version {
5151
}
5252

5353
a {
54-
color: #5B64B1;
54+
color: #5b64b1;
5555
}
5656

5757
.rst-content .viewcode-link {
5858
color: #7013e1d9;
5959
}
6060

6161
.highlight {
62-
background: #f1f5fb!important;
62+
background: #f1f5fb !important;
6363
}
6464

6565
.rst-content div[class^="highlight"] {
6666
border: 1px solid #e4eaf2;
6767
}
6868

6969
.wy-menu-vertical p.caption {
70-
color: #FFD92C;
70+
color: #ffd92c;
7171
}
7272

73-
div.output_subarea.output_html.rendered_html.output_result{
73+
div.output_subarea.output_html.rendered_html.output_result {
7474
overflow: auto;
7575
}
7676

7777
/* function/class top bar */
78-
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) > dt {
78+
html.writer-html5
79+
.rst-content
80+
dl[class]:not(.option-list):not(.field-list):not(.footnote):not(
81+
.glossary
82+
):not(.simple)
83+
> dt {
7984
color: #404040;
8085
border-top: solid 4px #7013e1d9;
81-
background: #FFD833A8;
86+
background: #ffd833a8;
8287
}
8388

8489
/* class params */
85-
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list) > dt {
90+
html.writer-html5
91+
.rst-content
92+
dl[class]:not(.option-list):not(.field-list):not(.footnote):not(
93+
.glossary
94+
):not(.simple)
95+
dl:not(.field-list)
96+
> dt {
8697
color: #404040;
8798
border-left: solid 4px #7013e1d9;
88-
background: #FFD8338F;
99+
background: #ffd8338f;
89100
}
90101

91102
/* the other elements, but more specific - leave them be */
@@ -104,9 +115,9 @@ code.docutils.literal.notranslate > span[class="pre"] {
104115
}
105116

106117
.rst-content .seealso {
107-
background: #fafae2!important;
118+
background: #fafae2 !important;
108119
}
109120

110121
.rst-content .seealso .admonition-title {
111-
background: #7013e1d9!important;
122+
background: #7013e1d9 !important;
112123
}

docs/_static/css/dataframe.css

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@
33
/* modified margin-left */
44

55
table.dataframe {
6-
border: none !important;
7-
border-collapse: collapse;
8-
border-spacing: 0;
9-
border-color: transparent;
10-
color: black;
11-
font-size: 12px;
12-
table-layout: fixed;
13-
margin-left: 0!important;
6+
border: none !important;
7+
border-collapse: collapse;
8+
border-spacing: 0;
9+
border-color: transparent;
10+
color: black;
11+
font-size: 12px;
12+
table-layout: fixed;
13+
margin-left: 0 !important;
1414
}
1515

1616
table.dataframe thead {
17-
border-bottom: 1px solid black;
18-
vertical-align: bottom;
17+
border-bottom: 1px solid black;
18+
vertical-align: bottom;
1919
}
2020

2121
table.dataframe tr,
2222
table.dataframe th,
2323
table.dataframe td {
24-
text-align: right;
25-
vertical-align: middle;
26-
padding: 0.5em 0.5em;
27-
line-height: normal;
28-
white-space: normal;
29-
max-width: none;
30-
border: none;
24+
text-align: right;
25+
vertical-align: middle;
26+
padding: 0.5em 0.5em;
27+
line-height: normal;
28+
white-space: normal;
29+
max-width: none;
30+
border: none;
3131
}
3232

3333
table.dataframe th {
34-
font-weight: bold;
34+
font-weight: bold;
3535
}
3636

3737
table.dataframe tbody tr:nth-child(odd) {
38-
background: #f5f5f5;
38+
background: #f5f5f5;
3939
}
4040

4141
table.dataframe tbody tr:hover {
42-
background: rgba(66, 165, 245, 0.2);
42+
background: rgba(66, 165, 245, 0.2);
4343
}

docs/_static/css/nbsphinx.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ div.nboutput.container div.prompt > div.highlight {
1010

1111
div.nbinput.container div.input_area div[class*="highlight"] > pre,
1212
div.nboutput.container div.output_area div[class*="highlight"] > pre {
13-
padding: 8px!important;
13+
padding: 8px !important;
1414
}
1515

1616
div.nboutput.container div.output_area > div[class^="highlight"] {
17-
background-color: #fafae2!important;
17+
background-color: #fafae2 !important;
1818
}
1919

2020
.rst-content .output_area img {

0 commit comments

Comments
 (0)