Add basic tox configuration
parent
b7d563f8f5
commit
7ddb93acb9
@ -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
|
@ -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…
Reference in New Issue