diff --git a/.travis.yml b/.travis.yml index 8321ed0e..3a45de3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ install: script: - tox env: + - TOXENV=coveralls + - TOXENV=pylint + - TOXENV=flake8 + - TOXENV=pep257 - TOXENV=py26 - TOXENV=py27 - - TOXENV=coveralls diff --git a/tox.ini b/tox.ini index e59de348..c02b2502 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist= - dev, coveralls, py26, py27 + dev, coveralls, pylint, flake8, pep257, py26, py27 [testenv] deps= @@ -27,6 +27,27 @@ commands= coverage run --rcfile=./.coveragerc -m unittest2 discover tests [] coveralls +[pylint] +basepython=python2.7 +deps= + pylint +commands= + pylint -f colorized --rcfile=./.pylintrc objects + +[flake8] +basepython=python2.7 +deps= + flake8 +commands= + flake8 --max-complexity=8 objects + +[pep257] +basepython=python2.7 +deps= + pep257 +commands= + pep257 objects + [testenv:py26] commands= unit2 discover tests []