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
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ gpu = [
]
# Development extras
test = [
"coverage",
"coverage>=7.10",
# Pin possibly due to https://github.com/pytest-dev/pytest-cov/issues/693
"pytest<8.4",
"pytest-asyncio",
Expand Down Expand Up @@ -128,11 +128,8 @@ dev = [
]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"pragma: ${PY_MAJOR_VERSION} no cover",
Copy link
Contributor

Choose a reason for hiding this comment

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

is the pragma: no cover directive handled automatically with the new version of coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - it's listed in the default exclusions. I also checked locally, and lines tagged with # pragma: no cover seemed to be excluded correctly.

'.*\.\.\.' # Ignore "..." lines
exclude_also = [
'if TYPE_CHECKING:',
]

[tool.coverage.run]
Expand Down
Loading