X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=8dc20c9a25280f0aec561c01c1476f842c05d4f8;hb=HEAD;hp=fb975e7228f01cc6c4c9a919a7e5c63753c6c057;hpb=6a281fdae4bba653c2345ce4b755b6d9d9cf97aa;p=optf%2Fosdf.git diff --git a/tox.ini b/tox.ini index fb975e7..0bd2d9e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ skipsdist=True envlist = py3, pylint, flake8diff [testenv] +allowlist_externals=/bin/cp, /bin/bash, /bin/rm distribute = False basepython=python3 setenv = @@ -26,15 +27,15 @@ deps = -r{toxinidir}/requirements.txt source=./apps/,./osdf/,osdfapp.py,./runtime/,solverapp.py [testenv:pylint] -whitelist_externals=bash +allowlist_externals=bash commands = bash -c "pylint --reports=y osdf apps runtime| tee pylint.out" [testenv:py3] -basepython=python3.6 +basepython=python3 [testenv:flake8diff] -basepython=python3.6 -whitelist_externals=bash +basepython=python3 +allowlist_externals=bash deps = hacking>=2.0.0 commands = bash -c "files=$(git diff HEAD^ HEAD --diff-filter=d --name-only | grep -E '(^apps\/|osdf\/|runtime\/)'| grep -E '*\.py$'); if [[ -z $files ]]; then exit 0; else flake8 $files; fi" @@ -43,4 +44,4 @@ commands = select = E,H,W,F max-line-length = 119 ignore = W503 #conflict with W504 -per-file-ignores= +per-file-ignores= apps/pci/optimizers/__init__.py:F401