-
Notifications
You must be signed in to change notification settings - Fork 133
/
tox.ini
51 lines (41 loc) · 1.2 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
envlist = pep8,py38,py310,bandit,docs
[testenv]
passenv = *
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit {posargs}
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}
commands =
py.test --strict kmip/tests/integration -m "not ignore" {posargs}
[testenv:functional]
# Note: This requires local access to instances of the PyKMIP server and SLUGS.
deps = {[testenv]deps}
commands =
py.test --strict kmip/tests/functional -m "not ignore" {posargs}
[testenv:bandit]
deps = {[testenv]deps}
commands = bandit -r kmip -n5 -x kmip/tests
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -j4 -T -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
[testenv:docs-linkcheck]
changedir = docs
extras =
deps = {[testenv:docs]deps}
commands =
sphinx-build -W -b linkcheck source {envtmpdir}/html
[flake8]
exclude = .git,.tox,dist,rpmbuild,*.egg-info
max-line-length = 88