This repository was archived by the owner on May 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
executable file
·73 lines (63 loc) · 1.37 KB
/
tox.ini
File metadata and controls
executable file
·73 lines (63 loc) · 1.37 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
69
70
71
72
[tox]
skipsdist = true
maxversion = 3.11.0
isolated_build = True
env_list =
static-type-check
lint
test
[testenv]
basepython = python3
deps =
{toxinidir}
setenv = PYTHONPATH = {toxinidir}/src
[testenv:lint]
description = lint with pylint
deps =
pylint >= 2.12.2, < 3
commands =
python3 -m pylint {toxinidir}/src {posargs}
[testenv:static-type-check]
description = static type checking
deps =
mypy >=1.5.1,<2
commands =
python3 -m mypy {toxinidir}/src {posargs}
[testenv:test]
description = test suite with pytest
deps =
pytest
pytest-cov
commands =
pytest \
--junitxml=test-reports/full.xml \
--cov-report term \
--cov-report html:test-reports/coverage \
--cov=wsgirouter \
{posargs}
[testenv:build-demo]
description = test suite with pytest
deps =
sphinx
{toxinidir}
commands =
sphinx-build -b html -Dhtml4_writer=0 \
-d {envtmpdir}/doctrees demo \
build/demo
[testenv:autobuild-demo]
description = test suite with pytest
deps =
sphinx
sphinx-autobuild
{toxinidir}
commands =
sphinx-autobuild -b html -Dhtml4_writer=0 \
-d {envtmpdir}/doctrees demo \
--watch src/tiararodneycom_theme \
build/demo
[testenv:build-sdist]
description = build and package
deps =
build >= 0.5.1, < 1
commands =
python3 -m build --sdist {posargs}