forked from kpn/py-fqn-decorators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (34 loc) · 1021 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
[pytest]
addopts=--tb=short
[tox]
envlist = isort-check,isort-fix,lint,py27,py35,py36,docs
skipsdist = true
[testenv]
passenv = *
commands =
py.test tests --cov-report=term-missing --cov-report=xml --cov-append --cov=fqn_decorators {posargs}
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:py27]
setenv =
PYTEST_ADDOPTS = --ignore tests/test_fqn_decorators_asynchronous.py
deps =
{[testenv]deps}
[testenv:lint]
basepython = python3.5
commands = flake8 decorators tests --exclude=fqn_decorators/__init__.py
deps = flake8
[testenv:docs]
basepython = python3.5
commands =
python {toxinidir}/docs/apidoc.py -T -M -d 2 -o {toxinidir}/docs/api {toxinidir}/fqn_decorators
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/docs/_build/html
deps =
-rrequirements/requirements-testing.txt
[testenv:isort-check]
commands = isort -rc -c fqn_decorators tests
deps = isort
[testenv:isort-fix]
commands = isort -rc fqn_decorators tests
deps = isort