-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (60 loc) · 1.21 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
[tox]
min_version = 4.23.2
envlist =
lint
3.{10,11,12,13}
docs
requires =
flit >= 3.9.0,<4.0
pip >= 24.3.1
opts =
--verbose
[gh]
python =
3.10 = py3.10-coveralls
3.11 = py3.11-coveralls
3.12 = py3.12-coveralls
3.13 = py3.13-coveralls
[testenv:lint]
skip_install = True
deps =
black ==24.10.0
blackdoc ==0.3.9
isort ==5.13.2
flake8 >=7.1.1
flake8-rst-docstrings >=0.3.0
ruff >=0.8.2
numpydoc >=1.8.0
commands =
make lint
allowlist_externals =
make
[testenv:docs]
extras =
docs
commands =
make autodoc
make --directory=docs clean html
allowlist_externals =
make
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv =
COVERALLS_*
GITHUB_*
extras =
dev
download = True
install_command = python -m pip install --no-user {opts} {packages}
deps =
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands_pre =
pip list
pip check
commands =
pytest {posargs}
; Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
coveralls: - coveralls