-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
30 lines (25 loc) · 799 Bytes
/
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
# Tox (https://tox.readthedocs.io/) 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 = py37, py38, py39, py310, py311, py312, py313, pypy38, mypy
requires =
virtualenv<20.22.0
[testenv]
package = wheel
wheel_build_env = .pkg
extras = testing
commands =
python -m unittest discover {posargs}
[testenv:mypy]
extras = mypy
commands =
python -m mypy --strict --exclude conditional/tests {posargs} conditional
python conditional/examples/example.py
[testenv:docs]
extras = docs
commands =
python -m sphinx -a -d docs/_build/doctrees {posargs} docs docs/_build/html
[pytest]
testpaths = conditional/tests