Skip to content

Commit 7685db8

Browse files
committed
More autofomatting
Should be good on testpypi now
1 parent ad0dff3 commit 7685db8

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Server/src/cli/commands/editor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ def custom_tool(tool_name: str, params: str):
474474
except json.JSONDecodeError as e:
475475
print_error(f"Invalid JSON for params: {e}")
476476
print_info("Example: --params '{\"key\":\"value\"}'")
477-
print_info("Tip: wrap JSON in single quotes to avoid shell escaping issues.")
477+
print_info(
478+
"Tip: wrap JSON in single quotes to avoid shell escaping issues.")
478479
sys.exit(1)
479480

480481
try:
@@ -486,14 +487,16 @@ def custom_tool(tool_name: str, params: str):
486487
if result.get("success"):
487488
print_success(f"Executed custom tool: {tool_name}")
488489
else:
489-
message = (result.get("message") or result.get("error") or "").lower()
490+
message = (result.get("message")
491+
or result.get("error") or "").lower()
490492
if "not found" in message and "tool" in message:
491493
try:
492494
tools_result = run_list_custom_tools(config)
493495
tools = tools_result.get("tools")
494496
if tools is None:
495497
data = tools_result.get("data", {})
496-
tools = data.get("tools") if isinstance(data, dict) else None
498+
tools = data.get("tools") if isinstance(
499+
data, dict) else None
497500
names = [
498501
t.get("name") for t in tools if isinstance(t, dict) and t.get("name")
499502
] if isinstance(tools, list) else []

Server/src/cli/commands/prefab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def info(path: str, compact: bool):
137137
click.echo(f" Type: {data.get('prefabType', 'Unknown')}")
138138
click.echo(f" Root: {data.get('rootObjectName', 'N/A')}")
139139
click.echo(f" GUID: {data.get('guid', 'N/A')}")
140-
click.echo(f" Components: {len(data.get('rootComponentTypes', []))}")
140+
click.echo(
141+
f" Components: {len(data.get('rootComponentTypes', []))}")
141142
click.echo(f" Children: {data.get('childCount', 0)}")
142143
if data.get('isVariant'):
143144
click.echo(f" Variant of: {data.get('parentPrefab', 'N/A')}")

0 commit comments

Comments
 (0)