mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Add PyLint, flake8 and pep257 configs to tox and travis
This commit is contained in:
parent
13ce4e0ea5
commit
83f9845f59
|
@ -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
23
tox.ini
|
@ -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 []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user