@@ -430,7 +430,9 @@ def validate_e1_phone_manifest(path: Path, release: bool) -> list[str]:
430430 target = {}
431431 for key , expected in expected_target .items ():
432432 if target .get (key ) != expected :
433- failures .append (f"{ rel_manifest } : design_target.{ key } expected { expected } , got { target .get (key )} " )
433+ failures .append (
434+ f"{ rel_manifest } : design_target.{ key } expected { expected } , got { target .get (key )} "
435+ )
434436 radios = target .get ("radios" , [])
435437 for radio in ["5g_redcap_cellular" , "wifi_6e" , "bluetooth_5_3" ]:
436438 if radio not in radios :
@@ -449,7 +451,9 @@ def validate_e1_phone_manifest(path: Path, release: bool) -> list[str]:
449451 }
450452 missing_groups = sorted (required_groups - set (groups ))
451453 if missing_groups :
452- failures .append (f"{ rel_manifest } : missing current_artifacts groups: { ', ' .join (missing_groups )} " )
454+ failures .append (
455+ f"{ rel_manifest } : missing current_artifacts groups: { ', ' .join (missing_groups )} "
456+ )
453457 required_paths = {
454458 "board/kicad/e1-phone/routed-release-plan.yaml" ,
455459 "board/kicad/e1-phone/manufacturing-closure.yaml" ,
@@ -478,7 +482,14 @@ def validate_e1_phone_manifest(path: Path, release: bool) -> list[str]:
478482 if not isinstance (gates , dict ):
479483 failures .append (f"{ rel_manifest } : release_gates must be a mapping" )
480484 gates = {}
481- required_gates = {"schematic" , "routed_pcb" , "enclosure" , "power_thermal" , "rf_si" , "manufacturing" }
485+ required_gates = {
486+ "schematic" ,
487+ "routed_pcb" ,
488+ "enclosure" ,
489+ "power_thermal" ,
490+ "rf_si" ,
491+ "manufacturing" ,
492+ }
482493 missing_gates = sorted (required_gates - set (gates ))
483494 if missing_gates :
484495 failures .append (f"{ rel_manifest } : missing release gates: { ', ' .join (missing_gates )} " )
@@ -494,25 +505,38 @@ def validate_e1_phone_manifest(path: Path, release: bool) -> list[str]:
494505 if not as_list (evidence ):
495506 failures .append (f"{ rel_manifest } .release_gates.{ gate_name } : missing required_evidence" )
496507 if release :
497- failures .append (f"{ rel_manifest } .release_gates.{ gate_name } : release gate remains missing" )
508+ failures .append (
509+ f"{ rel_manifest } .release_gates.{ gate_name } : release gate remains missing"
510+ )
498511
499512 routed_plan_path = repo_path ("board/kicad/e1-phone/routed-release-plan.yaml" )
500513 if routed_plan_path .is_file ():
501514 routed_plan = yaml .safe_load (routed_plan_path .read_text ())
502- if routed_plan .get ("status" ) != "blocked_routed_release_requires_real_route_and_supplier_outputs" :
515+ if (
516+ routed_plan .get ("status" )
517+ != "blocked_routed_release_requires_real_route_and_supplier_outputs"
518+ ):
503519 failures .append (f"{ rel_manifest } : routed release plan status is not fail-closed" )
504520 outputs = routed_plan .get ("required_release_output_manifest" , {})
505521 if not isinstance (outputs , dict ) or len (outputs ) < 20 :
506- failures .append (f"{ rel_manifest } : routed release plan must track at least 20 release outputs" )
522+ failures .append (
523+ f"{ rel_manifest } : routed release plan must track at least 20 release outputs"
524+ )
507525 else :
508526 for output_name , output in outputs .items ():
509527 if not isinstance (output , dict ):
510- failures .append (f"{ rel_manifest } : routed output { output_name } must be a mapping" )
528+ failures .append (
529+ f"{ rel_manifest } : routed output { output_name } must be a mapping"
530+ )
511531 continue
512532 if output .get ("present" ) is not False or output .get ("release_required" ) is not True :
513- failures .append (f"{ rel_manifest } : routed output { output_name } must be blocked and required" )
533+ failures .append (
534+ f"{ rel_manifest } : routed output { output_name } must be blocked and required"
535+ )
514536 if release :
515- failures .append (f"{ rel_manifest } : release output remains missing: { output_name } " )
537+ failures .append (
538+ f"{ rel_manifest } : release output remains missing: { output_name } "
539+ )
516540 else :
517541 failures .append (f"{ rel_manifest } : routed release plan is missing" )
518542
0 commit comments