-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (47 loc) · 1012 Bytes
/
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
52
53
54
55
[tox]
envlist =
py38
py39
py310
cov
ignore_basepython_conflict = true
isolated_build = true
[testenv]
allowlist_externals = poetry
coverage
skip_install = true
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=1
passenv =
*
commands =
poetry install -v
poetry run coverage erase
poetry run coverage run -m pytest {posargs:-vv} -n 5
[testenv:cov]
allowlist_externals = poetry
coverage
skip_install = true
commands =
poetry install -v
poetry run coverage report -m
[testenv:report_cov]
skip_install = true
deps = coverage
commands =
coverage xml
[testenv:linting]
allowlist_externals = poetry
basepython = python3
setenv =
; skip pylint hook for now.
SKIP=pylint
commands = poetry run pre-commit run --all-files {posargs:}
[testenv:docs]
allowlist_externals = poetry
description = Builds mkdocs and serves it
basepython = python3
commands =
poetry run mkdocs build
poetry run mkdocs serve