From 2b3af43fbde4769bb996de86ab6c85652f5d13e7 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 6 Mar 2024 15:42:30 +0100 Subject: [PATCH] show coverage --- integrations/ollama/pyproject.toml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/integrations/ollama/pyproject.toml b/integrations/ollama/pyproject.toml index e3bb738b6..17c9d46b2 100644 --- a/integrations/ollama/pyproject.toml +++ b/integrations/ollama/pyproject.toml @@ -157,20 +157,17 @@ ban-relative-imports = "parents" [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true - - -[tool.coverage.paths] -ollama_haystack = ["src/haystack_integrations", "*/ollama-haystack/src"] -tests = ["tests", "*/ollama-haystack/tests"] +parallel = false [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ - "no cov", - "if __name__ == .__main__.:", - "if TYPE_CHECKING:", + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", ] [tool.pytest.ini_options]