[tox]
minversion = 1.6
envlist = pep8

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
setenv = VIRTUAL_ENV={envdir}
sitepackages = False

[testenv:pep8]
commands =
    flake8 openstackdocstheme

[testenv:venv]
commands = {posargs}

[testenv:docs]
commands = python setup.py build_sphinx

[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[flake8]
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
show-source = True

[tox]
minversion = 1.6
envlist = linters

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
setenv = VIRTUAL_ENV={envdir}
sitepackages = False

[testenv:linters]
commands =
    flake8 openstackdocstheme

[testenv:venv]
commands = {posargs}

[testenv:docs]
commands = python setup.py build_sphinx

[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[flake8]
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
show-source = True

Rename pep8 to linters test
Rename pep8 to linters test

The pep8 tests often does more than calling pep8, rename it to use the new
linters standard job for all lint like jobs.

Change-Id: I5b8ce374b1c4de88dea0a44ee89c6b91690759df
Depends-On: I7cf4766642dc3e7d7652e6d26ab2f14f9fcd7861
