From 393406bbef789dc98a46c29ccbf19cbb6713a780 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 19 Mar 2020 11:49:47 +0100 Subject: [PATCH] Verify JSON files in the CI Change-Id: I88380fe647864e9a7108d5dd76bdf501f289b229 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index a9b872f..d6eab2f 100644 --- a/tox.ini +++ b/tox.ini @@ -14,9 +14,12 @@ deps = -r{toxinidir}/requirements.txt commands = stestr run --slowest {posargs} [testenv:linters] +whitelist_externals = bash commands = # Check the *.rst files doc8 README.rst guidelines + # Check the JSON files + bash -c 'for f in guidelines/*.json; do echo Checking "$f"; python -m json.tool "$f" /dev/null || exit 1; done' [testenv:venv] commands = {posargs}