-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathtox.ini
112 lines (94 loc) · 2.37 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[tox]
requires =
tox>=4
envlist = py3,py3{8,9,10,11,12},coverage,coveralls,lint
skip_missing_interpreters = True
[testenv]
description = default settings for unspecified tests
skip_install = True
allowlist_externals = poetry
passenv = *
commands_pre =
poetry lock --no-update
poetry install --with=tests
commands =
pytest -v tests --cov=pyDataverse --basetemp={envtmpdir}
[testenv:py3]
[testenv:py38]
basepython = python3.8
[testenv:py39]
basepython = python3.9
[testenv:py310]
basepython = python3.10
[testenv:py311]
basepython = python3.11
[testenv:py312]
basepython = python3.12
[testenv:py313]
basepython = python3.13
[testenv:coverage]
description = create report for coverage
commands =
pytest tests --cov=pyDataverse --cov-report=term-missing --cov-report=xml --cov-report=html
[testenv:coveralls]
description = create reports for coveralls
commands =
pytest tests --doctest-modules -v --cov=pyDataverse
[testenv:lint]
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
ruff check pyDataverse tests
[testenv:mypy]
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
mypy pyDataverse tests
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
commands_pre =
poetry lock --no-update
poetry install --with=docs
commands =
sphinx-build -d pyDataverse/docs/build/docs_doctree pyDataverse/docs/source docs/build/html --color -b html {posargs}
[testenv:pydocstyle]
description = pydocstyle for auto-formatting
commands_pre =
poetry lock --no-update
poetry install --with=docs
commands =
pydocstyle pyDataverse/
pydocstyle tests/
[testenv:radon-mc]
description = Radon McCabe number
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
radon cc pyDataverse/ -a
[testenv:radon-mi]
description = Radon Maintainability Index
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
radon mi pyDataverse/
radon mi tests/
[testenv:radon-raw]
description = Radon raw metrics
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
radon raw pyDataverse/
radon raw tests/
[testenv:radon-hal]
description = Radon Halstead metrics
commands_pre =
poetry lock --no-update
poetry install --with=lint
commands =
radon hal pyDataverse/
radon hal tests/