Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Fuobe Connect: mark the tests' exec of ComfyUI's own code for comfy-cli's check

Adarsh4a41ab407ccd
diff --git a/integrations/fuobe-connect/tests/comfy_stack.py b/integrations/fuobe-connect/tests/comfy_stack.py
index 3cab8465..b6d588c7 100644
--- a/integrations/fuobe-connect/tests/comfy_stack.py
+++ b/integrations/fuobe-connect/tests/comfy_stack.py
@@ -35,9 +35,9 @@ def _from_comfyui(folder: str) -> dict:
missing = WANTED - {n.name for n in picked}
if missing:
raise RuntimeError(f"ComfyUI's server.py has no {', '.join(sorted(missing))}")
- exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/server.py", "exec"), ns)
+ exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/server.py", "exec"), ns) # noqa: S102
with open(os.path.join(folder, "middleware", "cache_middleware.py"), encoding="utf-8") as f:
- exec(compile(f.read(), "comfyui/middleware/cache_middleware.py", "exec"), ns)
+ exec(compile(f.read(), "comfyui/middleware/cache_middleware.py", "exec"), ns) # noqa: S102
ns["source"] = f"ComfyUI at {folder}"
return ns
diff --git a/integrations/fuobe-connect/tests/test_graph.py b/integrations/fuobe-connect/tests/test_graph.py
index 6b75bbc2..bfef75d2 100644
--- a/integrations/fuobe-connect/tests/test_graph.py
+++ b/integrations/fuobe-connect/tests/test_graph.py
@@ -62,7 +62,7 @@ def comfy_is_link():
tree = ast.parse(f.read())
picked = [n for n in tree.body if isinstance(n, ast.FunctionDef) and n.name == "is_link"]
ns: dict = {}
- exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/graph_utils.py", "exec"), ns)
+ exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/graph_utils.py", "exec"), ns) # noqa: S102
return ns["is_link"]
def copy(obj):
diff --git a/integrations/fuobe-connect/tests/test_middleware.py b/integrations/fuobe-connect/tests/test_middleware.py
index 7ff94e0c..f5a8a95e 100644
--- a/integrations/fuobe-connect/tests/test_middleware.py
+++ b/integrations/fuobe-connect/tests/test_middleware.py
@@ -121,7 +121,7 @@ def comfy_prompt_queue():
tree = ast.parse(f.read())
picked = [n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == "PromptQueue"]
ns = {"threading": threading, "heapq": heapq, "copy": copy, "MAXIMUM_HISTORY_SIZE": 10000, **{k: getattr(typing, k) for k in typing.__all__ if hasattr(typing, k)}}
- exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/execution.py", "exec"), ns)
+ exec(compile(ast.Module(body=picked, type_ignores=[]), "comfyui/execution.py", "exec"), ns) # noqa: S102
return ns["PromptQueue"]