Skip to content

Commit 6e287e6

Browse files
committed
chore: add coverage configuration to pyproject.toml
Configure pytest-cov with: - Branch coverage enabled for stackone_ai source - Exclusions for __init__.py and py.typed files - Standard exclusion patterns (TYPE_CHECKING, NotImplementedError, etc.) - JSON output to coverage/coverage.json for CI badge generation - HTML output to coverage/html for detailed reports
1 parent c5cf8d4 commit 6e287e6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,26 @@ ignore_missing_imports = true
123123
module = "mcp.*"
124124
ignore_missing_imports = true
125125
ignore_errors = true
126+
127+
[tool.coverage.run]
128+
source = ["stackone_ai"]
129+
branch = true
130+
omit = [
131+
"stackone_ai/__init__.py",
132+
"**/py.typed",
133+
]
134+
135+
[tool.coverage.report]
136+
exclude_lines = [
137+
"pragma: no cover",
138+
"def __repr__",
139+
"raise NotImplementedError",
140+
"if TYPE_CHECKING:",
141+
"if typing.TYPE_CHECKING:",
142+
]
143+
144+
[tool.coverage.json]
145+
output = "coverage/coverage.json"
146+
147+
[tool.coverage.html]
148+
directory = "coverage/html"

0 commit comments

Comments
 (0)