Files
utilities/ceph/python-cephclient/python-cephclient/tox.ini
T
Chen, Haochuan Z 6829ac785f Enable bandit for utilities
Story: 2008929
Task: 42530

Change-Id: Id63488414ae16b384549fcf8cbd9805b5b1a81ad
Signed-off-by: Chen, Haochuan Z <haochuan.z.chen@intel.com>
2021-06-17 01:45:52 +00:00

36 lines
849 B
INI

[tox]
envlist = py27,pep8
skipsdist = True
toxworkdir = /tmp/{env:USER}_python_cephclient_tox
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands = py.test {posargs}
whitelist_externals = bash
[testenv:pep8]
commands =
flake8 {posargs}
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[bandit]
# The following bandit tests are being skipped:
# B101: Test for use of assert
# B404: Import of subprocess modul
# B602: Test for use of popen with shell equals true
#
# Note: 'skips' entry cannot be split across multiple lines
#
skips = B101,B404,B602
exclude = tests
[testenv:bandit]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = bandit --ini tox.ini -n 5 -r cephclient