forked from Yelp/bravado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (42 loc) · 1.21 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
[tox]
envlist = {py27,py35,py36}-{default,fido}, {py27,py35,py36}-fido-requests2dot7, flake8
[testenv]
deps =
-rrequirements-dev.txt
fido: .[fido]
requests2dot7: requests<2.8
setenv =
default: PYTEST_ADDOPTS=--ignore=tests/fido_client --ignore=tests/integration/fido_client_test.py
commands =
python -m pytest --capture=no {posargs:tests}
[testenv:flake8]
skip_install = True
basepython = python2.7
deps = flake8
commands =
flake8 bravado tests
[testenv:pre-commit]
deps = pre-commit>=0.12.0
commands = pre-commit {posargs}
[testenv:cover]
deps =
-rrequirements-dev.txt
.[fido]
coverage
commands =
coverage run --source=bravado/ --omit=bravado/__about__.py -m pytest --capture=no --strict {posargs:tests/}
coverage report --omit=.tox/*,tests/*,/usr/share/pyshared/*,/usr/lib/pymodules/* -m
[testenv:docs]
skip_install = True
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 = 120
[pytest]
# tests/petstore/* are temporary and hit the swagger pet store directly.
# disable them when builds are run.
norecursedirs = petstore