Skip to content

Commit

Permalink
Add codecov exclude_lines configuration
Browse files Browse the repository at this point in the history
nedbat/coveragepy#831 (comment) not configurable via codecov.yml: codecov/codecov-python#107 (comment)

Signed-off-by: Matthew Hoffman <[email protected]>
  • Loading branch information
ringohoffman committed Nov 23, 2023
1 parent 54e68e0 commit 48d9b0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
if typing.TYPE_CHECKING:
if __name__ == .__main__.:
class .*\(.*Protocol.*\):
@overload
@abstractmethod
@abc.abstractmethod
raise NotImplementedError

0 comments on commit 48d9b0e

Please sign in to comment.