From ba8c0a9fa8c8393764ad7543b83c62539e19b198 Mon Sep 17 00:00:00 2001 From: Dan F-M Date: Sun, 14 Feb 2021 15:03:33 -0500 Subject: [PATCH] coveragerc --- .coveragerc | 4 +++- .github/workflows/tests.yml | 2 +- pyproject.toml | 3 --- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.coveragerc b/.coveragerc index 4a0d5d0a..d422c294 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,8 +1,10 @@ -[report] +[run] omit = docs/* *__init__* +relative_files = true +[report] exclude_lines = pragma: no cover raise NotImplementedError diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8807372a..959164d9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: uses: ilammy/msvc-dev-cmd@v1 - name: Install dependencies run: | - python -m pip install -U pip pytest pytest-cov coverage[toml] + python -m pip install -U pip pytest pytest-cov python -m pip install . env: DISTUTILS_USE_SDK: 1 diff --git a/pyproject.toml b/pyproject.toml index bb30ea48..b00d51f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,3 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] write_to = "src/george/george_version.py" - -[tool.coverage.run] -relative_files = true