-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
74 lines (68 loc) · 1.43 KB
/
tox.ini
File metadata and controls
74 lines (68 loc) · 1.43 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
[tox]
envlist = py3.10, py3.11, py3.12, py3.13, py3.14, no-optionals, coverage, plugin, lint, docs
[testenv]
extras =
all
test
passenv =
HOME
TERM
GIT_AUTHOR_NAME
GIT_AUTHOR_EMAIL
setenv =
TMPDIR = {envdir}/tmp
COBIB_CONFIG = 0
usedevelop = true
changedir = {toxinidir}/tests
commands =
pytest --basetemp="{envtmpdir}" --junitxml=report-{envname}.xml --snapshot-warn-unused {posargs}
[testenv:no-optionals]
basepython = python3
extras =
test
commands =
pytest --basetemp="{envtmpdir}" --junitxml=report-{envname}.xml --snapshot-warn-unused {posargs}
[testenv:coverage]
basepython = python3
extras =
{[testenv]extras}
coverage
changedir = {toxinidir}
commands =
pytest --cov --cov-config={toxinidir}/pyproject.toml --snapshot-warn-unused tests/
coverage xml
coverage html
[testenv:plugin]
deps =
.
plugin/
changedir = {toxinidir}/plugin
commands =
pip show cobib
pytest --basetemp="{envtmpdir}" --junitxml=report-{envname}.xml --snapshot-warn-unused {posargs}
[testenv:lint]
basepython = python3
deps =
.[lint]
skip_install = true
ignore_errors = true
changedir = {toxinidir}
allowlist_externals = ruff, typos
commands =
mypy {posargs} .
ruff format --check
ruff check
typos
[testenv:docs]
basepython = python3
deps =
.[docs]
skip_install = true
changedir = {toxinidir}
allowlist_externals =
make
sed
mkdir
cp
commands =
make docs