diff --git a/integrations/astra/pyproject.toml b/integrations/astra/pyproject.toml index 0e52d1e62..8b0dd4f30 100644 --- a/integrations/astra/pyproject.toml +++ b/integrations/astra/pyproject.toml @@ -158,24 +158,21 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["haystack_integrations", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true -omit = [ - "example" -] +parallel = false -[tool.coverage.paths] -astra_haystack = ["src"] -tests = ["tests"] [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [tool.pytest.ini_options] minversion = "6.0" markers = [ diff --git a/integrations/chroma/pyproject.toml b/integrations/chroma/pyproject.toml index 90e037942..2cfcbea20 100644 --- a/integrations/chroma/pyproject.toml +++ b/integrations/chroma/pyproject.toml @@ -160,24 +160,21 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true -omit = [ - "example" -] +parallel = false -[tool.coverage.paths] -chroma_haystack = ["src/haystack_integrations", "*/chroma-haystack/src/chroma_haystack"] -tests = ["tests"] [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [tool.pytest.ini_options] minversion = "6.0" markers = [ diff --git a/integrations/cohere/pyproject.toml b/integrations/cohere/pyproject.toml index 4b612aca5..523bfa918 100644 --- a/integrations/cohere/pyproject.toml +++ b/integrations/cohere/pyproject.toml @@ -128,19 +128,20 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -cohere_haystack = [ - "src/haystack_integrations", - "*/cohere/src/haystack_integrations", -] -tests = ["tests", "*/cohere/tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/deepeval/pyproject.toml b/integrations/deepeval/pyproject.toml index 7ccf4766c..18a873b34 100644 --- a/integrations/deepeval/pyproject.toml +++ b/integrations/deepeval/pyproject.toml @@ -131,19 +131,20 @@ ban-relative-imports = "all" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -deepeval_haystack = [ - "src/haystack_integrations", - "*/deepeval-haystack/src/deepeval_haystack", -] -tests = ["tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/elasticsearch/pyproject.toml b/integrations/elasticsearch/pyproject.toml index b67df7e03..92f49f35d 100644 --- a/integrations/elasticsearch/pyproject.toml +++ b/integrations/elasticsearch/pyproject.toml @@ -156,21 +156,21 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -elasticsearch_haystack = ["src/haystack_integrations", "*/elasticsearch/src/haystack_integrations"] -tests = ["tests", "*/elasticsearch/src/tests"] [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [tool.pytest.ini_options] minversion = "6.0" markers = [ diff --git a/integrations/google_ai/pyproject.toml b/integrations/google_ai/pyproject.toml index 01cd2cf8f..3224b1dc0 100644 --- a/integrations/google_ai/pyproject.toml +++ b/integrations/google_ai/pyproject.toml @@ -154,11 +154,8 @@ ban-relative-imports = "parents" [tool.coverage.run] source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -google_ai_haystack = ["src"] -tests = ["tests"] [tool.coverage.report] omit = ["*/tests/*", "*/__init__.py"] @@ -168,6 +165,7 @@ exclude_lines = [ "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [[tool.mypy.overrides]] module = [ "google.*", diff --git a/integrations/google_vertex/pyproject.toml b/integrations/google_vertex/pyproject.toml index f846d5bc4..be7cd33ac 100644 --- a/integrations/google_vertex/pyproject.toml +++ b/integrations/google_vertex/pyproject.toml @@ -148,21 +148,21 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["haystack_integrations", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -google_vertex_haystack = ["src/"] -tests = ["tests"] [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [[tool.mypy.overrides]] module = [ "vertexai.*", diff --git a/integrations/gradient/pyproject.toml b/integrations/gradient/pyproject.toml index f0dae134f..013b1263c 100644 --- a/integrations/gradient/pyproject.toml +++ b/integrations/gradient/pyproject.toml @@ -157,11 +157,8 @@ ban-relative-imports = "parents" [tool.coverage.run] source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -gradient_haystack = ["src"] -tests = ["tests", "*/gradient-haystack/tests"] [tool.coverage.report] omit = ["*/tests/*", "*/__init__.py"] @@ -172,6 +169,7 @@ exclude_lines = [ "if TYPE_CHECKING:", ] + [[tool.mypy.overrides]] module = [ "gradientai.*", diff --git a/integrations/jina/pyproject.toml b/integrations/jina/pyproject.toml index 565def7a5..e1e719b27 100644 --- a/integrations/jina/pyproject.toml +++ b/integrations/jina/pyproject.toml @@ -128,16 +128,19 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["jina_haystack", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -jina_haystack = ["src"] -tests = ["tests", "*/jina-haystack/tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] [[tool.mypy.overrides]] module = ["haystack.*", "haystack_integrations.*", "pytest.*"] diff --git a/integrations/llama_cpp/pyproject.toml b/integrations/llama_cpp/pyproject.toml index 1b165dcaf..5e5fb6f59 100644 --- a/integrations/llama_cpp/pyproject.toml +++ b/integrations/llama_cpp/pyproject.toml @@ -158,22 +158,21 @@ ban-relative-imports = "parents" "tests/**" = ["T201"] [tool.coverage.run] -source_pkgs = ["llama_cpp_haystack", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -llama_cpp_haystack = ["src/haystack_integrations", "*/llama-cpp-haystack/src"] -tests = ["tests", "*/llama-cpp-haystack/tests"] - [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] markers = [ "integration: marks tests as slow (deselect with '-m \"not integration\"')", diff --git a/integrations/mistral/pyproject.toml b/integrations/mistral/pyproject.toml index 6abf98704..512993246 100644 --- a/integrations/mistral/pyproject.toml +++ b/integrations/mistral/pyproject.toml @@ -127,19 +127,20 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -mistral_haystack = [ - "src/haystack_integrations", - "*/mistral/src/haystack_integrations", -] -tests = ["tests", "*/mistral/tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/nvidia/pyproject.toml b/integrations/nvidia/pyproject.toml index ba25812a8..f443e91f9 100644 --- a/integrations/nvidia/pyproject.toml +++ b/integrations/nvidia/pyproject.toml @@ -129,19 +129,20 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -nvidia_haystack = [ - "src/haystack_integrations", - "*/nvidia/src/haystack_integrations", -] -tests = ["tests", "*/nvidia/tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/opensearch/pyproject.toml b/integrations/opensearch/pyproject.toml index 794fa73fa..f2ed07c18 100644 --- a/integrations/opensearch/pyproject.toml +++ b/integrations/opensearch/pyproject.toml @@ -157,21 +157,21 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -opensearch_haystack = ["src/haystack_integrations", "*/opensearch-haystack/src"] -tests = ["tests", "*/opensearch-haystack/tests"] [tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] + [tool.pytest.ini_options] minversion = "6.0" markers = [ diff --git a/integrations/optimum/pyproject.toml b/integrations/optimum/pyproject.toml index d89e02b2c..e6903b4dc 100644 --- a/integrations/optimum/pyproject.toml +++ b/integrations/optimum/pyproject.toml @@ -148,16 +148,20 @@ ban-relative-imports = "parents" "tests/**" = ["T201"] [tool.coverage.run] -source_pkgs = ["optimum", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -optimum = ["src/haystack_integrations"] -tests = ["tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index 33eec8789..d0639983e 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -143,17 +143,19 @@ ban-relative-imports = "parents" "examples/**/*" = ["T201"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true -omit = ["examples"] +parallel = false -[tool.coverage.paths] -pinecone_haystack = ["src/*"] -tests = ["tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] [tool.pytest.ini_options] minversion = "6.0" diff --git a/integrations/qdrant/pyproject.toml b/integrations/qdrant/pyproject.toml index 1db58ea0d..40a97d9b9 100644 --- a/integrations/qdrant/pyproject.toml +++ b/integrations/qdrant/pyproject.toml @@ -127,21 +127,22 @@ ban-relative-imports = "parents" # Tests can use magic values, assertions, and relative imports "tests/**/*" = ["PLR2004", "S101", "TID252"] + [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -qdrant_haystack = [ - "src/qdrant_haystack", - "*/qdrant-haystack/src/qdrant_haystack", +[tool.coverage.report] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", ] -tests = ["tests", "*/qdrant-haystack/tests"] -[tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] [[tool.mypy.overrides]] module = [ diff --git a/integrations/ragas/pyproject.toml b/integrations/ragas/pyproject.toml index 080dc68e4..504f6ddb1 100644 --- a/integrations/ragas/pyproject.toml +++ b/integrations/ragas/pyproject.toml @@ -132,19 +132,20 @@ ban-relative-imports = "all" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -ragas_haystack = [ - "src/haystack_integrations", - "*/ragas-haystack/src/ragas_haystack", -] -tests = ["tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/uptrain/pyproject.toml b/integrations/uptrain/pyproject.toml index 0e9166adc..36ebdc00b 100644 --- a/integrations/uptrain/pyproject.toml +++ b/integrations/uptrain/pyproject.toml @@ -137,19 +137,20 @@ ban-relative-imports = "all" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -uptrain_haystack = [ - "src/haystack_integrations", - "*/uptrain-haystack/src/uptrain_haystack", -] -tests = ["tests"] [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [ diff --git a/integrations/weaviate/pyproject.toml b/integrations/weaviate/pyproject.toml index 00aa500e6..421c2ce18 100644 --- a/integrations/weaviate/pyproject.toml +++ b/integrations/weaviate/pyproject.toml @@ -133,17 +133,20 @@ ban-relative-imports = "parents" "tests/**/*" = ["PLR2004", "S101", "TID252"] [tool.coverage.run] -source_pkgs = ["src", "tests"] +source = ["haystack_integrations"] branch = true -parallel = true +parallel = false -[tool.coverage.paths] -weaviate_haystack = ["src/haystack_integrations", "*/weaviate-haystack/src"] -tests = ["tests", "*/weaviate-haystack/tests"] - [tool.coverage.report] -exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] +omit = ["*/tests/*", "*/__init__.py"] +show_missing=true +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] + [[tool.mypy.overrides]] module = [