+
+[testenv:cut-branch-jobs]
+basepython = python3
+deps =
+ pre-commit
+ ruamel.yaml
+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 \{\} +
+