Clean up tox file

pull/18/head
Eric Holscher 9 years ago
parent 0c1583ac40
commit f9d4d8c18d

@ -31,7 +31,9 @@ def run_autoapi(app):
normalized_dir = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_dir))
if not os.path.exists(normalized_dir):
raise ExtensionError('AutoAPI Directory not found. Please check your `autoapi_dir` setting.')
raise ExtensionError(
'AutoAPI Directory not found. Please check your `autoapi_dir` setting.'
)
normalized_root = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_root))

@ -1,27 +1,20 @@
[tox]
envlist = py27,lint,docs
skipsdist = True
[testenv]
setenv =
LANG=C
deps = -r{toxinidir}/requirements.txt
whitelist_externals = git
commands =
python setup.py test
py.test {posargs}
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}
deps =
{[testenv]deps}
deps = {[testenv]deps}
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
setenv =
PYTHONPATH = {toxinidir}
deps =
{[testenv]deps}
prospector

Loading…
Cancel
Save