-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (31 loc) · 675 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
[tox]
envlist=docs,py{38,39,310,311,py3}
[testenv]
commands=
pytest {posargs}
coverage: coverage report -m
coverage: coverage xml
setenv=
coverage: coverage run -m pytest
extras=testing
deps=
coverage: coverage
[testenv:benchmark]
commands=pytest {posargs:testing/benchmark.py}
deps=
pytest
pytest-benchmark
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/build/html-docs {posargs:}
usedevelop = True
[pytest]
minversion=2.0
testpaths = tests
pytester_example_dir = tests/sample-projects
norecursedirs = sample-projects
addopts = -p pytester -r a
[flake8]
max-line-length=120