Skip to content

Commit 809df27

Browse files
authored
Add order to json schema (#208)
* Add order to schema * Add order to schema * Fix CI * Add order validation * Fix order
1 parent b7ab5d2 commit 809df27

File tree

28 files changed

+58
-12
lines changed

28 files changed

+58
-12
lines changed

.github/workflows/make-tutorials-json.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ jobs:
2424
with:
2525
filter: blob:none
2626
fetch-depth: 0
27-
- uses: actions/setup-python@v4
27+
28+
- uses: actions/setup-python@v5
2829
with:
29-
python-version: "3.10"
30+
python-version: "3.12"
3031
cache: "pip" # caching pip dependencies
3132
- name: Install dependencies for validation script
3233
run: pip install .[registry]
3334
- name: Execute validation script and create output directory
3435
run: |
3536
./tutorial-registry/validate.py --outdir=build
37+
3638
- name: Upload GitHub Pages artifact
37-
uses: actions/upload-pages-artifact@v1
39+
uses: actions/upload-pages-artifact@v3
3840
with:
3941
path: "build"
4042

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ default_stages:
66
- pre-push
77
minimum_pre_commit_version: 2.16.0
88
repos:
9-
- repo: https://github.com/pre-commit/mirrors-prettier
10-
rev: v4.0.0-alpha.8
9+
- repo: https://github.com/rbubley/mirrors-prettier
10+
rev: v3.5.1
1111
hooks:
1212
- id: prettier
1313
- repo: https://github.com/astral-sh/ruff-pre-commit

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.11"
6+
python: "3.12"
77
sphinx:
88
configuration: docs/conf.py
99
fail_on_warning: true

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ build = "sphinx-build -M html docs docs/_build {args}"
6464
[tool.hatch.build.targets.wheel]
6565
bypass-selection = true # This is not a package
6666

67-
[tool.black]
68-
line-length = 120
69-
7067
[tool.ruff]
7168
line-length = 120
7269
src = ["src"]

tutorial-registry/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"Tips & Tricks"
3838
]
3939
},
40+
"order": {
41+
"description": "Order of appearence on the website. Lower numbers mean earlier (higher priority).",
42+
"type": "number"
43+
},
4044
"modality": {
4145
"description": "Which modalities are used in the tutorial?",
4246
"type": "array",

tutorial-registry/tutorials/ATAC-preprocessing/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: |
66
link: https://muon-tutorials.readthedocs.io/en/latest/single-cell-rna-atac/pbmc10k/2-Chromatin-Accessibility-Processing.html
77
image: icon.png
88
primary_category: ATAC-seq
9+
order: 10
910
tags:
1011
- preprocessing
1112
- multimodal

tutorial-registry/tutorials/CITEseq-integration/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: |
66
link: https://muon-tutorials.readthedocs.io/en/latest/cite-seq/1-CITE-seq-PBMC-5k.html
77
image: icon.png
88
primary_category: Surface proteins
9+
order: 10
910
tags:
1011
- multimodal
1112
- data integration

tutorial-registry/tutorials/Joint-analysis-of-multiomic-data-with-MultiVI/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: |
66
link: https://docs.scvi-tools.org/en/stable/tutorials/notebooks/multimodal/MultiVI_tutorial.html
77
image: icon.png
88
primary_category: ATAC-seq
9+
order: 20
910
tags:
1011
- preprocessing
1112
- visualization

tutorial-registry/tutorials/RNA-velocity/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: |
55
link: https://scvelo.readthedocs.io/en/stable/getting_started.html
66
image: icon.png
77
primary_category: scRNA-seq
8+
order: 50
89
tags:
910
- preprocessing
1011
- RNA velocity

tutorial-registry/tutorials/advanced-plotting/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: |
55
link: https://scanpy-tutorials.readthedocs.io/en/latest/plotting/advanced.html
66
image: icon.png
77
primary_category: Tips & Tricks
8+
order: 30
89
tags:
910
- visualization
1011
packages:

0 commit comments

Comments
 (0)