Skip to content

Commit 0dd4384

Browse files
committed
CI: Add some exception to coverage
1 parent 119621e commit 0dd4384

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- OPTIM: Use raw band path over default band path to speed up the computation of image information (extent, footprint, CRS, transform) of SAR ortho products
3131
- OPTIM: Allow predictor = 3 with LZW compression when saving SAR intermediate data as SNAP handles it properly now. [#173](https://github.com/sertit/eoreader/issues/173)
3232
- CI: Filter some warnings in pytest
33+
- CI: Add some exception to coverage
3334
- DEPS: Test on SNAP 12 and 13 [#213](https://github.com/sertit/eoreader/issues/213)
3435
- DEPS: Drop support for Python 3.9 [#175](https://github.com/sertit/eoreader/issues/175)
3536
- DOC: Add a CITATION file [#262](https://github.com/sertit/eoreader/issues/262)

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ filterwarnings = [
114114
[tool.coverage.run]
115115
omit = ["*/__init__.py"]
116116

117+
[tool.coverage.report]
118+
exclude_also = [
119+
"def __repr__", # Printable epresentational string does not typically execute during testing
120+
"raise NotImplementedError", # Abstract methods are not testable
121+
"raise RuntimeError", # Exceptions for defensive programming that cannot be tested a head
122+
"if TYPE_CHECKING:", # Code that only runs during type checks
123+
"@abstractmethod", # Abstract methods are not testable
124+
]
117125

118126
[tool.typos]
119127
files.extend-exclude = ["*.ipynb", "*.html", ".git/*"]

0 commit comments

Comments
 (0)