Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (48 loc) · 1.44 KB
/
Copy pathtox.ini
File metadata and controls
54 lines (48 loc) · 1.44 KB
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
52
53
54
[tox]
envlist = flake8, isort, black, docs, py36, py37, py38, py39, py310, py311
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
pytest-cov
codecov
whitelist_externals = make
passenv = UCS_CONTAINER_IP UCS_HOST UCS_USERDN UCS_PASSWORD CI TRAVIS TRAVIS_*
commands_pre =
python3 --version
python3 -m pip install -U pip wheel
make pip-install-openapi-client
commands =
pytest --basetemp={envtmpdir} --cov=tests --cov=udm_rest_client --cov-fail-under=100 --cov-report=term-missing
codecov
[testenv:flake8]
basepython = python3
deps = flake8
commands_pre =
commands = make lint-flake8
[testenv:isort]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
isort
commands_pre = make pip-install-openapi-client
commands = make lint-isort
[testenv:black]
basepython = python3
deps = black
commands_pre =
commands = make lint-black
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3
deps = sphinx
commands_pre = make pip-install-openapi-client
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python3 -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[travis]
python =
3.9: py39
3.10: py310
3.11: py311