diff --git a/.covrc b/.covrc new file mode 100644 index 0000000..43c5fd7 --- /dev/null +++ b/.covrc @@ -0,0 +1,3 @@ +[run] +omit = + kafka/vendor/* diff --git a/tox.ini b/tox.ini index e98fcbb..817b57b 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =