Skip to content

Commit d20b48d

Browse files
committed
config for coverage
1 parent cdad450 commit d20b48d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ markers = [
9393
# log_cli=true
9494
# log_level=DEBUG
9595

96+
[tool.coverage.run]
97+
source = ["pylhc/"]
98+
99+
[tool.coverage.report]
100+
precision = 2
101+
ignore_errors = true
102+
exclude_also = [
103+
"if TYPE_CHECKING:", # do not count if TYPE_CHECKING block imports (ignored at runtime) for coverage
104+
"except ImportError:", # do not count missing optional dependencies set to None, we monkeypatch and test that
105+
]
106+
96107
# ----- Dev Tools Configuration ----- #
97108

98109
[tool.ruff]

0 commit comments

Comments
 (0)