summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@enovance.com>2014-10-03 21:05:00 +0200
committerChmouel Boudjnah <chmouel@enovance.com>2014-10-03 21:18:12 +0200
commit5aa235066c9628540445b0772eb5332877fde594 (patch)
tree2a70aca413eee2d8b553b7c6cd8eee02a8d44f91 /tox.ini
parent76a16029006a2f5d3b79f1198d81acb6653110e9 (diff)
downloadkolla-5aa235066c9628540445b0772eb5332877fde594.tar.gz
kolla-5aa235066c9628540445b0772eb5332877fde594.zip
Rename validate-json target as pep8 and improve it
When discussing with the infra guys they have mentioned it would be easier to call our linting job pep8, it's indeed badly named but that target has been used all over openstack for linting projects. As a bonus point it would make things easier to add the job to the gate. To make that patch much more interesting than a three characters change I have improved the validate-samples script to detect if jsonlint was present and if not fallback to the standard python -mjson.tool which give you less details but nonetheless works if jsonlint is present. Change-Id: I8d71a229917004dfd7223a16e4f270101cf2f0a8
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 5a3f84656..53c0c830e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,11 @@
[tox]
skipsdist = True
-envlist = validate-json
+envlist = pep8
minversion = 1.6
[testenv]
deps = -r{toxinidir}/test-requirements.txt
-[testenv:validate-json]
+[testenv:pep8]
commands =
{toxinidir}/tools/validate-json.sh