Skip to content

Commit 8d19cae

Browse files
committed
Dont include kafka.vendor in coverage
1 parent c061b9b commit 8d19cae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.covrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit =
3+
kafka/vendor/*

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ deps =
2121
xxhash
2222
py26: unittest2
2323
commands =
24-
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka}
24+
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka --cov-config=.covrc}
2525
setenv =
2626
PROJECT_ROOT = {toxinidir}
2727
passenv = KAFKA_VERSION
2828

2929
[testenv:py26]
3030
# pylint doesn't support python2.6
31-
commands = py.test {posargs:--cov=kafka}
31+
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
3232

3333
[testenv:pypy]
3434
# pylint is super slow on pypy...
35-
commands = py.test {posargs:--cov=kafka}
35+
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
3636

3737
[testenv:docs]
3838
deps =

0 commit comments

Comments
 (0)