-
Notifications
You must be signed in to change notification settings - Fork 84
/
tox.ini
32 lines (28 loc) · 967 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
31
32
# 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}
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