Skip to content

Commit 186cec1

Browse files
committed
Add coverage exclusions for uncoverable lines and files
1 parent 8986683 commit 186cec1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ filterwarnings = [
9797
"ignore:'import tcod as libtcodpy' is preferred.",
9898
]
9999

100+
[tool.coverage.report] # https://coverage.readthedocs.io/en/latest/config.html
101+
exclude_lines = ['^\s*\.\.\.', "if TYPE_CHECKING:", "# pragma: no cover"]
102+
omit = ["tcod/__pyinstaller/*"]
103+
100104
[tool.cibuildwheel] # https://cibuildwheel.pypa.io/en/stable/options/
101105
enable = ["pypy", "pyodide-prerelease"]
102106

0 commit comments

Comments
 (0)