We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dandischema/models.yaml
1 parent ee55d6b commit 59f4db1Copy full SHA for 59f4db1
pyproject.toml
@@ -65,10 +65,12 @@ python = "3.10"
65
# Env for auto converting `dandischema.models` to LinkML schema and back to Pydantic models
66
[tool.hatch.envs.linkml-auto-converted]
67
dependencies = [
68
+ "black", # This allows `gen-pydantic` to format the generated Pydantic models with Black formatting
69
"pydantic2linkml @ git+https://github.com/dandi/pydantic2linkml.git"
70
]
71
[tool.hatch.envs.linkml-auto-converted.scripts]
72
2linkml = "pydantic2linkml -l INFO -O dandischema/models_overlay.yaml -o dandischema/models.yaml dandischema.models"
73
+2pydantic = "gen-pydantic --black dandischema/models.yaml > dandischema/models.py"
74
75
[tool.setuptools.packages.find]
76
namespaces = true
0 commit comments