PyKMIP/tox.ini
Peter Hamilton dcbddd8b82 Updating bandit usage with PyKMIP and removing bandit config
This change updates how bandit is used with PyKMIP, removing the
need for a bandit configuration file and instead opting for the
default bandit functionality. bandit is applied across the entire
project structure except for the tests directory.
2016-12-02 10:39:38 -05:00

38 lines
922 B
INI

[tox]
envlist = pep8,py26,py27,py33,py34,py35,bandit
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
coveralls
commands =
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit
coverage report -m
coverage html
[testenv:pep8]
commands = flake8 kmip/
[testenv:integration]
# Note: This requires local or remote access to a KMIP appliance or service
deps = {[testenv]deps}
basepython=python2.7
commands =
py.test --strict kmip/tests/integration -m "not ignore" {posargs}
[testenv:bandit]
deps = {[testenv]deps}
commands = bandit -r kmip -n5 -x kmip/tests
[testenv:docs]
deps = sphinx
commands =
sphinx-apidoc -o {toxinidir}/docs {toxinidir}/kmip/
sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build
[flake8]
exclude = .git,.tox,dist,rpmbuild,*.egg-info