From 180c5d840272bef70b5f7b6c94851c6e330539af Mon Sep 17 00:00:00 2001 From: William Ting Date: Tue, 3 May 2016 23:24:29 -0700 Subject: [PATCH] Exclude vendorized argparse lib from coverage report. --- Makefile | 4 ++-- tox.ini | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a9603be..e828f0a 100644 --- a/Makefile +++ b/Makefile @@ -40,11 +40,11 @@ tar: test: pre-commit @find . -type f -iname '*.py[co]' -delete - tox + @tox test-fast: pre-commit @find . -type f -iname '*.py[co]' -delete - tox -e py27 + @tox -e py27 clean: @find . -type f -iname '*.py[co]' -delete diff --git a/tox.ini b/tox.ini index e2542fb..26e8b83 100644 --- a/tox.ini +++ b/tox.ini @@ -18,7 +18,8 @@ deps = ipython pytest commands = - coverage run --source=bin/ -m py.test -rxs --tb native -s --strict {posargs:tests} + coverage run --source=bin/ --omit=bin/autojump_argparse.py -m \ + py.test -rxs --tb native -s --strict {posargs:tests} coverage report -m