[tox]
envlist = py27,py26,pypy,flake8
skip_missing_interpreters = true

[testenv]
setenv =
  TOXENV = {envname}
deps =
  pytest
  -rrequirements.txt
commands = py.test {posargs}

[testenv:flake8]
deps =
  flake8
  -rrequirements.txt
commands = flake8

[flake8]
ignore = E501
exclude = ./build

[pytest]
norecursedirs = .* *.egg* venv build
addopts = --doctest-modules --ignore=setup.py --capture=no

[tox]
envlist = py27,py26,pypy,flake8
skip_missing_interpreters = true

[testenv]
setenv =
  TOXENV = {envname}
deps =
  pytest
  -rrequirements.txt
commands = py.test {posargs}

[testenv:flake8]
deps =
  flake8
  -rrequirements.txt
commands = flake8

[flake8]
ignore = E501
exclude = build,dist,.git,.tox

[pytest]
norecursedirs = .* *.egg* venv build
addopts = --doctest-modules --ignore=setup.py --capture=no

Fix exclude paths for flake8 3.0.0
Fix exclude paths for flake8 3.0.0

Before flake8 3.0.0, the .tox directory was excluded by default. With
3.0.0 it needs to be explicitly excluded.
