-
Notifications
You must be signed in to change notification settings - Fork 35
/
tox.ini
65 lines (59 loc) · 1.88 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
# ----------------------------------------------------------------------
# rainbow, a terminal colorizer - https://github.com/nicoulaj/rainbow
# copyright (c) 2010-2018 rainbow contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------
[tox]
envlist = py36,py37,py38,py39,py310,pypy3,benchmarks,lint
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
pypy-3.6: pypy3
pypy-3.7: pypy3
pypy-3.8: pypy3
pypy-3.9: pypy3
pypy-3.10: pypy3
[pytest]
flake8-max-line-length = 120
pep8ignore = E501
[testenv]
extras = build,test
commands = py.test \
--color=yes \
--basetemp {envtmpdir} \
--timeout=600 \
--html=build/tests/{envname}/reports/tests.html \
--cov rainbow \
--cov-report term \
--cov-report html:build/tests/{envname}/reports/coverage \
--cov-report xml:build/tests/{envname}/reports/coverage.xml \
--benchmark-skip
[testenv:lint]
commands = flake8 .
[testenv:benchmarks]
commands = py.test \
--color=yes \
--basetemp {envtmpdir} \
--benchmark-only \
--benchmark-verbose \
--benchmark-autosave \
--benchmark-save-data \
--benchmark-min-time=0.01 \
--benchmark-storage=build/tests/{envname}/benchmarks \
--benchmark-histogram=build/tests/{envname}/benchmarks/histogram