Update cloud image list docs
[releng/builder.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index f1635af34d43fe9bbce7b4eb64dac13cecbc602d..56b21b345ef15fc1e7fe789a7f26950e8c385530 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = docs,docs-linkcheck,jjb-version,pre-commit,prefix,robot
+envlist = docs,docs-linkcheck,jjb-version,prefix,robot
 skipsdist = true
 
 [testenv:docs]
@@ -8,14 +8,14 @@ deps = -rdocs/requirements.txt
 commands = sphinx-build -q -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
-passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+passenv = http_proxy, https_proxy, no_proxy
 basepython = python3
 deps = -rdocs/requirements.txt
 commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
 
 [testenv:jenkins-jobs]
 deps =
-    jenkins-job-builder=={env:JJB_VERSION:3.5.0}
+    jenkins-job-builder=={env:JJB_VERSION:5.0.2}
 commands =
     jenkins-jobs {posargs:--help}
 
@@ -62,3 +62,24 @@ deps =
 commands =
     python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
     - pre-commit run --all-files prettier
+
+[testenv:checkbashisms]
+deps =
+allowlist_externals = sh
+                      find
+                      checkbashisms
+commands =
+    sh -c 'which checkbashisms>/dev/null  || sudo yum install devscripts-minimal || sudo apt-get install devscripts \
+        || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \
+        yum install devscripts-minimal )" >&2 && exit 1)'
+    find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f  \{\} +
+
+[testenv:pylint]
+basepython = python3
+deps = pylint>=2.6.0
+allowlist_externals = find
+commands =
+# .tox folder and submodules directories global-jjb/ & packer/common-packer/ must be excluded since they are not maintained here
+    find . -name *.py -not -path "./.tox/*" -not -path "./global-jjb/*" -not -path "./packer/common-packer/*" -exec \
+    pylint --fail-under=6.50 --max-line-length=120 --disable=missing-docstring --disable=fixme --disable=duplicate-code \{\} +
+