From 04c44761d2d84960e1731848f44df8567a46aa3e Mon Sep 17 00:00:00 2001 From: lorenzo Date: Thu, 29 Aug 2024 11:05:56 +0200 Subject: [PATCH] cleanup pytest cov config --- pyproject.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index aa32a43..b303561 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -127,6 +127,17 @@ pretty = true minversion = "7.0" testpaths = ["tests"] filterwarnings = ["error"] +addopts = [ + "--cov=src/ngio", + "--cov-report=term-missing", + "--cov-report=xml", + ] + +[tool.coverage.run] +omit = [ + "src/ngio/core/handler_protocol.py", # This is file only contains a protocol definition + "src/ngio/ngff_meta/_meta_handler_protocol.py", # This is file only contains a protocol definition + ] # https://github.com/mgedmin/check-manifest#configuration # add files that you want check-manifest to explicitly ignore here