summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorStephen Rosen <sirosen@globus.org>2022-01-05 23:43:00 +0000
committerStephen Rosen <sirosen@globus.org>2022-01-05 23:43:00 +0000
commit811bab2efdea4a2d5c29c5246480bf809a9a9a35 (patch)
treef65789f133b71b19816cda1aff932fa0e506dac9 /.coveragerc
parentcdc2807c0d14a58947be9508566af8263b77fccb (diff)
downloadjsonschema-811bab2efdea4a2d5c29c5246480bf809a9a9a35.tar.gz
Omit 'if TYPE_CHECKING' blocks from coverage
These blocks only exist to create code which evaluates under mypy but does not run at runtime. As a result, they are impossible to cover with `coverage` on a testsuite, and make sense to exclude from coverage reporting.
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
index 0d30ffb..ad7c06f 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -3,3 +3,7 @@
branch = True
source = jsonschema
omit = */jsonschema/_reflect.py,*/jsonschema/__main__.py,*/jsonschema/benchmarks/*,*/jsonschema/tests/fuzz_validate.py
+
+[report]
+exclude_lines =
+ if TYPE_CHECKING: