From dc1b609809a5919de0075dc64f36eb043073c59a Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 28 Jan 2017 11:19:27 +0100 Subject: check flake8 and docs --- tox.ini | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 6b002a6..5665037 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,py34,py35,py36 +envlist = py27,py34,py35,py36,pep8py2,pep8py3,doc skip_missing_interpreters = true [testenv] @@ -7,3 +7,34 @@ commands = {envpython} setup.py test deps = lxml + +[testenv:pep8py2] +basepython = python2.7 +deps = + flake8 +commands = + {envpython} -m flake8 + +[testenv:pep8py3] +basepython = python3 +deps = + flake8 +commands = + {envpython} -m flake8 + +[testenv:doc] +basepython = python3 +deps = + docutils +commands = + python setup.py check --restructuredtext --metadata --strict + +[pytest] +norecursedirs = build .tox +python_files = tests.py + +[flake8] +exclude = .tox,*.egg,dist,build,other +show-source = true +ignore = E402, F811 +max-line-length = 98 -- cgit v1.2.1