[tox]
minversion = 1.6
envlist = py27,py34,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
commands =
  coverage run --branch --include 'delorean*' -m unittest discover delorean.tests
  coverage report -m

[testenv:pep8]
commands = flake8

[testenv:venv]
commands = {posargs}

[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'

[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
# F821 skipped for now, as flake8 is not recognizing session global.
# It would might be better to pass a session around rather than the global.
# rdoinfo skipped as we are changing to rdopkg
# https://review.gerrithub.io/#/c/214249/

show-source = True
ignore = E123,E125,H803,F821
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,rdoinfo.py,*rdoinfo/*,verify.py

[tox]
minversion = 1.6
envlist = py27,py34,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
commands =
  coverage run --branch --include 'delorean*' -m unittest discover delorean.tests
  coverage report -m

[testenv:pep8]
commands = flake8

[testenv:venv]
commands = {posargs}

[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'

[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
# F821 skipped for now, as flake8 is not recognizing session global.
# It would might be better to pass a session around rather than the global.
# rdoinfo skipped as we are changing to rdopkg
# https://review.gerrithub.io/#/c/214249/

show-source = True
ignore = E123,E125,H803,F821
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,rdoinfo.py,*rdoinfo/*,verify.py,data

Exclude the data directory pep8 tests
Exclude the data directory pep8 tests

Change-Id: I846a3a0fb63bde37aabea6f7fe226402d905ee0b
