[tox]
envlist = py{26,27,34,35,36,37,py,py3},flake8,docs
skip_missing_interpreters = True

[testenv]
deps = nose
       coverage
commands = nosetests
setenv=
    PYTHONWARNINGS=all

[testenv:py26]
basepython = python2.6
usedevelop = True
commands = nosetests --ignore-file="test_.*.py"

[testenv:flake8]
skip_install = true
deps = flake8
       flake8-author
       flake8-blind-except
       py{35,36,37}: flake8-bugbear
       flake8-class-newline
       flake8-commas
       flake8-deprecated
       flake8-docstrings
       flake8-exact-pin
       flake8-isort
       flake8-print
       flake8-quotes
       flake8-tidy-imports
       flake8-tuple
       pep8-naming
       # Keep the following until this is fixed:
       # https://gitlab.com/pycqa/flake8-docstrings/issues/36
       pydocstyle<4
commands = flake8 stdnum tests update *.py

[testenv:docs]
deps = Sphinx
commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W

[tox]
envlist = py{26,27,34,35,36,37,py,py3},flake8,docs
skip_missing_interpreters = True

[testenv]
deps = nose
       coverage
commands = nosetests
setenv=
    PYTHONWARNINGS=all

[testenv:py26]
basepython = python2.6
usedevelop = True
commands = nosetests --ignore-file="test_.*.py"

[testenv:flake8]
skip_install = true
deps = flake8
       flake8-author
       flake8-blind-except
       py{35,36,37}: flake8-bugbear
       flake8-class-newline
       flake8-commas
       flake8-deprecated
       flake8-docstrings
       flake8-exact-pin
       flake8-isort
       flake8-print
       flake8-quotes
       flake8-tidy-imports
       flake8-tuple
       pep8-naming
commands = flake8 stdnum tests update *.py

[testenv:docs]
deps = Sphinx
commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W

Drop pinning of pydocstyle now flake8-docstrings has been fixed
Drop pinning of pydocstyle now flake8-docstrings has been fixed

Reverts 61c762d
