-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
tox.ini
76 lines (69 loc) · 1.6 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
# The following list of Python versions appears in several places in this file.
#
# {3.9, 3.10, 3.11, 3.12, 3.13}
#
# This affects parallel test suite execution and wheels that get built,
# so use search-and-replace to update this list in all locations.
# Manual editing may lead to mistakes.
[tox]
envlist =
pylint
coverage_erase
py{3.9, 3.10, 3.11, 3.12, 3.13}
coverage_report
docs
skip_missing_interpreters = True
labels =
build=build-py{3.9, 3.10, 3.11, 3.12, 3.13}
[testenv:coverage_erase]
description = Erase existing coverage reports
skip_install = True
deps =
coverage
commands =
- coverage erase
[testenv]
depends =
py{3.9, 3.10, 3.11, 3.12, 3.13}: coverage_erase
deps =
-r{toxinidir}/dev-requirements.txt
commands =
coverage run -m pytest
[testenv:coverage_report{,-ci}]
depends = py{3.9, 3.10, 3.11, 3.12, 3.13}
description =
!ci: Generate HTML and console reports
ci: Generate an XML report
skip_install = True
deps =
coverage
commands_pre =
- coverage combine
commands =
# Locally, generate an HTML and a console report
!ci: - coverage html
!ci: coverage report
# In CI, simply generate an XML report
ci: - coverage xml
[testenv:build,build-py{3.9, 3.10, 3.11, 3.12, 3.13}]
description = Build sdist and wheel files
skip_install = True
deps =
build
commands =
python -m build
[testenv:pylint]
deps =
pylint
commands =
pylint smartcard
[testenv:docs]
skip_install = True
recreate = True
deps =
-e.
sphinx
pydoctor
commands =
sphinx-build -nWEab html --keep-going src/smartcard/doc build/docs
pydoctor