-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (63 loc) · 1.51 KB
/
tox.ini
File metadata and controls
69 lines (63 loc) · 1.51 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
minversion = 3.7.0
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:true}
isolated_build = true
envlist = py3{7,8,9,10},lint,style,pkg,docs
[testenv]
description = Execute Tests
py3: basepython = python3
py3.7: basepython = python3.7
py3.8: basepython = python3.8
py3.9: basepython = python3.9
py3.10: basepython = python3.10
passenv =
PYTEST_XDIST_PROC_NR
JENKINS_URL
JENKINS_USER_ID
JENKINS_API_TOKEN
extras = test
commands =
pytest {posargs}
[testenv:lint]
description = Static Analysis
basepython = python3
extras =
lint
commands = flakehell lint src/ setup.py test/
[testenv:style]
# TODO: Integrate with lint
description = Style Checking
basepython = python3
usedevelop = true
deps =
black
isort
flynt
commands =
isort --check-only src/ setup.py test/
black --check src/ setup.py test/
flynt --line_length 98 --transform-concats --fail-on-change src/ setup.py test/
[testenv:pkg]
description = Check Distribution Package
basepython = python3
skip_install = true
deps =
pyroma
readme_renderer[md]
twine
commands_pre =
pip3 wheel --wheel-dir dist .
commands =
pyroma .
twine check dist/*
[testenv:docs]
description = Check Distribution Package
basepython = python3
extras =
docs
setenv =
DOC_DIR = docs
commands =
rstcheck -r {env:DOC_DIR}/
; sphinx-apidoc --separate --module-first -o "{toxinidir}/{env:DOC_DIR}" "{toxinidir}/src/"
sphinx-build -v --color {posargs} {env:DOC_DIR} "{toxinidir}/{env:DOC_DIR}/_build"