[tox]
minversion = 1.6
-envlist = docs,docs-linkcheck,jjb-version,prefix,robot,
+envlist = docs,docs-linkcheck,jjb-version,prefix,robot,pylint
# pre-commit
skipsdist = true
|| (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
+whitelist_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 \{\} +
+