-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (39 loc) · 818 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
33
34
35
36
37
38
39
40
41
42
43
[tox]
envlist =
py39
py310
py311
py312
py313
lint
docs
cov
[testenv]
commands = coverage run --context={envname} -m pytest {posargs}
setenv =
COVERAGE_FILE=.coverage.{envname}
deps =
-r tests/requirements-test.txt
[testenv:cov]
depends =
py{39,310,311,312,313}
skip_install = True
setenv =
commands =
coverage combine
coverage xml
deps =
-r tests/requirements-cov.txt
[testenv:lint]
skip_install = True
commands =
flake8 {posargs:src/ tests/}
black --check {posargs:src/ tests/}
isort --check-only --diff {posargs:src/ tests/}
mypy
deps =
-r tests/requirements-lint.txt
[testenv:docs]
commands = sphinx-build -d "{toxinidir}/docs_doctree" "{toxinidir}/docs/" "{toxinidir}/docs/_build" -W {posargs}
deps =
-r tests/requirements-docs.txt