2 envlist = pep8,pylint,yamllint,bashate,py310,bandit,perm
7 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
9 -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11 install_command = pip install --use-deprecated=legacy-resolver {opts} {packages}
14 --junit-xml=junit.xml \
15 --html=report.html --self-contained-html \
16 --cov=xtesting --cov-reset --cov-report html \
20 basepython = python3.10
24 basepython = python3.10
26 --ignore-imports=y --min-similarity-lines=10 \
27 --disable=locally-disabled,wrong-import-order --reports=n functest_kubernetes
30 basepython = python3.10
31 files =.travis.yml docker
33 yamllint {[testenv:yamllint]files}
36 basepython = python3.10
37 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
40 basepython = python3.10
41 files =build.sh functest_kubernetes/ci/download_images.sh
42 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
45 basepython = python3.10
46 allowlist_externals = bash
47 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*' -not -path './elements/functest-kubernetes/install.d/*'
50 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
51 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
53 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
56 basepython = python3.10
58 pre-commit run --all-files --show-diff-on-failure