File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,10 +181,12 @@ def validate_cookbook() -> None:
181181 raise ValueError (f"Cookbook recipe knob flag must start with --: { recipe ['id' ]} : { knob ['key' ]} " )
182182 options = knob ["options" ]
183183 if not isinstance (options , list ) or not options :
184- raise ValueError (f"Cookbook recipe knob options must be a non-empty list: { recipe ['id' ]} : { knob ['key' ]} " )
184+ raise ValueError (
185+ f"Cookbook recipe knob options must be a non-empty list: { recipe ['id' ]} : { knob ['key' ]} " )
185186 option_values = [option ["value" ] if isinstance (option , dict ) else option for option in options ]
186187 if knob ["default" ] not in option_values :
187- raise ValueError (f"Cookbook recipe knob default must be one of its options: { recipe ['id' ]} : { knob ['key' ]} " )
188+ raise ValueError (
189+ f"Cookbook recipe knob default must be one of its options: { recipe ['id' ]} : { knob ['key' ]} " )
188190
189191 source = (ROOT_DIR / recipe ["source" ]).resolve ()
190192 if not any (source .is_relative_to (root .resolve ()) for root in COOKBOOK_SOURCE_ROOTS ):
You can’t perform that action at this time.
0 commit comments