From 8d19caeb369698264b01d69874878c5574eeb6c9 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Thu, 4 Aug 2016 15:39:29 -0700 Subject: [PATCH] Dont include kafka.vendor in coverage --- .covrc | 3 +++ tox.ini | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .covrc 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 =