-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
134 lines (113 loc) · 2.35 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[tox]
requires =
# Pin virtualenv to the last version supporting 2.7 and 3.6
virtualenv<=20.21.1
pip<23.2
ignore_basepython_conflict = True
envlist =
lint
copyright
coverage
docs
py27
py3{12,11,10,9,8,7,6,5}
pypy{27,310}
[base]
deps =
blessed
prefixed
py{27,py27}: backports.functools-lru-cache
[ipython]
deps =
ipykernel
ipython
nbconvert
nbformat
[testenv]
basepython = python3.13
usedevelop = True
download=True
ignore_errors = True
deps =
{[base]deps}
py{27,py27}: mock
commands =
{envpython} -m unittest discover -s {toxinidir}/tests {posargs}
[testenv:flake8]
skip_install = True
deps =
flake8
commands =
flake8
[testenv:pylint]
skip_install = True
ignore_errors = True
deps =
{[base]deps}
{[ipython]deps}
pylint
pyenchant
commands =
pylint enlighten setup setup_helpers tests examples benchmarks
[testenv:nbqa]
skip_install = True
ignore_errors = True
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
coverage
nbqa
commands =
nbqa flake8 tests
nbqa pylint tests
[testenv:copyright]
skip_install = True
ignore_errors = True
commands =
{envpython} setup_helpers.py copyright
[testenv:lint]
skip_install = True
ignore_errors = True
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:nbqa]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:nbqa]commands}
[testenv:specialist]
basepython = python3.11
skip_install = True
ignore_errors=True
deps =
{[base]deps}
specialist >= 0.2.1
commands =
{envpython} -m specialist --output {toxinidir}/.specialist --targets enlighten/*.py -m unittest discover -s {toxinidir}/tests {posargs}
[testenv:coverage]
passenv =
CI
CODECOV_*
GITHUB_*
deps =
{[base]deps}
{[ipython]deps}
coverage
commands =
coverage erase
coverage run -p -m unittest discover -s {toxinidir}/tests {posargs}
coverage combine
coverage xml
coverage report
[testenv:docs]
deps =
sphinx
sphinxcontrib-spelling
sphinx_rtd_theme
commands=
{envpython} setup_helpers.py spelling-clean
sphinx-build -vWEa --keep-going -b spelling doc build/doc
{envpython} setup_helpers.py spelling
sphinx-build -vWEa --keep-going -b html doc build/doc
{envpython} setup_helpers.py rst2html README.rst