-
Notifications
You must be signed in to change notification settings - Fork 87
/
tox.ini
42 lines (38 loc) · 1.03 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
[tox]
envlist = py{37,38,39,310,311,py37,py38}
isolated_build = true
skip_missing_interpreters = true
[testenv]
description = run the unit tests with pytest under {basepython}
extras =
test
passenv =
VK_ACCESS_TOKEN
VK_USER_LOGIN
VK_USER_PASSWORD
VK_GROUP_IDS
commands =
pytest --color=yes {posargs: \
--no-cov-on-fail --cov-report xml --cov-report term-missing --cov-append \
--cov {envsitepackagesdir}{/}vk --cov {toxinidir}{/}tests tests{/} -rxs \
}
package = wheel
[testenv:fix]
description = run static analysis and style check using flake8
passenv =
HOMEPATH
PROGRAMDATA
skip_install = true
deps =
pre-commit>=2
commands =
pre-commit run --all-files
[testenv:docs]
description = build docs with sphinx
extras =
docs
commands =
sphinx-build docs "{toxworkdir}/docs_out" --color -b html {posargs}
python -c 'import pathlib; print("Documentation available under \{0\}".format((pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html").as_uri()))'
[flake8]
max-line-length = 120