mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Tell coverage tool to ignore lines intended for mypy only
In particular, `if TYPE_CHECKING:` blocks and `...` in bodies of overloaded method definitions.
This commit is contained in:
parent
5fc37eb4b4
commit
9dc224723b
1 changed files with 6 additions and 0 deletions
|
|
@ -1,2 +1,8 @@
|
|||
[run]
|
||||
include = model_utils/*.py
|
||||
|
||||
[report]
|
||||
exclude_also =
|
||||
# Exclusive to mypy:
|
||||
if TYPE_CHECKING:$
|
||||
\.\.\.$
|
||||
|
|
|
|||
Loading…
Reference in a new issue