From bedabae6af08e0d13e0a9c61516958ac505f1df5 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Fri, 18 Jul 2025 07:14:14 +0200 Subject: [PATCH] Exclude tests from coverage --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 63876722..f11e2e5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,3 +84,17 @@ doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS" env = "PYTHONHASHSEED=0" filterwarnings = ["ignore::DeprecationWarning"] junit_family = "xunit2" + +[tool.coverage.run] +branch = true +omit = [ + "*/tests/*", + "nitransforms/conftest.py", + "nitransforms/patched.py", +] + +[tool.coverage.report] +exclude_lines = [ + "raise NotImplementedError", + "warnings\\.warn", +]