forked from Yelp/swagger_spec_validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (31 loc) · 821 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 = {py27,py35,py36}-{default,simplejson},pre-commit,cover
[testenv]
deps =
-rrequirements-dev.txt
simplejson: simplejson
commands =
py.test {posargs:tests}
[testenv:pre-commit]
deps =
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:cover]
deps =
-rrequirements-dev.txt
coverage
commands =
coverage run --source=swagger_spec_validator/ --omit=swagger_spec_validator/__about__.py -m pytest --capture=no --strict {posargs:tests/}
coverage report --omit=.tox/*,tests/*,/usr/share/pyshared/*,/usr/lib/pymodules/* -m
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[flake8]
exclude = .tox,virtualenv_*,docs
ignore = E501