summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorJules Chéron <jules.cheron@gmail.com>2021-05-22 23:03:34 +0200
committerJules Chéron <jules.cheron@gmail.com>2021-08-01 20:22:11 +0200
commitc60e1af833391a60a82f3c47460fca899e220de5 (patch)
treec9fbae3c8633e8d3cf6d36a7e1e6d91285394c14 /.coveragerc
parent78769ec967a24cd57c9fb6474aff2aa3708ca483 (diff)
downloadpint-c60e1af833391a60a82f3c47460fca899e220de5.tar.gz
Add pint typing module
- Quantity as Generic class - Add overloaded signature for __new__ Quantity - Add typing module as private - Add py.typed for PEP561 supports - Add overloaded signature for __new__ Quantity - Quantity as Generic class - Add type hints throughout the project - Add py.typed in package data in setup.cfg - Add type hints for decorators - Add type hints for public API of registry.py - Add type hints for units.py
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc16
1 files changed, 16 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
index 73fab9e..fbb079e 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,3 +1,19 @@
[run]
omit = pint/testsuite/*
+[report]
+# Regexes for lines to exclude from consideration
+exclude_lines =
+ # Have to re-enable the standard pragma
+ pragma: no cover
+
+ # Don't complain about missing debug-only code:
+ def __repr__
+
+ # Don't complain if tests don't hit defensive assertion code:
+ raise AssertionError
+ raise NotImplementedError
+ AbstractMethodError
+
+ # Don't complain if non-runnable code isn't run:
+ if TYPE_CHECKING: \ No newline at end of file