File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ dependencies = [
1515]
1616
1717[project .optional-dependencies ]
18- # Tooling used by CI (lint + type check + wheel build). Install with:
19- # pip install -e ".[dev]"
18+ # Tooling used by CI (lint + type check + wheel build + coverage + audit).
19+ # Install with: pip install -e ".[dev]"
2020dev = [
2121 " ruff>=0.6" ,
2222 " pyright>=1.1.380" ,
2323 " build>=1.2" ,
24+ " coverage[toml]>=7.0" ,
25+ " pip-audit>=2.7" ,
2426]
2527
2628[project .scripts ]
@@ -54,3 +56,16 @@ pythonVersion = "3.11"
5456# findings are burned down; flip it to blocking (remove continue-on-error in
5557# the workflow) once `pyright` reports zero errors.
5658typeCheckingMode = " basic"
59+
60+ [tool .coverage .run ]
61+ source = [" python_agent_harness" ]
62+ branch = true
63+ # The console/TUI entry points aren't exercised by unittest; omit the ones
64+ # that would otherwise drag the number down without adding signal.
65+ omit = [" python_agent_harness/__main__.py" ]
66+
67+ [tool .coverage .report ]
68+ show_missing = true
69+ # Current line + branch coverage is ~98%. Gate at 90 to leave headroom for
70+ # small changes while still catching real regressions. Raise as coverage grows.
71+ fail_under = 90
You can’t perform that action at this time.
0 commit comments