Skip to content

Commit a5f4b11

Browse files
authored
chore: support pytest-cov and local reporting (#2179)
1 parent 9b1a89b commit a5f4b11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ omit = [
224224
"pydantic_ai_slim/pydantic_ai/ext/aci.py", # aci-sdk requires Python 3.10+ so cannot be added as an (optional) dependency
225225
]
226226
branch = true
227+
# Disable include-ignored warnings as --source is enabled automatically causing a self conflict as per:
228+
# https://github.com/pytest-dev/pytest-cov/issues/532
229+
# https://github.com/pytest-dev/pytest-cov/issues/369
230+
# This prevents coverage being generated by pytest-cov which has direct editor support in VS Code,
231+
# making it super useful to check coverage while writing tests.
232+
disable_warnings = ["include-ignored"]
233+
234+
[tool.coverage.paths]
235+
# Allow CI run assets to be downloaded an replicated locally.
236+
source = [
237+
".",
238+
"/home/runner/work/pydantic-ai/pydantic-ai",
239+
"/System/Volumes/Data/home/runner/work/pydantic-ai/pydantic-ai"
240+
]
227241

228242
# https://coverage.readthedocs.io/en/latest/config.html#report
229243
[tool.coverage.report]

0 commit comments

Comments
 (0)