Lint autogenerated YAML
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 6 Mar 2021 02:38:00 +0000 (02:38 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 6 Mar 2021 02:38:00 +0000 (02:38 +0000)
Run the selftest before calling yamllint, so that we can confirm the
YAML files generated by the data module follow the same format as
those shipped in the repository.

tox.ini

diff --git a/tox.ini b/tox.ini
index 6e3bdb8..84ae5a5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -80,8 +80,9 @@ commands = mudpy_selftest etc/mudpy.yaml
 [testenv:yamllint]
 description = test data files for correct syntax and formatting
 deps = yamllint
 [testenv:yamllint]
 description = test data files for correct syntax and formatting
 deps = yamllint
-commands = yamllint --strict {posargs} .
-usedevelop = False
+commands =
+    mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
+    yamllint --strict {posargs} .
 
 [flake8]
 show-source = True
 
 [flake8]
 show-source = True