7f78455376
Change-Id: I37ee7e10aa5cf1a1eb8f487622770f5f39b16f7e
36 lines
807 B
INI
36 lines
807 B
INI
[tox]
|
|
minversion = 2.7
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
description = Runs set of linters against codebase (checkniceness)
|
|
commands = {[testenv:checkniceness]commands}
|
|
|
|
[testenv:checkniceness]
|
|
description = Validates (pep-like) documenation
|
|
skip_install = True
|
|
usedevelop = False
|
|
commands = doc8 --file-encoding utf-8 {toxinidir}/doc
|
|
|
|
[testenv:spelling]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
sphinxcontrib-spelling
|
|
PyEnchant
|
|
commands = sphinx-build -b spelling doc/source doc/build/spelling
|