Skip to content

Commit bf0f182

Browse files
committed
build: exclude __main__ guard lines from coverage reporting
1 parent ae1a78c commit bf0f182

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@ omit = [
4848
"krakenparser/mpa/transform2mpa.py",
4949
"krakenparser/mpa/mpa_table.py",
5050
]
51+
52+
[tool.coverage.report]
53+
exclude_lines = [
54+
"pragma: no cover",
55+
"if __name__ == .__main__.:",
56+
]

0 commit comments

Comments
 (0)