-
-
Notifications
You must be signed in to change notification settings - Fork 358
get and enforce 100% coverage #3159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 32 commits
2aa5771
8501b0c
be08460
2722418
8858398
e5fa8cd
340373d
d436b06
0ac717d
1398349
34d6399
818094a
3dac42d
dda9a27
bd81624
640f581
50d848d
28ee44a
ac30b6b
f312a70
badc910
a57247a
5344e71
8f05dbf
1ec824c
a0f33ee
cc4b217
24917b7
68de044
95b1f75
becdf2a
3f34731
bd097dd
dcfe01a
431f2ed
117fe04
84de11a
2484749
d055b38
afa13f5
e78f317
d962e05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Get more coverage | ||
graingert marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,18 +305,16 @@ precision = 1 | |
skip_covered = true | ||
skip_empty = true | ||
show_missing = true | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"abc.abstractmethod", | ||
"if TYPE_CHECKING.*:", | ||
"if _t.TYPE_CHECKING:", | ||
"if t.TYPE_CHECKING:", | ||
"@overload", | ||
'class .*\bProtocol\b.*\):', | ||
"raise NotImplementedError", | ||
] | ||
exclude_also = [ | ||
'^\s*@pytest\.mark\.xfail', | ||
"abc.abstractmethod", | ||
"if TYPE_CHECKING.*:", | ||
"if _t.TYPE_CHECKING:", | ||
"if t.TYPE_CHECKING:", | ||
"@overload", | ||
'class .*\bProtocol\b.*\):', | ||
"raise NotImplementedError", | ||
'TODO: test this line' | ||
Comment on lines
+313
to
+320
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider integrating the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah nice, I'll do that in a followup |
||
] | ||
partial_branches = [ | ||
"pragma: no branch", | ||
|
@@ -326,4 +324,5 @@ partial_branches = [ | |
"if .* or not TYPE_CHECKING:", | ||
"if .* or not _t.TYPE_CHECKING:", | ||
"if .* or not t.TYPE_CHECKING:", | ||
'TODO: test this branch', | ||
] |
Uh oh!
There was an error while loading. Please reload this page.