@@ -224,6 +224,20 @@ omit = [
224
224
" pydantic_ai_slim/pydantic_ai/ext/aci.py" ,# aci-sdk requires Python 3.10+ so cannot be added as an (optional) dependency
225
225
]
226
226
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
+ ]
227
241
228
242
# https://coverage.readthedocs.io/en/latest/config.html#report
229
243
[tool .coverage .report ]