forked from Yelp/bravado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (35 loc) · 935 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
[tox]
envlist = py26, py27, py34, flake8
[testenv]
deps =
-rrequirements-dev.txt
commands =
py.test --capture=no {posargs:tests}
[testenv:flake8]
deps = flake8
commands =
flake8 bravado tests
[testenv:cover]
deps =
{[testenv]deps}
pytest-cov
commands =
py.test --cov bravado {posargs:tests}
coverage combine
coverage report --omit=.tox/*,tests/*,/usr/share/pyshared/*,/usr/lib/pymodules/* -m
[testenv:docs]
deps =
{[testenv]deps}
sphinx
sphinx-rtd-theme
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,docs,virtualenv_run
max_line_length = 80
# Workaround for bravado/fido_client.py:9:1: E402 module level import not at top of file
ignore = E402
[pytest]
# tests/petstore/* are temporary and hit the swagger pet store directly.
# disable them when builds are run.
norecursedirs = petstore