Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: ignore coverage in TYPE_CHECKING blocks#5092

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:coverage/ignore-type-checking
Jan 14, 2023
Merged

chore: ignore coverage in TYPE_CHECKING blocks#5092
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:coverage/ignore-type-checking

Conversation

@bastimeyer

@bastimeyer bastimeyer commented Jan 14, 2023

Copy link
Copy Markdown
Member

Accidentally forgot to suppress coverage of the TYPE_CHECKING block added in #5090.
https://app.codecov.io/gh/streamlink/streamlink/pull/5090

This PR adds TYPE_CHECKING to the list of excluded lines via pyproject.toml. But since pycharm seems to ignore this when building coverage reports via the coverage module, I also added the regular # pragma: no cover directive.

@bastimeyer

bastimeyer commented Jan 14, 2023

Copy link
Copy Markdown
Member Author

Btw, codecov is once again showing complete nonsense data, both for PRs and for the master branch (which is outdated). 🤦‍♂️

@bastimeyer bastimeyer merged commit fe9be00 into streamlink:master Jan 14, 2023
@bastimeyer bastimeyer deleted the coverage/ignore-type-checking branch January 14, 2023 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant