@@ -93,27 +93,15 @@ def main(args: list[str] | None = None) -> int:
9393 parser .add_argument ("--coverage-xml" , type = Path , help = "Path to coverage.xml" )
9494 parser .add_argument ("--coverage-json" , type = Path , help = "Path to coverage.json" )
9595 parser .add_argument ("--baseline" , type = Path , help = "Path to baseline JSON" )
96- parser .add_argument (
97- "--summary-path" , type = Path , help = "Path to output summary markdown"
98- )
96+ parser .add_argument ("--summary-path" , type = Path , help = "Path to output summary markdown" )
9997 parser .add_argument ("--job-summary" , type = Path , help = "Path to GITHUB_STEP_SUMMARY" )
100- parser .add_argument (
101- "--artifact-path" , type = Path , help = "Path to output trend artifact"
102- )
98+ parser .add_argument ("--artifact-path" , type = Path , help = "Path to output trend artifact" )
10399 parser .add_argument ("--github-output" , type = Path , help = "Path to write env file" )
100+ parser .add_argument ("--minimum" , type = float , default = 70.0 , help = "Minimum coverage threshold" )
101+ parser .add_argument ("--hotspot-limit" , type = int , default = 15 , help = "Max hotspot files to show" )
102+ parser .add_argument ("--low-threshold" , type = float , default = 50.0 , help = "Low coverage threshold" )
104103 parser .add_argument (
105- "--minimum" , type = float , default = 70.0 , help = "Minimum coverage threshold"
106- )
107- parser .add_argument (
108- "--hotspot-limit" , type = int , default = 15 , help = "Max hotspot files to show"
109- )
110- parser .add_argument (
111- "--low-threshold" , type = float , default = 50.0 , help = "Low coverage threshold"
112- )
113- parser .add_argument (
114- "--soft" ,
115- action = "store_true" ,
116- help = "Soft gate mode - report only, always exit 0" ,
104+ "--soft" , action = "store_true" , help = "Soft gate mode - report only, always exit 0"
117105 )
118106 parsed = parser .parse_args (args )
119107
@@ -161,9 +149,7 @@ def main(args: list[str] | None = None) -> int:
161149 "hotspots" : hotspots ,
162150 "low_coverage_files" : low_coverage ,
163151 }
164- parsed .artifact_path .write_text (
165- json .dumps (artifact_data , indent = 2 ), encoding = "utf-8"
166- )
152+ parsed .artifact_path .write_text (json .dumps (artifact_data , indent = 2 ), encoding = "utf-8" )
167153
168154 status = "✅ Pass" if passes_minimum else "❌ Below minimum"
169155 summary = f"""## Coverage Trend
@@ -180,9 +166,7 @@ def main(args: list[str] | None = None) -> int:
180166
181167 # Add hotspot tables if we have coverage data
182168 if hotspots :
183- summary += _format_hotspot_table (
184- hotspots , "Top Coverage Hotspots (lowest coverage)"
185- )
169+ summary += _format_hotspot_table (hotspots , "Top Coverage Hotspots (lowest coverage)" )
186170
187171 if low_coverage :
188172 summary += _format_hotspot_table (
0 commit comments