[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]
deps =
  {[testenv]deps}
commands =
  flake8
  # sh ./tools/coding-checks.sh --pylint '{posargs}'

[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"
whitelist_externals = bash

Add PO/POT format check to pep8
Add PO/POT format check to pep8

Also cleans up unnecessary contents in tox.ini.

Change-Id: I8f630f32286fa6c2d3ab58e07d135f8e26b3c36d
