From ed7a1714603e7d203591d2eb3ecd1a1eb5288bab Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sat, 8 Apr 2023 09:46:29 +0700 Subject: [PATCH] Ignore `if TYPE_CHECKING:` when measuring test coverage (#1875) * Ignore `if TYPE_CHECKING:` when measuring test coverage * Update codecov.yml instead * Added "[report]" to coveragerc * Revert "Update codecov.yml instead" This reverts commit f68a905de447ba947a46fcd4ef7c20824262d187. --- .coveragerc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.coveragerc b/.coveragerc index f527e4fb..58c195fb 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,3 +5,7 @@ omit = rq/contrib/legacy.py rq/dummy.py rq/local.py + +[report] +exclude_lines = + if TYPE_CHECKING: \ No newline at end of file