Skip to content

Commit ffe7261

Browse files
committed
Configure coveragepy to separate importables&pths
Fixes #3314.
1 parent d64798f commit ffe7261

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ skip_covered = false
293293

294294
[tool.coverage.paths]
295295
source = ["src", "**/site-packages"]
296+
attrs-plugin = [
297+
"tests/_trio_check_attrs_aliases.py",
298+
"_trio_check_attrs_aliases.py",
299+
]
296300

297301
[tool.coverage.run]
298302
branch = true
@@ -311,7 +315,8 @@ omit = [
311315
parallel = true
312316
plugins = []
313317
relative_files = true
314-
source = ["trio", "tests/", "_trio_check_attrs_aliases"]
318+
source = ["."]
319+
source_pkgs = ["trio", "_trio_check_attrs_aliases"]
315320

316321
[tool.coverage.report]
317322
precision = 1

0 commit comments

Comments
 (0)