Skip to content

Commit 8fe3dcb

Browse files
authored
Merge branch 'main' into main
2 parents bb49216 + 313b0ae commit 8fe3dcb

6 files changed

Lines changed: 45 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ repos:
2323
- id: prettier
2424
# package metadata
2525
- repo: https://github.com/python-jsonschema/check-jsonschema
26-
rev: 0.36.1
26+
rev: 0.37.0
2727
hooks:
2828
- id: check-jsonschema
2929
files: "scripts/src/ecosystem_scripts/schema.json"
3030
args: ["--check-metaschema"]
3131
- repo: https://github.com/python-jsonschema/check-jsonschema
32-
rev: 0.36.1
32+
rev: 0.37.0
3333
hooks:
3434
- id: check-jsonschema
3535
files: "packages/.*/meta.yaml"
@@ -45,15 +45,15 @@ repos:
4545
exclude: "^packages/.*/(meta.yaml|logo\\..*)$"
4646
# scripts
4747
- repo: https://github.com/astral-sh/ruff-pre-commit
48-
rev: v0.14.14
48+
rev: v0.15.5
4949
hooks:
5050
- id: ruff-check
5151
args: [--fix, --exit-non-zero-on-fix]
5252
files: ^scripts/.*$
5353
- id: ruff-format
5454
files: ^scripts/.*$
5555
- repo: https://github.com/tox-dev/pyproject-fmt
56-
rev: v2.12.1
56+
rev: v2.16.2
5757
hooks:
5858
- id: pyproject-fmt
5959
- repo: https://github.com/camptocamp/jsonschema-gentypes

packages/anndataR/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |
44
of H5AD files and conversion to common R data structures.
55
project_home: https://github.com/scverse/anndataR
66
documentation_home: https://bioconductor.org/packages/anndataR/
7-
tutorials_home: https://anndatar.data-intuitive.com/
7+
tutorials_home: https://scverse.org/anndataR/
88
install:
99
bioconductor: anndataR
1010
license: MIT

packages/nichepca/meta.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: nichepca
2+
description: |
3+
A Python package for PCA-based spatial domain identification in single-cell spatial transcriptomics data.
4+
project_home: https://github.com/imsb-uke/nichepca
5+
documentation_home: https://nichepca.readthedocs.io/
6+
tutorials_home: https://nichepca.readthedocs.io/page/notebooks/example.html
7+
install:
8+
pypi: nichepca
9+
tags:
10+
- spatial-omics
11+
- spatial domain identification
12+
- spatial clustering
13+
license: MIT
14+
version: v0.0.3
15+
contact:
16+
- dschaub95
17+
test_command: |
18+
uv sync --all-extras && \
19+
uv run pytest .
20+
category: ecosystem

scripts/pyproject.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
43
requires = [ "hatch-vcs", "hatchling" ]
54

65
[project]
@@ -29,19 +28,16 @@ dependencies = [
2928
"pyyaml",
3029
"rich",
3130
]
32-
3331
urls.Documentation = "https://github.com/scverse/ecosystem-packages#readme"
3432
urls.Issues = "https://github.com/scverse/ecosystem-packages/issues"
3533
urls.Source = "https://github.com/scverse/ecosystem-packages"
3634
scripts.register-template-repos = "ecosystem_scripts.template_repo_registry:main"
3735
scripts.validate-registry = "ecosystem_scripts.validate_registry:main"
3836

39-
[tool.hatch.envs.default]
40-
python = "3.13"
41-
42-
[tool.hatch.version]
43-
source = "vcs"
44-
fallback-version = "0.0"
37+
[tool.hatch]
38+
envs.default.python = "3.13"
39+
version.source = "vcs"
40+
version.fallback-version = "0.0"
4541

4642
[tool.ruff]
4743
line-length = 120
@@ -72,7 +68,7 @@ lint.select = [
7268
"W",
7369
"YTT",
7470
]
75-
lint.ignore = [ ]
71+
lint.ignore = []
7672

7773
[tool.mypy]
7874
strict = true

scripts/src/ecosystem_scripts/validate_registry.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import argparse
77
import json
88
import os
9+
import re
910
import shutil
1011
import sys
1112
from collections import defaultdict
@@ -48,6 +49,11 @@ def append(self, obj: Exception | None) -> None:
4849
return super().append(obj)
4950

5051

52+
RE_RTD = re.compile(
53+
r"https?://(?P<domain>.*\.(?:readthedocs\.io|rtfd\.io|readthedocs-hosted\.com))/(?P<version>en/[^/]+)(?P<path>.*)"
54+
)
55+
56+
5157
class LinkChecker:
5258
"""Track known links and validate URLs."""
5359

@@ -65,6 +71,12 @@ def check_and_register(self, url: str, context: str) -> None | ValidationError:
6571
context
6672
Context information for error messages (e.g., file being validated)
6773
"""
74+
if m := re.fullmatch(RE_RTD, url):
75+
new_url = f"https://{m['domain']}/" + (f"page{m['path']}" if m["path"].strip("/") else "")
76+
msg = (
77+
f"Please use the default version in ReadTheDocs URLs instead of {m['version']!r}:\n{url}\n->\n{new_url}"
78+
)
79+
return ValidationError(msg)
6880
if url in self.known_links:
6981
msg = f"{context}: Duplicate link: {url}"
7082
return ValidationError(msg)

template-repos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
- url: https://github.com/bunina-lab/scDoRI_tools
4747
- url: https://github.com/cameronraysmith/perturbvelo
4848
- url: https://github.com/carmonalab/pyucell
49+
- url: https://github.com/cellannotation/pairOT
4950
- url: https://github.com/clinicalomx/napari-prism
5051
- url: https://github.com/cobioda/scispy
5152
- url: https://github.com/const-ae/pyLemur
@@ -115,6 +116,7 @@
115116
- url: https://github.com/scverse/pytometry
116117
- url: https://github.com/scverse/scanpy
117118
- url: https://github.com/scverse/scirpy
119+
- url: https://github.com/scverse/scverse-misc
118120
- url: https://github.com/scverse/scverse-tutorials
119121
- url: https://github.com/scverse/simple-scvi
120122
- url: https://github.com/scverse/spatial-sample-aggregation
@@ -142,6 +144,7 @@
142144
- url: https://github.com/theislab/troutpy
143145
- url: https://github.com/timtreis/gefslim
144146
- url: https://github.com/vitkl/cell2module
147+
- url: https://github.com/vitkl/regularizedvi
145148
- url: https://github.com/wangd12rpi/hescape_changed
146149
- url: https://github.com/yizhak-lab-ccg/scXpand
147150
- url: https://github.com/zunderlab/eschr

0 commit comments

Comments
 (0)