-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathtox.ini
79 lines (70 loc) · 1.46 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
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
73
74
75
76
77
78
79
[tox]
min_version = 4.0
envlist = flake8, py{38,39,310,311,312,313,314,py3}, ep{44,45,46}, docs,
mypy-py{38,39,310,311,312,313,314,py3}, coverage, pytest
skip_missing_interpreters = true
work_dir = {tox_root}/../.tox/xmlschema
[testenv]
deps =
elementpath>=4.5.0, <5.0.0
lxml
jinja2
py312: memory_profiler
docs: Sphinx
docs: sphinx_rtd_theme
coverage: coverage
commands =
python -m unittest
[testenv:ep{44,45,46}]
deps =
lxml
jinja2
ep44: elementpath~=4.4
ep45: elementpath~=4.5
ep46: elementpath~=4.6
[testenv:docs]
commands =
make -C doc html SPHINXOPTS="-W -n"
make -C doc latexpdf SPHINXOPTS="-W -n"
make -C doc doctest SPHINXOPTS="-W -n"
sphinx-build -W -n -T -b man doc build/sphinx/man
allowlist_externals = make
[flake8]
max-line-length = 100
[testenv:flake8]
deps =
flake8
commands =
flake8 xmlschema
flake8 tests
flake8 scripts
[testenv:mypy-py{38,39,310,311,312,313,314,py3}]
deps =
mypy==1.13.0
elementpath==4.6.0
lxml-stubs
jinja2
commands =
mypy --config-file {toxinidir}/mypy.ini xmlschema
python tests/test_typing.py
[testenv:coverage]
commands =
coverage erase
coverage run -a -m unittest
coverage report -m
[testenv:pytest]
deps =
pytest
pytest-randomly
elementpath>=4.5.0, <5.0.0
lxml
jinja2
mypy==1.13.0
lxml-stubs
commands =
pytest tests -ra
[testenv:build]
deps =
build
commands =
python -m build