From 74fab1a00e9011c9e04089354892fee15e23d803 Mon Sep 17 00:00:00 2001 From: Matthew Seal Date: Sun, 26 Aug 2018 09:45:03 -0400 Subject: [PATCH] Fixed coverage to correclty exclude version and tests --- .coveragerc | 17 ----------------- setup.cfg | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 8d1eb015..00000000 --- a/.coveragerc +++ /dev/null @@ -1,17 +0,0 @@ -[run] -branch = False -omit = - papermill/tests/* - papermill/_version.py - -[report] -exclude_lines = - if self.debug: - pragma: no cover - raise NotImplementedError - if __name__ == .__main__.: -ignore_errors = True -omit = - papermill/tests/* - */site-packages/* - papermill/_version.py diff --git a/setup.cfg b/setup.cfg index db7a2d95..f5e18ec0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,3 +31,17 @@ versionfile_source = papermill/_version.py versionfile_build = papermill/_version.py tag_prefix = parentdir_prefix = papermill- + +[coverage:run] +branch = False +omit = papermill/tests/*,papermill/_version.py + +[coverage:report] +exclude_lines = + if self\.debug: + pragma: no cover + raise AssertionError + raise NotImplementedError + if __name__ == .__main__.: +ignore_errors = True +omit = papermill/tests/*,papermill/_version.py