[tox] minversion = 1.6 envlist = docs,pep8 skipsdist = True [testenv] usedevelop = True setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt [testenv:venv] commands = {posargs} [testenv:docs] basepython = python2 commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pep8] commands = flake8 bash -c "find {toxinidir} -type f \( -name '*.po' -o -name '*.pot' \) -print0 | xargs -0 -n1 --no-run-if-empty msgfmt --check-format -o /dev/null" python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml whitelist_externals = bash