Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix coverage paths: use absolute->relative remapping for Codecov

joereyna0687ebb130c2
diff --git a/codecov.yaml b/codecov.yaml
index 25946802329..09fccc6b995 100644
--- a/codecov.yaml
+++ b/codecov.yaml
@@ -20,9 +20,6 @@ component_management:
- component_id: "Enterprise"
paths:
- "enterprise/**"
-fixes:
- - "::litellm/" # prepend litellm/ to all paths (coverage records relative to package root)
-
comment:
layout: "header, diff, flags, components" # show component info in the PR comment
diff --git a/pyproject.toml b/pyproject.toml
index 401e2d4baa6..a3ac12d7aae 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -212,11 +212,9 @@ filterwarnings = [
[tool.coverage.run]
source = ["litellm"]
-relative_files = true
[tool.coverage.paths]
-source = [
- "litellm/",
- "/home/runner/work/litellm/litellm/litellm/",
- "**/litellm/",
+litellm = [
+ "litellm",
+ "/home/runner/work/litellm/litellm/litellm",
]