Skip to content

Commit e4aae60

Browse files
authored
Merge pull request #1855 from aucampia/iwana-20220419T1752-coverage_ignore
Tell coveragepy to ignore type checking code and `...`
2 parents 7fb9eeb + 10b1261 commit e4aae60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ exclude_lines =
1818
# Have to re-enable the standard pragma
1919
pragma: no cover
2020

21+
# TYPE_CHECKING guarded code only affects type checkers.
22+
^ +if (False|TYPE_CHECKING):
23+
# constant used in protocols and abstract methods, does not run anything
24+
# and has no side effects.
25+
^ +\.\.\.$
26+
2127
# Don't complain if non-runnable code isn't run:
2228
if 0:
2329
if __name__ == .__main__.:

0 commit comments

Comments
 (0)