-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (39 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
# Note that we are running all the defined tests on ci (see .pipeline/blubber.yaml)
# use tox -e ALL to run all the tests locally
[tox]
minversion = 2.5.0
envlist = py{39,311,312}
skip_missing_interpreters = True
skipsdist = True
[testenv]
skip_install = True
description =
py39: (Python 3.9)
py311: (Python 3.11)
py312: (Python 3.12)
envdir = {toxworkdir}/{envname}-tests
deps =
pytest
pyyaml
requests
# allow parallel tests
pytest-xdist
commands =
pytest -n auto -m 'not ci' {posargs}
[testenv:ci_only]
commands =
pytest -n auto -m ci {posargs}
[testenv:format]
description =
black: code formatter
isort: sort imports
py39: (Python 3.9)
py311: (Python 3.11)
py312: (Python 3.12)
envdir = {toxworkdir}/{envname}-format
deps =
black
isort
commands =
isort --check --line-width 88 --skip-glob '.tox' --skip-glob '.eggs' .
black --check --line-length 88 --exclude '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)/' .