-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
29 lines (26 loc) · 824 Bytes
/
Copy pathpyproject.toml
File metadata and controls
29 lines (26 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Project tooling config. Kept minimal on purpose: pytest + coverage settings
# live here so `pytest` and `pytest --cov` behave the same locally and in CI.
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.coverage.run]
# Measure only our own package (not the venv or third-party code), and track
# branch coverage (did both sides of each `if` run?) which is more honest than
# plain line coverage.
source = ["kernel_ai"]
branch = true
omit = [
"*/__main__.py",
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
# Lines we don't expect (or want) to cover — excluded from the % so the number
# reflects real gaps, not boilerplate.
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]