[tox]
envlist = py{27,35}

[testenv]
deps = pytest
       coverage
       flake8
commands = flake8 .
           coverage erase
           coverage run --branch --omit='{toxworkdir}/*' -m pytest {posargs:tests}
           coverage html -d htmlcov-{envname}
           coverage report --fail-under=100

[tox]
envlist = py{27,35}

[testenv]
deps = pytest
       coverage
       flake8
       xenon
commands = flake8 {toxinidir}
           xenon -mA -bA {toxinidir}
           coverage erase
           coverage run --branch --omit='{toxworkdir}/*' -m pytest {posargs:tests}
           coverage html -d htmlcov-{envname}
           coverage report --fail-under=100

Use xenon for checking code complexity.
Use xenon for checking code complexity.
