-
Notifications
You must be signed in to change notification settings - Fork 147
/
tox.ini
52 lines (44 loc) · 1 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
# 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.
[tox]
envlist = py38, py39, py310, py311, py312, py313, pypy39, pypy310, lint
[pytest]
minversion = 2.8
testpaths = tests
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint, docs
3.13: py313
pypy-3.9: pypy39
pypy-3.10: pypy310
[testenv]
extras = export
deps =
coverage
mock
pytest
commands = coverage run -m pytest {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands = coverage report
[testenv:lint]
passenv = RUFF_OUTPUT_FORMAT
deps = ruff
skip_install = true
commands = ruff check {posargs}
[testenv:docs]
extras = docs
changedir = doc
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html