Use yamllint --strict when called from tox
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 31 Dec 2018 18:33:56 +0000 (18:33 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 31 Dec 2018 18:33:56 +0000 (18:33 +0000)
To treat YAML formatting inconsistency warnings from yamllint as
blocking errors for development, invoke it with --strict so that tox
will report a failure rather than success.

tox.ini

diff --git a/tox.ini b/tox.ini
index 9e81bde..7540510 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -44,7 +44,7 @@ commands = flake8 {posargs}
 commands = mudpy_selftest etc/mudpy.yaml
 
 [testenv:yamllint]
-commands = yamllint {posargs} .
+commands = yamllint --strict {posargs} .
 
 [flake8]
 show-source = True