File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,23 @@ show_missing = true
15
15
precision = 2
16
16
omit = *migrations*
17
17
exclude_lines =
18
+ # Lines matching these regexes don't need to be covered
19
+ # https://coverage.readthedocs.io/en/coverage-5.5/excluding.html?highlight=exclude_lines#advanced-exclusion
20
+
21
+ # this is the default but must be explicitly specified since
22
+ # we are overriding exclude_lines
18
23
pragma: no cover
24
+
25
+ # abstract methods won't ever be run
19
26
abc\.abstractmethod
27
+
28
+ # overloads won't ever be run
20
29
typing\.overload
30
+
31
+ # ellipses (...) are often used in type-hint related stub code
21
32
^\s*\.\.\.\s*$
33
+
34
+ # TYPE_CHECKING guarded code won't be run
22
35
if typing.TYPE_CHECKING:
23
36
if t.TYPE_CHECKING:
24
37
if TYPE_CHECKING:
You can’t perform that action at this time.
0 commit comments