forked from pytest-dev/pluggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1.24 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist=linting,docs,py{27,34,35,36,py,py3}-pytestrelease,py{27,36}-pytest{master,features}
[testenv]
commands=
{env:_PLUGGY_TOX_CMD:pytest} {posargs}
coverage: coverage report -m
coverage: coverage xml
setenv=
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
coverage: _PLUGGY_TOX_CMD=coverage run -m pytest
deps=
pytestrelease: pytest
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
coverage: coverage
[testenv:benchmark]
commands=pytest {posargs:testing/benchmark.py}
deps=
pytest
pytest-benchmark
[testenv:linting]
skip_install = true
basepython = python3.6
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps =
sphinx
pygments
commands =
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/build/html-docs
[pytest]
minversion=2.0
testpaths = testing
#--pyargs --doctest-modules --ignore=.tox
addopts=-ra
filterwarnings =
error
[flake8]
max-line-length=99
[testenv:release]
decription = do a release, required posarg of the version number
basepython = python3.6
skipsdist = True
usedevelop = True
passenv = *
deps =
colorama
gitpython
towncrier
commands = python scripts/release.py {posargs}