Skip to content

Commit 5cefcd3

Browse files
authored
Merge pull request #3367 from webknjaz/maintenance/coveragepy-src-pkgs
Configure coveragepy to separate importables&pths
2 parents d64798f + ffe7261 commit 5cefcd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)