Skip to content

Commit 56945d7

Browse files
tox: add schemacheck to verify that generated schema data matches yaml
The default behavior of tool.py in the schema dir is to check that the data in the yaml based files match that in the JSON & py files. Add a tox rule to invoke the tool to help ensure changes to yaml file aren't being made without corresponding updates to the others. Signed-off-by: John Mulligan <[email protected]>
1 parent 83264cd commit 56945d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[tox]
3-
envlist = formatting, {py3,py39}-mypy, py3, py39
3+
envlist = formatting, {py3,py39}-mypy, py3, py39, schemacheck
44
isolated_build = True
55

66
[testenv]
@@ -47,3 +47,10 @@ deps =
4747
commands =
4848
flake8 sambacc tests
4949
black --check -v .
50+
51+
[testenv:schemacheck]
52+
deps =
53+
black
54+
PyYAML
55+
commands =
56+
python -m sambacc.schema.tool

0 commit comments

Comments
 (0)