-
Notifications
You must be signed in to change notification settings - Fork 165
/
tox.ini
136 lines (116 loc) · 2.77 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
135
136
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
#
# To run tests against numpy and pandas, run "tox -e py39-extra,py310-extra"
# from this directory. This will create a much bigger virtual environments
# for testing and it is disabled by default.
[tox]
envlist = lint, py{38, 39, 310, 311, 312, 313}
isolated_build = True
[gh]
python =
3.9: py39-extra
3.10: py310-extra
3.11: py311-extra
3.12: py312-extra
3.13: py313-extra
[testenv]
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
passenv =
CURL_CA_BUNDLE
REQUESTS_CA_BUNDLE
SSL_CERT_FILE
[testenv:lint]
commands = python -m pre_commit run -a
deps =
pre-commit
[testenv:py38]
basepython = python3.8
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py38-extra]
basepython = python3.8
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[testenv:py39]
basepython = python3.9
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py39-extra]
basepython = python3.9
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[testenv:py310]
basepython = python3.10
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py310-extra]
basepython = python3.10
setenv = PYTHONDEVMODE = 1
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[testenv:py311]
basepython = python3.11
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py311-extra]
basepython = python3.11
setenv = PYTHONDEVMODE = 1
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[testenv:py312]
basepython = python3.12
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py312-extra]
basepython = python3.12
setenv = PYTHONDEVMODE = 1
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[testenv:py313]
basepython = python3.13
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
[testenv:py313-extra]
basepython = python3.13
setenv = PYTHONDEVMODE = 1
commands = pytest -v --doctest-modules --ignore benchmark {posargs}
deps =
pytest
numpy
pandas
wcwidth
[flake8]
max-complexity = 22
max-line-length = 99
ignore = E203, W503, C901, E402, B011