Skip to content

Commit 1946b56

Browse files
committed
build(hatch-env): provide script to translate dandischema.models
Provide script to translate `dandischema.models` in to a LinkML schema and overly it with definition provided by an overlay file.
1 parent 1f64b64 commit 1946b56

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dandischema/models_overlay.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: dandi-schema

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ python = "3.10"
6767
dependencies = [
6868
"pydantic2linkml @ git+https://github.com/dandi/pydantic2linkml.git"
6969
]
70+
[tool.hatch.envs.linkml-auto-converted.scripts]
71+
translate = "pydantic2linkml -l INFO -O dandischema/models_overlay.yaml -o dandischema/models.yaml dandischema.models"
7072

7173
[tool.setuptools.packages.find]
7274
namespaces = true

0 commit comments

Comments
 (0)