Add PyLint, flake8 and pep257 configs to tox and travis

This commit is contained in:
Roman Mogilatov 2015-03-18 15:53:08 +02:00
parent 13ce4e0ea5
commit 83f9845f59
2 changed files with 26 additions and 2 deletions

View File

@ -4,6 +4,9 @@ install:
script: script:
- tox - tox
env: env:
- TOXENV=coveralls
- TOXENV=pylint
- TOXENV=flake8
- TOXENV=pep257
- TOXENV=py26 - TOXENV=py26
- TOXENV=py27 - TOXENV=py27
- TOXENV=coveralls

23
tox.ini
View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist= envlist=
dev, coveralls, py26, py27 dev, coveralls, pylint, flake8, pep257, py26, py27
[testenv] [testenv]
deps= deps=
@ -27,6 +27,27 @@ commands=
coverage run --rcfile=./.coveragerc -m unittest2 discover tests [] coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
coveralls 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] [testenv:py26]
commands= commands=
unit2 discover tests [] unit2 discover tests []