Add basic tox configuration

pull/18/head
Eric Holscher 9 years ago
parent b7d563f8f5
commit 7ddb93acb9

5
.gitignore vendored

@ -3,9 +3,10 @@
*.swp
.doctrees
_build_rtd
docs/_build
_build
docs/autoapi
readthedocs_build
tests/*/_build
tests/*/autoapi
_api_
.tox
.eggs

@ -0,0 +1,20 @@
strictness: low
test-warnings: false
doc-warnings: true
pep8:
full: true
options:
max-line-length: 100
pylint:
max-line-length: 100
disable:
- logging-format-interpolation
mccabe:
run: false
pep257:
run: false

@ -5,3 +5,6 @@ wheel==0.24.0
sphinx==1.3.1
sphinxcontrib-golangdomain
sphinxcontrib-dotnetdomain
pytest
mock
tox

@ -0,0 +1,31 @@
[tox]
envlist = py27,lint,docs
skipsdist = True
[testenv]
setenv =
LANG=C
deps = -r{toxinidir}/requirements.txt
commands =
python setup.py test
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}
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
commands =
prospector \
--profile-path={toxinidir} \
--profile=prospector \
--die-on-tool-error
Loading…
Cancel
Save