Add yamllint to tox 47/52447/6
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 1 Mar 2017 04:49:38 +0000 (23:49 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 2 Mar 2017 04:35:08 +0000 (23:35 -0500)
Start linting our yaml files but allow for 120 max lines.

Trello: https://trello.com/c/MlgqXKq6
Change-Id: Icd1b8d4931e15b77ee29aa179422cd652e43f2e5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini
yamllint.conf [new file with mode: 0644]

diff --git a/tox.ini b/tox.ini
index f00fdcc21e6ac08ee6978cb52ecbffddd79f750e..579c689aa9884f93c7a8833a1e0de1224ce757de 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = docs,pep8
+envlist = docs,pep8,yamllint
 skipsdist = true
 
 [testenv:docs]
@@ -11,3 +11,7 @@ commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs
 deps = flake8
 commands = flake8 scripts/
 
+[testenv:yamllint]
+deps = yamllint
+commands = yamllint -c yamllint.conf jjb/
+
diff --git a/yamllint.conf b/yamllint.conf
new file mode 100644 (file)
index 0000000..4484cd8
--- /dev/null
@@ -0,0 +1,6 @@
+extends: default
+
+rules:
+  line-length:
+    max: 120
+