Skip to content

Commit 6429364

Browse files
Vaish, Ishanclaude
authored andcommitted
[misc]: fix pre-commit yapf formatting in cookbook knob validation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019kCbjT4JM9ntMWGC5GByot
1 parent 7a3b4b7 commit 6429364

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/generate_examples.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)