Dont include kafka.vendor in coverage

This commit is contained in:
Dana Powers 2016-08-04 15:39:29 -07:00
parent c061b9b648
commit 8d19caeb36
2 changed files with 6 additions and 3 deletions

3
.covrc Normal file
View File

@ -0,0 +1,3 @@
[run]
omit =
kafka/vendor/*

View File

@ -21,18 +21,18 @@ deps =
xxhash
py26: unittest2
commands =
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka}
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka --cov-config=.covrc}
setenv =
PROJECT_ROOT = {toxinidir}
passenv = KAFKA_VERSION
[testenv:py26]
# pylint doesn't support python2.6
commands = py.test {posargs:--cov=kafka}
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
[testenv:pypy]
# pylint is super slow on pypy...
commands = py.test {posargs:--cov=kafka}
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
[testenv:docs]
deps =