From 35016b23a07765fa0196d86a31b0e3d617ff49e4 Mon Sep 17 00:00:00 2001 From: "K.-Michael Aye" <69774+michaelaye@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:57:21 +0100 Subject: [PATCH] Update .coveragerc to include source directory and exclude additional files from coverage report. --- .coveragerc | 13 ++++++++++--- README.rst | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.coveragerc b/.coveragerc index 582eaa4..ccd0cb1 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,11 @@ [run] -omit = - # ignore all test modules - tests/* +source = src/planetarypy +omit = + tests/* + setup.py + +[report] +exclude_lines = + pragma: no cover + def __repr__ + if __name__ == .__main__.: diff --git a/README.rst b/README.rst index 35958de..1f57d94 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,7 @@ planetarypy .. image:: https://codecov.io/gh/planetarypy/planetarypy/branch/main/graph/badge.svg :target: https://codecov.io/gh/planetarypy/planetarypy + Core package for planetary science tools. Warning