scverse-doc 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scverse_doc-0.0.1/.codecov.yaml +17 -0
- scverse_doc-0.0.1/.cruft.json +44 -0
- scverse_doc-0.0.1/.editorconfig +15 -0
- scverse_doc-0.0.1/.github/ISSUE_TEMPLATE/bug_report.yml +93 -0
- scverse_doc-0.0.1/.github/ISSUE_TEMPLATE/config.yml +5 -0
- scverse_doc-0.0.1/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
- scverse_doc-0.0.1/.github/dependabot.yml +21 -0
- scverse_doc-0.0.1/.github/workflows/autofix.yaml +29 -0
- scverse_doc-0.0.1/.github/workflows/build.yaml +30 -0
- scverse_doc-0.0.1/.github/workflows/release.yaml +33 -0
- scverse_doc-0.0.1/.github/workflows/sync.yaml +30 -0
- scverse_doc-0.0.1/.github/workflows/test.yaml +109 -0
- scverse_doc-0.0.1/.gitignore +29 -0
- scverse_doc-0.0.1/.pre-commit-config.yaml +63 -0
- scverse_doc-0.0.1/.readthedocs.yaml +16 -0
- scverse_doc-0.0.1/.vscode/extensions.json +18 -0
- scverse_doc-0.0.1/.vscode/launch.json +33 -0
- scverse_doc-0.0.1/.vscode/settings.json +19 -0
- scverse_doc-0.0.1/CHANGELOG.md +21 -0
- scverse_doc-0.0.1/LICENSE +373 -0
- scverse_doc-0.0.1/PKG-INFO +119 -0
- scverse_doc-0.0.1/README.md +91 -0
- scverse_doc-0.0.1/biome.jsonc +37 -0
- scverse_doc-0.0.1/pyproject.toml +193 -0
- scverse_doc-0.0.1/scripts/sync_brand_tokens.py +150 -0
- scverse_doc-0.0.1/src/scverse_doc/__init__.py +57 -0
- scverse_doc-0.0.1/src/scverse_doc/_accents.json +12 -0
- scverse_doc-0.0.1/src/scverse_doc/_color.py +145 -0
- scverse_doc-0.0.1/src/scverse_doc/autodoc/__init__.py +70 -0
- scverse_doc-0.0.1/src/scverse_doc/autodoc/templates/autosummary/class.rst +54 -0
- scverse_doc-0.0.1/src/scverse_doc/autodoc/templates/autosummary/module.rst +62 -0
- scverse_doc-0.0.1/src/scverse_doc/config.py +90 -0
- scverse_doc-0.0.1/src/scverse_doc/napoleon.py +54 -0
- scverse_doc-0.0.1/src/scverse_doc/py.typed +0 -0
- scverse_doc-0.0.1/src/scverse_doc/registry.py +249 -0
- scverse_doc-0.0.1/src/scverse_doc/source.py +243 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/__init__.py +121 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/scverse-ecosystem.html +54 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/scverse-footer.html +18 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/scverse-sidebar-nav.html +17 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/sidebar-versions.html +1 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/toggle-primary-sidebar.html +8 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/components/toggle-secondary-sidebar.html +12 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/layout.html +5 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/static/_tokens.css +42 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/static/scripts/readthedocs-integration.js +66 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/static/scverse-fa.svg +4 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/static/styles/scverse.css +346 -0
- scverse_doc-0.0.1/src/scverse_doc/theme/scverse/theme.toml +30 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Based on pydata/xarray
|
|
2
|
+
codecov:
|
|
3
|
+
require_ci_to_pass: no
|
|
4
|
+
|
|
5
|
+
coverage:
|
|
6
|
+
status:
|
|
7
|
+
project:
|
|
8
|
+
default:
|
|
9
|
+
# Require 1% coverage, i.e., always succeed
|
|
10
|
+
target: 1
|
|
11
|
+
patch: false
|
|
12
|
+
changes: false
|
|
13
|
+
|
|
14
|
+
comment:
|
|
15
|
+
layout: diff, flags, files
|
|
16
|
+
behavior: once
|
|
17
|
+
require_base: no
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/scverse/cookiecutter-scverse",
|
|
3
|
+
"commit": "9345e6250d37a482c0bed3ecfd2ffb082f123bc3",
|
|
4
|
+
"checkout": null,
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"project_name": "scverse-doc",
|
|
8
|
+
"package_name": "scverse_doc",
|
|
9
|
+
"project_description": "Scverse documentation theme and utilities.",
|
|
10
|
+
"author_full_name": "Lukas Heumos",
|
|
11
|
+
"author_email": "lukas.heumos@scverse.org",
|
|
12
|
+
"github_user": "scverse",
|
|
13
|
+
"github_repo": "scverse-doc",
|
|
14
|
+
"license": "Mozilla Public License Version 2.0",
|
|
15
|
+
"ide_integration": true,
|
|
16
|
+
"issue_categorization": "issue types",
|
|
17
|
+
"_copy_without_render": [
|
|
18
|
+
".github/workflows/build.yaml",
|
|
19
|
+
".github/workflows/test.yaml",
|
|
20
|
+
"docs/_templates/autosummary/**.rst"
|
|
21
|
+
],
|
|
22
|
+
"_exclude_on_template_update": [
|
|
23
|
+
"CHANGELOG.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md",
|
|
26
|
+
"docs/api.md",
|
|
27
|
+
"docs/index.md",
|
|
28
|
+
"docs/notebooks/example.ipynb",
|
|
29
|
+
"docs/references.bib",
|
|
30
|
+
"docs/references.md",
|
|
31
|
+
"src/**",
|
|
32
|
+
"tests/**"
|
|
33
|
+
],
|
|
34
|
+
"_render_devdocs": false,
|
|
35
|
+
"_jinja2_env_vars": {
|
|
36
|
+
"lstrip_blocks": true,
|
|
37
|
+
"trim_blocks": true
|
|
38
|
+
},
|
|
39
|
+
"_template": "https://github.com/scverse/cookiecutter-scverse",
|
|
40
|
+
"_commit": "9345e6250d37a482c0bed3ecfd2ffb082f123bc3"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"directory": null
|
|
44
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
|
|
11
|
+
[{*.{yml,yaml,toml},.cruft.json}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report something that is broken or incorrect
|
|
3
|
+
type: Bug
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
|
|
9
|
+
detailing how to provide the necessary information for us to reproduce your bug. In brief:
|
|
10
|
+
* Please provide exact steps how to reproduce the bug in a clean Python environment.
|
|
11
|
+
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
|
|
12
|
+
* Replicate problems on public datasets or share data subsets when full sharing isn't possible.
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: report
|
|
16
|
+
attributes:
|
|
17
|
+
label: Report
|
|
18
|
+
description: A clear and concise description of what the bug is.
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: versions
|
|
24
|
+
attributes:
|
|
25
|
+
label: Versions
|
|
26
|
+
description: |
|
|
27
|
+
Which version of packages.
|
|
28
|
+
|
|
29
|
+
Please install `session-info2`, run the following command in a notebook,
|
|
30
|
+
click the “Copy as Markdown” button, then paste the results into the text box below.
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
In[1]: import session_info2; session_info2.session_info(dependencies=True)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Alternatively, run this in a console:
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
>>> import session_info2; print(session_info2.session_info(dependencies=True)._repr_mimebundle_()["text/markdown"])
|
|
40
|
+
```
|
|
41
|
+
render: python
|
|
42
|
+
placeholder: |
|
|
43
|
+
anndata 0.11.3
|
|
44
|
+
---- ----
|
|
45
|
+
charset-normalizer 3.4.1
|
|
46
|
+
coverage 7.7.0
|
|
47
|
+
psutil 7.0.0
|
|
48
|
+
dask 2024.7.1
|
|
49
|
+
jaraco.context 5.3.0
|
|
50
|
+
numcodecs 0.15.1
|
|
51
|
+
jaraco.functools 4.0.1
|
|
52
|
+
Jinja2 3.1.6
|
|
53
|
+
sphinxcontrib-jsmath 1.0.1
|
|
54
|
+
sphinxcontrib-htmlhelp 2.1.0
|
|
55
|
+
toolz 1.0.0
|
|
56
|
+
session-info2 0.1.2
|
|
57
|
+
PyYAML 6.0.2
|
|
58
|
+
llvmlite 0.44.0
|
|
59
|
+
scipy 1.15.2
|
|
60
|
+
pandas 2.2.3
|
|
61
|
+
sphinxcontrib-devhelp 2.0.0
|
|
62
|
+
h5py 3.13.0
|
|
63
|
+
tblib 3.0.0
|
|
64
|
+
setuptools-scm 8.2.0
|
|
65
|
+
more-itertools 10.3.0
|
|
66
|
+
msgpack 1.1.0
|
|
67
|
+
sparse 0.15.5
|
|
68
|
+
wrapt 1.17.2
|
|
69
|
+
jaraco.collections 5.1.0
|
|
70
|
+
numba 0.61.0
|
|
71
|
+
pyarrow 19.0.1
|
|
72
|
+
pytz 2025.1
|
|
73
|
+
MarkupSafe 3.0.2
|
|
74
|
+
crc32c 2.7.1
|
|
75
|
+
sphinxcontrib-qthelp 2.0.0
|
|
76
|
+
sphinxcontrib-serializinghtml 2.0.0
|
|
77
|
+
zarr 2.18.4
|
|
78
|
+
asciitree 0.3.3
|
|
79
|
+
six 1.17.0
|
|
80
|
+
sphinxcontrib-applehelp 2.0.0
|
|
81
|
+
numpy 2.1.3
|
|
82
|
+
cloudpickle 3.1.1
|
|
83
|
+
sphinxcontrib-bibtex 2.6.3
|
|
84
|
+
natsort 8.4.0
|
|
85
|
+
jaraco.text 3.12.1
|
|
86
|
+
setuptools 76.1.0
|
|
87
|
+
Deprecated 1.2.18
|
|
88
|
+
packaging 24.2
|
|
89
|
+
python-dateutil 2.9.0.post0
|
|
90
|
+
---- ----
|
|
91
|
+
Python 3.13.2 | packaged by conda-forge | (main, Feb 17 2025, 14:10:22) [GCC 13.3.0]
|
|
92
|
+
OS Linux-6.11.0-109019-tuxedo-x86_64-with-glibc2.39
|
|
93
|
+
Updated 2025-03-18 15:47
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a new feature for scverse-doc
|
|
3
|
+
type: Enhancement
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description of feature
|
|
9
|
+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: pre-commit
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
cooldown:
|
|
8
|
+
default-days: 7
|
|
9
|
+
groups:
|
|
10
|
+
pre-commit:
|
|
11
|
+
patterns: ["*"]
|
|
12
|
+
- package-ecosystem: github-actions
|
|
13
|
+
directory: /
|
|
14
|
+
schedule:
|
|
15
|
+
interval: weekly
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
groups:
|
|
19
|
+
actions-deps:
|
|
20
|
+
patterns:
|
|
21
|
+
- "*"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# The workflow name is mandated by autofix.ci.
|
|
2
|
+
# It needs to be a dedicated workflow, as autofix.ci times out on long runs.
|
|
3
|
+
name: autofix.ci
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
lint:
|
|
14
|
+
name: Pre-commit checks
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
filter: blob:none
|
|
21
|
+
persist-credentials: false
|
|
22
|
+
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
23
|
+
with:
|
|
24
|
+
enable-cache: true
|
|
25
|
+
- run: uv tool install hatch
|
|
26
|
+
- name: Run pre-commit hooks
|
|
27
|
+
run: uvx prek run --all-files --show-diff-on-failure --color=always
|
|
28
|
+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
|
|
29
|
+
if: '!cancelled()'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Check Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
package:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
with:
|
|
22
|
+
filter: blob:none
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
persist-credentials: false
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
27
|
+
- name: Build package
|
|
28
|
+
run: uv build
|
|
29
|
+
- name: Check package
|
|
30
|
+
run: uvx twine check --strict dist/*.whl
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
|
|
8
|
+
permissions: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
name: Upload release to PyPI
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: pypi
|
|
16
|
+
url: https://pypi.org/p/scverse_doc
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
with:
|
|
23
|
+
filter: blob:none
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
- name: Install uv
|
|
27
|
+
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
28
|
+
with:
|
|
29
|
+
enable-cache: false
|
|
30
|
+
- name: Build package
|
|
31
|
+
run: uv build
|
|
32
|
+
- name: Publish package distributions to PyPI
|
|
33
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Sync data
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 5 * * *"
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
pull_request:
|
|
8
|
+
paths:
|
|
9
|
+
- src/scverse_doc/theme/scverse/static/_tokens.css
|
|
10
|
+
- src/scverse_doc/theme/scverse/static/scverse-fa.svg
|
|
11
|
+
- scripts/**
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
regenerate:
|
|
18
|
+
name: Generated files match upstream
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
25
|
+
with:
|
|
26
|
+
repository: scverse/scverse.github.io
|
|
27
|
+
path: .upstream/website
|
|
28
|
+
persist-credentials: false
|
|
29
|
+
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
30
|
+
- run: uv run scripts/sync_brand_tokens.py --website .upstream/website --check
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "0 5 1,15 * *"
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
# Get the test environment from hatch as defined in pyproject.toml.
|
|
20
|
+
# This ensures that the pyproject.toml is the single point of truth for test definitions and the same tests are
|
|
21
|
+
# run locally and on continuous integration.
|
|
22
|
+
# Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
|
|
23
|
+
# more details.
|
|
24
|
+
get-environments:
|
|
25
|
+
runs-on: ubuntu-slim
|
|
26
|
+
outputs:
|
|
27
|
+
envs: ${{ steps.get-envs.outputs.envs }}
|
|
28
|
+
steps:
|
|
29
|
+
- &clone
|
|
30
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
31
|
+
with:
|
|
32
|
+
filter: blob:none
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
persist-credentials: false
|
|
35
|
+
- &setup-uv
|
|
36
|
+
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
37
|
+
- name: Get test environments
|
|
38
|
+
id: get-envs
|
|
39
|
+
run: |
|
|
40
|
+
ENVS_JSON=$(uvx hatch env show --json | jq -c 'to_entries
|
|
41
|
+
| map(
|
|
42
|
+
select(.key | startswith("hatch-test"))
|
|
43
|
+
| {
|
|
44
|
+
name: .key,
|
|
45
|
+
label: (if (.key | contains("pre")) then .key + " (PRE-RELEASE DEPENDENCIES)" else .key end),
|
|
46
|
+
python: .value.python
|
|
47
|
+
}
|
|
48
|
+
)')
|
|
49
|
+
echo "envs=${ENVS_JSON}" | tee $GITHUB_OUTPUT
|
|
50
|
+
|
|
51
|
+
# Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
|
|
52
|
+
test:
|
|
53
|
+
needs: get-environments
|
|
54
|
+
permissions:
|
|
55
|
+
id-token: write # for codecov OIDC
|
|
56
|
+
contents: read
|
|
57
|
+
|
|
58
|
+
strategy:
|
|
59
|
+
fail-fast: false
|
|
60
|
+
matrix:
|
|
61
|
+
os: [ubuntu-latest]
|
|
62
|
+
env: ${{ fromJSON(needs.get-environments.outputs.envs) }}
|
|
63
|
+
|
|
64
|
+
name: ${{ matrix.env.label }}
|
|
65
|
+
runs-on: ${{ matrix.os }}
|
|
66
|
+
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails
|
|
67
|
+
env:
|
|
68
|
+
UV_PYTHON: ${{ matrix.env.python }}
|
|
69
|
+
|
|
70
|
+
steps:
|
|
71
|
+
- *clone
|
|
72
|
+
- *setup-uv
|
|
73
|
+
- name: create hatch environment
|
|
74
|
+
run: uvx hatch env create ${{ matrix.env.name }}
|
|
75
|
+
- name: list all all installed package versions
|
|
76
|
+
run: uvx hatch run ${{ matrix.env.name }}:uv pip list
|
|
77
|
+
- name: run tests using hatch
|
|
78
|
+
env:
|
|
79
|
+
MPLBACKEND: agg
|
|
80
|
+
PLATFORM: ${{ matrix.os }}
|
|
81
|
+
DISPLAY: :42
|
|
82
|
+
run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
|
|
83
|
+
- name: generate coverage report
|
|
84
|
+
run: |
|
|
85
|
+
# See https://coverage.readthedocs.io/page/config.html#run-patch
|
|
86
|
+
test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
|
|
87
|
+
uvx hatch run ${{ matrix.env.name }}:cov-report # report visibly
|
|
88
|
+
uvx hatch run ${{ matrix.env.name }}:coverage xml # create report for upload
|
|
89
|
+
- name: Upload coverage
|
|
90
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
91
|
+
with:
|
|
92
|
+
# Codecov answers "Repository not found" until scverse/scverse-doc is added there.
|
|
93
|
+
# Flip back to true once it is.
|
|
94
|
+
fail_ci_if_error: false
|
|
95
|
+
use_oidc: true
|
|
96
|
+
|
|
97
|
+
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
|
|
98
|
+
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
|
|
99
|
+
check:
|
|
100
|
+
name: Tests pass in all hatch environments
|
|
101
|
+
if: always()
|
|
102
|
+
needs:
|
|
103
|
+
- get-environments
|
|
104
|
+
- test
|
|
105
|
+
runs-on: ubuntu-latest
|
|
106
|
+
steps:
|
|
107
|
+
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
108
|
+
with:
|
|
109
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Temp files
|
|
2
|
+
.DS_Store
|
|
3
|
+
*~
|
|
4
|
+
buck-out/
|
|
5
|
+
|
|
6
|
+
# Compiled files
|
|
7
|
+
.venv/
|
|
8
|
+
uv.lock
|
|
9
|
+
__pycache__/
|
|
10
|
+
.*cache/
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
/dist/
|
|
14
|
+
|
|
15
|
+
# Tests and coverage
|
|
16
|
+
/data/
|
|
17
|
+
/node_modules/
|
|
18
|
+
/.coverage*
|
|
19
|
+
|
|
20
|
+
# docs
|
|
21
|
+
/docs/generated/
|
|
22
|
+
/docs/_build/
|
|
23
|
+
|
|
24
|
+
# Local development
|
|
25
|
+
.venv/
|
|
26
|
+
docs/generated/
|
|
27
|
+
docs/jupyter_execute/
|
|
28
|
+
*.lock
|
|
29
|
+
tests/roots/*/generated/
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
fail_fast: false
|
|
2
|
+
default_language_version:
|
|
3
|
+
python: python3
|
|
4
|
+
default_stages:
|
|
5
|
+
- pre-commit
|
|
6
|
+
- pre-push
|
|
7
|
+
minimum_pre_commit_version: 2.16.0
|
|
8
|
+
repos:
|
|
9
|
+
- repo: https://github.com/biomejs/pre-commit
|
|
10
|
+
rev: v2.5.15
|
|
11
|
+
hooks:
|
|
12
|
+
- id: biome-format
|
|
13
|
+
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
|
|
14
|
+
groups: [format]
|
|
15
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
16
|
+
rev: v2.30.0
|
|
17
|
+
hooks:
|
|
18
|
+
- id: pyproject-fmt
|
|
19
|
+
groups: [format]
|
|
20
|
+
- repo: https://github.com/djlint/djLint
|
|
21
|
+
rev: v1.46.4
|
|
22
|
+
hooks:
|
|
23
|
+
- id: djlint-reformat
|
|
24
|
+
- id: djlint
|
|
25
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
26
|
+
rev: v0.16.10
|
|
27
|
+
hooks:
|
|
28
|
+
- id: ruff-check
|
|
29
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
30
|
+
- id: ruff-format
|
|
31
|
+
groups: [format]
|
|
32
|
+
- repo: local
|
|
33
|
+
hooks:
|
|
34
|
+
- id: mypy
|
|
35
|
+
name: mypy
|
|
36
|
+
entry: hatch check types
|
|
37
|
+
language: system
|
|
38
|
+
types: [python]
|
|
39
|
+
files: ^(src|tests)/
|
|
40
|
+
require_serial: true
|
|
41
|
+
pass_filenames: false
|
|
42
|
+
groups: [typecheck]
|
|
43
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
44
|
+
rev: v6.0.0
|
|
45
|
+
hooks:
|
|
46
|
+
- id: detect-private-key
|
|
47
|
+
- id: check-ast
|
|
48
|
+
- id: end-of-file-fixer
|
|
49
|
+
groups: [format]
|
|
50
|
+
- id: mixed-line-ending
|
|
51
|
+
args: [--fix=lf]
|
|
52
|
+
groups: [format]
|
|
53
|
+
- id: trailing-whitespace
|
|
54
|
+
groups: [format]
|
|
55
|
+
- id: check-case-conflict
|
|
56
|
+
# Check that there are no merge conflicts (could be generated by template sync)
|
|
57
|
+
- id: check-merge-conflict
|
|
58
|
+
args: [--assume-in-merge]
|
|
59
|
+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
60
|
+
rev: v1.30.1
|
|
61
|
+
hooks:
|
|
62
|
+
- id: zizmor
|
|
63
|
+
args: [--no-progress, --fix]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://docs.readthedocs.io/page/config-file/v2.html
|
|
2
|
+
version: 2
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-24.04
|
|
5
|
+
tools:
|
|
6
|
+
python: "3.14"
|
|
7
|
+
nodejs: latest
|
|
8
|
+
jobs:
|
|
9
|
+
create_environment:
|
|
10
|
+
- asdf plugin add uv
|
|
11
|
+
- asdf install uv latest
|
|
12
|
+
- asdf global uv latest
|
|
13
|
+
build:
|
|
14
|
+
html:
|
|
15
|
+
- uvx hatch run docs:build -T
|
|
16
|
+
- mv docs/_build $READTHEDOCS_OUTPUT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
// GitHub integration
|
|
4
|
+
"github.vscode-github-actions",
|
|
5
|
+
"github.vscode-pull-request-github",
|
|
6
|
+
// Language support
|
|
7
|
+
"ms-python.python",
|
|
8
|
+
"ms-python.vscode-pylance",
|
|
9
|
+
"ms-toolsai.jupyter",
|
|
10
|
+
"tamasfe.even-better-toml",
|
|
11
|
+
// Dependency management
|
|
12
|
+
"ninoseki.vscode-mogami",
|
|
13
|
+
// Linting and formatting
|
|
14
|
+
"editorconfig.editorconfig",
|
|
15
|
+
"charliermarsh.ruff",
|
|
16
|
+
"biomejs.biome",
|
|
17
|
+
],
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Python: Build Documentation",
|
|
9
|
+
"type": "debugpy",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"module": "sphinx",
|
|
12
|
+
"args": ["-M", "html", ".", "_build"],
|
|
13
|
+
"cwd": "${workspaceFolder}/docs",
|
|
14
|
+
"console": "internalConsole",
|
|
15
|
+
"justMyCode": false,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Python: Debug Test",
|
|
19
|
+
"type": "debugpy",
|
|
20
|
+
"request": "launch",
|
|
21
|
+
"program": "${file}",
|
|
22
|
+
"purpose": ["debug-test"],
|
|
23
|
+
"console": "internalConsole",
|
|
24
|
+
"justMyCode": false,
|
|
25
|
+
"env": {
|
|
26
|
+
"PYTEST_ADDOPTS": "--color=yes",
|
|
27
|
+
},
|
|
28
|
+
"presentation": {
|
|
29
|
+
"hidden": true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[python][json][jsonc]": {
|
|
3
|
+
"editor.formatOnSave": true,
|
|
4
|
+
},
|
|
5
|
+
"[python]": {
|
|
6
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.fixAll.ruff": "always",
|
|
9
|
+
"source.organizeImports.ruff": "always",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
"[json][jsonc]": {
|
|
13
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
14
|
+
},
|
|
15
|
+
"python.testing.pytestEnabled": true,
|
|
16
|
+
"python.testing.pytestArgs": ["-vv", "--color=yes"],
|
|
17
|
+
"python-envs.defaultEnvManager": "pypa.hatch:hatch",
|
|
18
|
+
"python-envs.defaultPackageManager": "pypa.hatch:hatch",
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog][],
|
|
6
|
+
and this project adheres to [Semantic Versioning][].
|
|
7
|
+
|
|
8
|
+
[keep a changelog]: https://keepachangelog.com/
|
|
9
|
+
[semantic versioning]: https://semver.org/
|
|
10
|
+
|
|
11
|
+
## [0.1.0]
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `scverse` Sphinx theme: branding, dark mode, shared sidebar, footer, and announcement banner
|
|
16
|
+
- Package registry, fetched at runtime: “scverse packages” dropdown and intersphinx cross-links
|
|
17
|
+
- Source links: “edit this page” and repository icon
|
|
18
|
+
- Read the Docs integration: version selector and search, both with dark mode
|
|
19
|
+
- Autodoc, prose, and confval rendering extensions (from scverse-misc)
|
|
20
|
+
|
|
21
|
+
[0.1.0]: https://github.com/scverse/scverse-doc/releases/tag/v0.1.0
|