Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ skip_covered = false

[tool.coverage.paths]
source = ["src", "**/site-packages"]
attrs-plugin = [
"tests/_trio_check_attrs_aliases.py",
"_trio_check_attrs_aliases.py",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, why this? I guess this is necessary to merge the importable with the file under tests/?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I took wild a guess after you said that it's "installed" separately that this might've been something that you thought wasn't working in the past. I realized it's not installed but imported through an absolute path due to PYTHONPATH being set. And so I figured it would likely confuse the path mapper so I added an explicit one.
I haven't actually tested it locally even, just wanted to see what the PR would produce. Maybe it'd work even w/o this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

]

[tool.coverage.run]
branch = true
Expand All @@ -311,7 +315,8 @@ omit = [
parallel = true
plugins = []
relative_files = true
source = ["trio", "tests/", "_trio_check_attrs_aliases"]
source = ["."]
source_pkgs = ["trio", "_trio_check_attrs_aliases"]

[tool.coverage.report]
precision = 1
Expand Down