-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
66 lines (60 loc) · 1.42 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
[tox]
envlist = py3.9, py3.10, py3.11, py3.12, py3.13, no-optionals, coverage, plugin, lint, docs
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
extras =
all
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 {posargs}
[testenv:no-optionals]
basepython = python3
extras =
commands =
pytest {posargs}
[testenv:coverage]
basepython = python3
changedir = {toxinidir}
commands =
pytest --cov --cov-config={toxinidir}/pyproject.toml tests/
coverage xml
coverage html
[testenv:plugin]
deps =
{[testenv]deps}
plugin/
changedir = {toxinidir}/plugin
commands =
pytest {posargs}
[testenv:lint]
skip_install = true
ignore_errors = true
basepython = python3
changedir = {toxinidir}
allowlist_externals = ruff, typos
commands =
mypy --html-report htmlmypy --cobertura-xml . --strict --exclude build --exclude plugin/tests .
ruff format --check
ruff check
typos
[testenv:docs]
deps =
textual-dev
{[testenv]deps}
skip_install = true
basepython = python3
changedir = {toxinidir}
allowlist_externals = sed
commands =
pdoc -d google -e cobib=https://gitlab.com/cobib/cobib/-/blob/master/src/cobib/ -t html -o docs ./src/cobib ./plugin/src/cobib_dummy ./tests