add first structure

This commit is contained in:
2026-09-20 02:08:11 +02:00
parent 9e9a82e74e
commit c93792ccd7
17 changed files with 1433 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import importlib.metadata
def test_schema_entrypoint() -> None:
(dbyaml_ep,) = importlib.metadata.entry_points(
group="validate_pyproject.file_schema", name="dbyaml"
)
dbyaml_fn = dbyaml_ep.load()
schema = dbyaml_fn()
assert schema == dbyaml_fn("dbyaml")
print(schema["properties"])
assert schema["type"] == "object"
assert schema["properties"]["verbose"]["type"] == "boolean"
assert schema["properties"]["list"]["type"] == "object"