-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (46 loc) · 831 Bytes
/
tox.ini
File metadata and controls
54 lines (46 loc) · 831 Bytes
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
[tox]
envlist = py38,py39,py310,py311,py312,pypy3,docs,ruff,mypy,sphinx
isolated_build = True
[testenv]
deps =
pytest
pytest-benchmark
commands =
py.test --doctest-glob="" tests {posargs}
[testenv:docs]
deps =
py
pytest
commands =
py.test --doctest-glob="*.rst" --doctest-glob="README.rst" README.rst docs/
[testenv:benchmark]
deps =
py
pytest-benchmark
commands =
py.test -m benchmark
[testenv:ruff]
skip_install = True
deps = ruff
commands=
ruff check .
ruff format --diff .
[testenv:pyright]
deps =
py
pyright
pytest
commands = pyright src tests docs
[testenv:mypy]
skip_install = True
deps =
mypy
types-setuptools
commands=
mypy --pretty
[testenv:sphinx]
allowlist_externals = make
deps =
-r docs/requirements.txt
commands =
make -C docs html