Skip to content

Commit 536b291

Browse files
committed
config for coverage
1 parent d322e14 commit 536b291

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ markers = [
8181
# log_cli=true
8282
# log_level=DEBUG
8383

84+
[tool.coverage.run]
85+
source = ["optics_functions/"]
86+
87+
[tool.coverage.report]
88+
precision = 2
89+
ignore_errors = true
90+
exclude_also = [
91+
"if TYPE_CHECKING:", # do not count if TYPE_CHECKING block imports (ignored at runtime) for coverage
92+
"except ImportError:", # do not count missing optional dependencies set to None, we monkeypatch and test that
93+
]
8494

8595
# ----- Dev Tools Configuration ----- #
8696

0 commit comments

Comments
 (0)