-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathtox.ini
40 lines (35 loc) · 1.12 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
# Tox (https://tox.readthedocs.io/en/latest/) 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.
[flake8]
# NOTE: This is kept in line with Black
# See: https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
max-line-length = 88
[tox]
envlist =
linting
py{39,310,311,312,313,py3}-pytest{74,80,81,82,83,main}
docs
minversion = 4.0
[testenv]
commands = pytest tests/ {posargs}
deps =
pytest-xdist
pytest74: pytest==7.4.*
pytest80: pytest==8.0.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytest83: pytest==8.3.*
pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest
[testenv:linting]
basepython = python3
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
deps = pre-commit>=1.11.0
skip_install = True
[testenv:docs]
basepython = python3
skip_install = True
deps = -r docs/requirements.txt
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html