-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (52 loc) · 1.06 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
[tox]
requires =
tox>=4.4
env_list =
py3{8,9,10,11}
skip_missing_interpreters = true
[testenv]
set_env =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.cov{/}.coverage.{envname}}
extras =
test
commands =
python -m pytest --cov-report=html:{toxworkdir}{/}.cov{/}htmlcov.{envname} {posargs}
package = wheel
wheel_build_env = .pkg
[testenv:docs]
deps =
-r {toxinidir}{/}docs{/}requirements.txt
commands =
python {toxinidir}{/}docs{/}release.py --clean --dist
skip_install = true
system_site_packages = true
[pytest]
addopts = -v --cov --cov-context=test --cov-report=html
required_plugins =
hypothesis
pytest-cov
testpaths =
tests
filterwarnings =
error
xfail_strict = true
[coverage:run]
branch = true
source =
clixx
tests
[coverage:paths]
source =
src
*/site-packages
[coverage:report]
exclude_lines =
pragma: no cover
assert_never\(.*\)
raise AssertionError
raise NotImplementedError
return NotImplemented
if __name__ == .__main__.:
if TYPE_CHECKING:
[coverage:html]
show_contexts = true