@@ -129,19 +129,15 @@ def _normalize_node_release_manifest(
129129 if not isinstance (value , dict ):
130130 raise ValueError (f"{ key } must be an object when provided" )
131131 if value .get ("schema_version" ) != SCHEMA_VERSION :
132- raise ValueError (
133- f"{ key } .schema_version must be { SCHEMA_VERSION } "
134- )
132+ raise ValueError (f"{ key } .schema_version must be { SCHEMA_VERSION } " )
135133
136134 components_raw = value .get ("components" )
137135 if not isinstance (components_raw , dict ) or not components_raw :
138136 raise ValueError (f"{ key } .components must be a non-empty object" )
139137 components : dict [str , dict [str , str ]] = {}
140138 for component_name , component in components_raw .items ():
141139 if not isinstance (component_name , str ) or not component_name :
142- raise ValueError (
143- f"{ key } .components keys must be non-empty strings"
144- )
140+ raise ValueError (f"{ key } .components keys must be non-empty strings" )
145141 if not isinstance (component , dict ):
146142 raise ValueError (
147143 f"{ key } .components.{ component_name } must be an object"
@@ -205,9 +201,7 @@ def _require_node_image_mode(payload: dict, key: str) -> str:
205201 return value
206202
207203
208- def _require_optional_node_image_mode (
209- payload : dict , key : str
210- ) -> str | None :
204+ def _require_optional_node_image_mode (payload : dict , key : str ) -> str | None :
211205 value = payload .get (key )
212206 if value is None :
213207 return None
@@ -231,9 +225,7 @@ def _validate_node_image_config(
231225 "node_integrated_image and node_split_image require "
232226 "node_image_mode=registry"
233227 )
234- if mode == "registry" and (
235- integrated_image is None or split_image is None
236- ):
228+ if mode == "registry" and (integrated_image is None or split_image is None ):
237229 raise ValueError (
238230 "registry node image mode requires both "
239231 "node_integrated_image and node_split_image"
@@ -333,9 +325,7 @@ def normalize_node_profile(payload: dict) -> dict:
333325
334326 node_image_mode , node_integrated_image , node_split_image = (
335327 _validate_node_image_config (
336- mode = _require_optional_node_image_mode (
337- payload , "node_image_mode"
338- ),
328+ mode = _require_optional_node_image_mode (payload , "node_image_mode" ),
339329 integrated_image = _require_optional_str (
340330 payload , "node_integrated_image"
341331 ),
0 commit comments