-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathtox.ini
More file actions
90 lines (85 loc) · 2.02 KB
/
tox.ini
File metadata and controls
90 lines (85 loc) · 2.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[tox]
env_list =
py310
py311
py312
py313
py314
pypy3
coverage
pre-commit
isolated_build = true
skip_missing_interpreters = true
skipsdist = true
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
pypy-3.11: pypy3
[testenv]
description = Run the test suite using pytest under {basepython}
deps =
charset_normalizer
coverage[toml]
mock
pytest
pytest-cov
pytest-order
tomli
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
commands =
pip install -U pip
pip install --prefix={toxworkdir}/{envname} -e .[tomli]
pytest -s -x -c {toxinidir}/pyproject.toml \
-m unit \
--cache-clear \
--cov=docformatter \
--cov-config={toxinidir}/pyproject.toml \
--cov-branch \
{toxinidir}/tests/
pytest -s -x -c {toxinidir}/pyproject.toml \
-m integration \
--cache-clear \
--cov=docformatter \
--cov-config={toxinidir}/pyproject.toml \
--cov-branch \
{toxinidir}/tests/
pytest -s -x -c {toxinidir}/pyproject.toml \
-m system \
--cache-clear \
--cov=docformatter \
--cov-config={toxinidir}/pyproject.toml \
--cov-branch \
--cov-append \
{toxinidir}/tests/
[testenv:coverage]
description = combine coverage data and create report
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
skip_install = true
deps =
coverage[toml]
parallel_show_output = true
commands =
coverage combine
coverage report -m
coverage xml -o {toxworkdir}/coverage.xml
depends = py310, py311, py312, py313, py314, pypy3
[testenv:pre-commit]
description = Run autoformatters and quality assurance tools under {basepython}.
deps =
pre-commit
commands =
{envpython} -m pre_commit run \
--color=always \
--show-diff-on-failure \
{posargs:--all-files}
[testenv:docs]
description = build docformatter documentation
allowlist_externals = make
changedir = docs
commands = make html