E501 Line too long (137 > 100) --> calliope-backend/tests/test_krea_auto_fixed_document.py:154:101 | 153 | …on(): 154 | …"node_id"]==nid)["value"]) for nid in ["64","274","52","271"]] == [139,5339,479,961] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155 | …_id"] == "64")["value"].startswith(" ") | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:49:41 | 48 | def build(index=0): 49 | raw=(REPO/PATHS[index]).read_bytes();g=json.loads(raw);sg=g["definitions"]["subgraphs"][0] | ^ 50 | manifest=json.loads((REF/"sources.json").read_bytes())["sources"] 51 | sources=[];trees={} | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:49:59 | 48 | def build(index=0): 49 | raw=(REPO/PATHS[index]).read_bytes();g=json.loads(raw);sg=g["definitions"]["subgraphs"][0] | ^ 50 | manifest=json.loads((REF/"sources.json").read_bytes())["sources"] 51 | sources=[];trees={} | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:51:15 | 49 | raw=(REPO/PATHS[index]).read_bytes();g=json.loads(raw);sg=g["definitions"]["subgraphs"][0] 50 | manifest=json.loads((REF/"sources.json").read_bytes())["sources"] 51 | sources=[];trees={} | ^ 52 | for e in manifest: 53 | data=(REF/e["local_file"]).read_bytes() | E501 Line too long (350 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:55:101 | 53 | … 54 | … 55 | …(data.decode().splitlines())],claim="准确声明实现不可得的有界记录,非schema/许可依据" if e["id"]=="llama-unavailable" else "准确1.2.5发布成员/CRC/SHA;整包SHA与Git绑定未知" if e["id"]=="showtext" else "本图准确Git声明静态参考与许可;不认证安装/模型许可")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 56 | … 57 | …").read_bytes()) | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:56:37 | 54 | assert hashlib.sha256(data).hexdigest()==e["sha256"] 55 | sources.append(dict(e,local_file="../krea-auto-reference/"+e["local_file"],lines=[1,len(data.decode().splitlines())],claim="… 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) | ^ 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:57:54 | 55 | sources.append(dict(e,local_file="../krea-auto-reference/"+e["local_file"],lines=[1,len(data.decode().splitlines())],claim="… 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) | ^ 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] 59 | scopes=[("root","",g),("261","/definitions/subgraphs/0",sg)] | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:58:14 | 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] | ^ 59 | scopes=[("root","",g),("261","/definitions/subgraphs/0",sg)] 60 | for scope,prefix,graph in scopes: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:58:26 | 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] | ^ 59 | scopes=[("root","",g),("261","/definitions/subgraphs/0",sg)] 60 | for scope,prefix,graph in scopes: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:58:35 | 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] | ^ 59 | scopes=[("root","",g),("261","/definitions/subgraphs/0",sg)] 60 | for scope,prefix,graph in scopes: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:58:43 | 56 | if e["file"].endswith(".py"):trees[e["local_file"]]=ast.parse(data) 57 | prose=json.loads((OUT/"prose.json").read_bytes());editorial=json.loads((OUT/"editorial.json").read_bytes()) 58 | fields=[];comments=[];empty=[];flow=[];bindings=[] | ^ 59 | scopes=[("root","",g),("261","/definitions/subgraphs/0",sg)] 60 | for scope,prefix,graph in scopes: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:62:66 | 60 | for scope,prefix,graph in scopes: 61 | for i,n in enumerate(graph["nodes"]): 62 | nid=(scope+":" if scope!="root" else "")+str(n["id"]);ptr=f"{prefix}/nodes/{i}";cls=n["type"] | ^ 63 | if cls=="MarkdownNote": 64 | comments.append(dict(node_id=nid,pointer=ptr+"/widgets_values/0",named_pointer=ptr+"/widgets_values_named/text",text=n… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:62:92 | 60 | for scope,prefix,graph in scopes: 61 | for i,n in enumerate(graph["nodes"]): 62 | nid=(scope+":" if scope!="root" else "")+str(n["id"]);ptr=f"{prefix}/nodes/{i}";cls=n["type"] | ^ 63 | if cls=="MarkdownNote": 64 | comments.append(dict(node_id=nid,pointer=ptr+"/widgets_values/0",named_pointer=ptr+"/widgets_values_named/text",text=n… | E501 Line too long (105 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:62:101 | 60 | for scope,prefix,graph in scopes: 61 | for i,n in enumerate(graph["nodes"]): 62 | nid=(scope+":" if scope!="root" else "")+str(n["id"]);ptr=f"{prefix}/nodes/{i}";cls=n["type"] | ^^^^^ 63 | if cls=="MarkdownNote": 64 | comments.append(dict(node_id=nid,pointer=ptr+"/widgets_values/0",named_pointer=ptr+"/widgets_values_named/text",text=n… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:64:198 | 62 | … 63 | … 64 | …t=n["widgets_values"][0],meaning=prose["notes"][nid],evidence=[]));continue | ^ 65 | … 66 | …1.2.5":"showtext","20571a3cf504b8308781d3cad2e432444ec3d75b":"llama-unavailable"}.get(ver,"unknown") | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:68:20 | 66 | … key={"0.25.0":"core0250","0.28.0":"core0280","0.34.2":"core0342","2864e1542d6e03e4429e919a02cffed081039cfb":"painter","1.2.5":"s… 67 | … symbol={"PrimitiveStringMultiline":"StringMultiline","ComfySwitchNode":"SwitchNode","ShowText|pysssss":"ShowText"}.get(cls,cls) 68 | … refs=[];schemas={};candidates=[] | ^ 69 | … for j,e in enumerate(manifest): 70 | … if e["id"]!=key or not e["file"].endswith(".py") or e["file"]=="comfy/samplers.py":continue | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:68:31 | 66 | … key={"0.25.0":"core0250","0.28.0":"core0280","0.34.2":"core0342","2864e1542d6e03e4429e919a02cffed081039cfb":"painter","1.2.5":"s… 67 | … symbol={"PrimitiveStringMultiline":"StringMultiline","ComfySwitchNode":"SwitchNode","ShowText|pysssss":"ShowText"}.get(cls,cls) 68 | … refs=[];schemas={};candidates=[] | ^ 69 | … for j,e in enumerate(manifest): 70 | … if e["id"]!=key or not e["file"].endswith(".py") or e["file"]=="comfy/samplers.py":continue | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:70:99 | 68 | refs=[];schemas={};candidates=[] 69 | for j,e in enumerate(manifest): 70 | if e["id"]!=key or not e["file"].endswith(".py") or e["file"]=="comfy/samplers.py":continue | ^ 71 | tree=trees[e["local_file"]] 72 | for c in tree.body: | E501 Line too long (107 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:70:101 | 68 | refs=[];schemas={};candidates=[] 69 | for j,e in enumerate(manifest): 70 | if e["id"]!=key or not e["file"].endswith(".py") or e["file"]=="comfy/samplers.py":continue | ^^^^^^^ 71 | tree=trees[e["local_file"]] 72 | for c in tree.body: | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:73:72 | 71 | … tree=trees[e["local_file"]] 72 | … for c in tree.body: 73 | … if not isinstance(c,ast.ClassDef) or c.name!=symbol:continue | ^ 74 | … sources.append(dict(sources[j],lines=[c.lineno,c.end_lineno],claim=f"节点{nid}准确{ver}注册/schema/方法静态参考"));refs.exte… 75 | … if cls=="LoraLoaderModelOnly": | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:74:123 | 72 | … for c in tree.body: 73 | … if not isinstance(c,ast.ClassDef) or c.name!=symbol:continue 74 | … sources.append(dict(sources[j],lines=[c.lineno,c.end_lineno],claim=f"节点{nid}准确{ver}注册/schema/方法静态参考"));refs.exte… | ^ 75 | … if cls=="LoraLoaderModelOnly": 76 | … parent=next(c for c in tree.body if isinstance(c,ast.ClassDef) and c.name=="LoraLoader") | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:74:155 | 72 | … 73 | … 74 | … {ver}注册/schema/方法静态参考"));refs.extend([j,len(sources)-1]);schemas.update(schema_for(c));candidates.append(dict(source=j,symbo… | ^ 75 | … 76 | …LoraLoader") | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:74:185 | 72 | … 73 | … 74 | … "));refs.extend([j,len(sources)-1]);schemas.update(schema_for(c));candidates.append(dict(source=j,symbol=symbol,lines=[c.lineno,c.en… | ^ 75 | … 76 | … | E501 Line too long (112 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:76:101 | 74 | … sources.append(dict(sources[j],lines=[c.lineno,c.end_lineno],claim=f"节点{nid}准确{ver}注册/schema/方法静态参考"));refs.… 75 | … if cls=="LoraLoaderModelOnly": 76 | … parent=next(c for c in tree.body if isinstance(c,ast.ClassDef) and c.name=="LoraLoader") | ^^^^^^^^^^^^ 77 | … sources.append(dict(sources[j],lines=[parent.lineno,parent.end_lineno],claim="准确父类LoRA方法/加载条件,不执行"));r… 78 | … assert len(candidates)==(0 if key in ["unknown","llama-unavailable"] else 1),(nid,candidates) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:77:125 | 75 | … 76 | …,ast.ClassDef) and c.name=="LoraLoader") 77 | …eno,parent.end_lineno],claim="准确父类LoRA方法/加载条件,不执行"));refs.append(len(sources)-1) | ^ 78 | …ilable"] else 1),(nid,candidates) 79 | …on=ver,source_id=key,candidates=candidates)) | E501 Line too long (105 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:78:101 | 76 | … parent=next(c for c in tree.body if isinstance(c,ast.ClassDef) and c.name=="LoraLoader") 77 | … sources.append(dict(sources[j],lines=[parent.lineno,parent.end_lineno],claim="准确父类LoRA方法/加载条件,不执行"));r… 78 | … assert len(candidates)==(0 if key in ["unknown","llama-unavailable"] else 1),(nid,candidates) | ^^^^^ 79 | … bindings.append(dict(node_id=nid,class_type=cls,source_version=ver,source_id=key,candidates=candidates)) 80 | … refs += [j for j,e in enumerate(manifest) if (e["id"]==key and e["file"] in ["__init__.py","comfy/samplers.py","web/js/showText.… | E501 Line too long (291 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:80:101 | 78 | …andidates) 79 | …ndidates=candidates)) 80 | …t__.py","comfy/samplers.py","web/js/showText.js"]) or (e["id"]=="frontend" and e["file"].endswith(("widgets.ts","LGraphNode.ts","SubgraphNode.ts"))) or (key=="llama-unavailable" and e["id"]==key)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 81 | … 82 | …),nid+" 原输入/输出 "+json.dumps({k:n[k] for k in ["inputs","outputs"]},ensure_ascii=False),nid+" 原具名保存 "+json.dumps(n.get("widgets_values_named","missing"),ensure_ascii=False)] | E501 Line too long (277 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:82:98 | 80 | …t__.py","comfy/samplers.py","web/js/showText.js"]) or (e["id"]=="frontend" and e["file"].endswith(("widgets.ts","LGraphNode.ts","SubgraphNode.ts"))) or (key=="llama-unavailable" and e["id… 81 | … 82 | …),nid+" 原输入/输出 "+json.dumps({k:n[k] for k in ["inputs","outputs"]},ensure_ascii=False),nid+" 原具名保存 "+json.dumps(n.get("widgets_values_named","missing"),ensure_ascii=False)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 83 | … 84 | …sing",effect=effect));continue | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:84:117 | 82 | … flow += [effect,nid+" 原属性 "+json.dumps(n.get("properties",{}),ensure_ascii=False),nid+" 原输入/输出 "+json.dumps({k:n[k] for … 83 | … if "widgets_values" not in n: 84 | … empty.append(dict(node_id=nid,class_type=cls,pointer=ptr,scope=scope,state="missing",effect=effect));continue | ^ 85 | … named=n["widgets_values_named"];assert len(named)==len(n["widgets_values"]) 86 | … names=list(named) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:85:44 | 83 | if "widgets_values" not in n: 84 | empty.append(dict(node_id=nid,class_type=cls,pointer=ptr,scope=scope,state="missing",effect=effect));continue 85 | named=n["widgets_values_named"];assert len(named)==len(n["widgets_values"]) | ^ 86 | names=list(named) 87 | for j,value in enumerate(n["widgets_values"]): | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:88:30 | 86 | names=list(named) 87 | for j,value in enumerate(n["widgets_values"]): 88 | name=names[j];assert canonical(value)==canonical(named[name]) | ^ 89 | found=[k for k,x in enumerate(n["inputs"]) if x["name"]==name];inp=found[0] if len(found)==1 else None 90 | linked=inp is not None and n["inputs"][inp].get("link") is not None | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:89:79 | 87 | for j,value in enumerate(n["widgets_values"]): 88 | name=names[j];assert canonical(value)==canonical(named[name]) 89 | found=[k for k,x in enumerate(n["inputs"]) if x["name"]==name];inp=found[0] if len(found)==1 else None | ^ 90 | linked=inp is not None and n["inputs"][inp].get("link") is not None 91 | unknown=key in ["llama-unavailable","unknown"] | E501 Line too long (118 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:89:101 | 87 | for j,value in enumerate(n["widgets_values"]): 88 | name=names[j];assert canonical(value)==canonical(named[name]) 89 | found=[k for k,x in enumerate(n["inputs"]) if x["name"]==name];inp=found[0] if len(found)==1 else None | ^^^^^^^^^^^^^^^^^^ 90 | linked=inp is not None and n["inputs"][inp].get("link") is not None 91 | unknown=key in ["llama-unavailable","unknown"] | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:98:41 | 96 | limits="准确schema/范围/SDK语义/输入映射未知;具名键仅互证保存值,不套a69/f2209或传播宿主0.20.1,不认证promoted" 97 | unit="未知:保存原JSON类型,不猜token、显存、种子或SDK单位" 98 | elif type(value) is bool:unit="布尔选择,无物理单位;保存态不是运行或副作用保证" | ^ 99 | elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" 100 | elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:99:64 | 97 | … unit="未知:保存原JSON类型,不猜token、显存、种子或SDK单位" 98 | … elif type(value) is bool:unit="布尔选择,无物理单位;保存态不是运行或副作用保证" 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" | ^ 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" | E501 Line too long (123 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:99:90 | 97 | … unit="未知:保存原JSON类型,不猜token、显存、种子或SDK单位" 98 | … elif type(value) is bool:unit="布尔选择,无物理单位;保存态不是运行或副作用保证" 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" | ^^^^^^^^^^^^^^^^^^^^^^^ 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:100:48 | 98 | … elif type(value) is bool:unit="布尔选择,无物理单位;保存态不是运行或副作用保证" 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" | ^ 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" | E501 Line too long (102 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:100:82 | 98 | … elif type(value) is bool:unit="布尔选择,无物理单位;保存态不是运行或副作用保证" 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" | ^ 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:101:73 | 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" | ^ 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" 103 | … elif name=="multiple":unit="像素对齐步长;准确实现round就近倍数,仅公式参考" | E501 Line too long (135 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:101:91 | 99 | … elif name in ["cfg","denoise","strength_model"]:unit="无物理单位接口系数,原JSON int/float与schema默认分列" 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" 103 | … elif name=="multiple":unit="像素对齐步长;准确实现round就近倍数,仅公式参考" | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:102:40 | 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" | ^ 103 | … elif name=="multiple":unit="像素对齐步长;准确实现round就近倍数,仅公式参考" 104 | … if name=="control_after_generate" and not unknown: | E501 Line too long (115 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:102:88 | 100 | … elif name in ["width","height"]:unit="像素请求缓存;本图49经98/99覆盖,不保证最终尺寸" 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" | ^^^^^^^^^^^^^^^ 103 | … elif name=="multiple":unit="像素对齐步长;准确实现round就近倍数,仅公式参考" 104 | … if name=="control_after_generate" and not unknown: | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:103:38 | 101 | … elif name in ["seed","steps","batch_size","group_index"]:unit="整数数量/索引接口;原值不是最终执行值,不计算随机或正则" 102 | … elif name=="megapixels":unit="准确实现MP基数1024×1024;JSON int2与FLOAT默认1.0分列,不试算/保证2MP" 103 | … elif name=="multiple":unit="像素对齐步长;准确实现round就近倍数,仅公式参考" | ^ 104 | … if name=="control_after_generate" and not unknown: 105 | … default="准确frontend1.45.20种子辅助默认randomize,不是后端seed默认" | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:107:59 | 105 | … default="准确frontend1.45.20种子辅助默认randomize,不是后端seed默认" 106 | … limits="fixed/increment/decrement/randomize;只静态参考,不执行随机/历史恢复" 107 | … if cls=="PainterVRAM" and name=="reserved":unit="源码标签GB,实际以1024**3换算字节;default0.6/min-2.0/step0.1,无显式max;aut… | ^ 108 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.25.0枚举不含krea2,getattr fallback不证明支持,不借0.26.0补缺口" 109 | … if cls=="ShowText|pysssss": | E501 Line too long (162 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:107:88 | 105 | …mize,不是后端seed默认" 106 | … 静态参考,不执行随机/历史恢复" 107 | …源码标签GB,实际以1024**3换算字节;default0.6/min-2.0/step0.1,无显式max;auto偏移非确定空闲显存" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 108 | … 确core0.25.0枚举不含krea2,getattr fallback不证明支持,不借0.26.0补缺口" 109 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:108:54 | 106 | … limits="fixed/increment/decrement/randomize;只静态参考,不执行随机/历史恢复" 107 | … if cls=="PainterVRAM" and name=="reserved":unit="源码标签GB,实际以1024**3换算字节;default0.6/min-2.0/step0.1,无显式max;aut… 108 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.25.0枚举不含krea2,getattr fallback不证明支持,不借0.26.0补缺口" | ^ 109 | … if cls=="ShowText|pysssss": 110 | … default="未知:历史展示缓存,无独立后端text_0默认" | E501 Line too long (139 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:108:93 | 106 | …randomize;只静态参考,不执行随机/历史恢复" 107 | …ved":unit="源码标签GB,实际以1024**3换算字节;default0.6/min-2.0/step0.1,无显式max;auto偏移非确定空闲显存" 108 | …limits+=";准确core0.25.0枚举不含krea2,getattr fallback不证明支持,不借0.26.0补缺口" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 109 | … 110 | … 后端text_0默认" | E501 Line too long (138 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:111:91 | 109 | … if cls=="ShowText|pysssss": 110 | … default="未知:历史展示缓存,无独立后端text_0默认" 111 | … limits="准确1.2.5 INPUT_IS_LIST/OUTPUT_IS_LIST与ui.text/result分列;961码点缓存不是本次生成结果,不构造输入或认证恢复" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 112 | … if cls=="ComfySwitchNode":limits+=";源true缓存被407外线覆盖;未知273的*输出接BOOLEAN是源事实,不修线、不判必选分支或保证LLM无… 113 | … fields.append(dict(node_id=nid,definition_node_id=str(n["id"]),scope=scope,class_type=cls,field=name,label=LABELS.get(name,name… | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:112:42 | 110 | … default="未知:历史展示缓存,无独立后端text_0默认" 111 | … limits="准确1.2.5 INPUT_IS_LIST/OUTPUT_IS_LIST与ui.text/result分列;961码点缓存不是本次生成结果,不构造输入或认证恢复" 112 | … if cls=="ComfySwitchNode":limits+=";源true缓存被407外线覆盖;未知273的*输出接BOOLEAN是源事实,不修线、不判必选分支或保证LL… | ^ 113 | … fields.append(dict(node_id=nid,definition_node_id=str(n["id"]),scope=scope,class_type=cls,field=name,label=LABELS.get(name,… 114 | … flow += [f"节点{nid}准确schema {name}:default={default};{limits}。仅静态声明,不认证目标恢复。" for name,(default,limits) in … | E501 Line too long (158 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:112:85 | 110 | …_0默认" 111 | …IST与ui.text/result分列;961码点缓存不是本次生成结果,不构造输入或认证恢复" 112 | … 407外线覆盖;未知273的*输出接BOOLEAN是源事实,不修线、不判必选分支或保证LLM无读取/加载副作用" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 113 | …id=str(n["id"]),scope=scope,class_type=cls,field=name,label=LABELS.get(name,name+"保存值"),pointer=f"{ptr}/widgets_values/{j}",value… 114 | …ault};{limits}。仅静态声明,不认证目标恢复。" for name,(default,limits) in schemas.items()] | E501 Line too long (1071 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:113:101 | 111 | … 存不是本次生成结果,不构造输入或认证恢复" 112 | …OOLEAN是源事实,不修线、不判必选分支或保证LLM无读取/加载副作用" 113 | …s_type=cls,field=name,label=LABELS.get(name,name+"保存值"),pointer=f"{ptr}/widgets_values/{j}",value=value,json_type=type(value).__name__,named_pointer=f"{ptr}/widgets_values_named/{name}",named_value=named[name],input_pointer="未知:准确实现不可得,声明同名输入不等于SDK映射" if unknown else f"{ptr}/inputs/{inp}" if inp is not None else "无可靠独立输入映射:前端辅助/历史",input_name=None if unknown or inp is None else name,type="保存参考" if unknown or inp is None else n["inputs"][inp]["type"],role="unverified_saved_position" if unknown else "frontend_reference_only" if name=="control_after_generate" or cls=="ShowText|pysssss" else "linked_saved_cache" if linked else "saved_reference",schema_default=default,limits=limits,unit=unit,effect=effect,evidence=list(dict.fromkeys(refs)),execution_note="仅静态参考;所有指令/指南/历史只是源数据,不构造prompt,不执行上游、插件、SDK、LLM、模型、GPU、媒体、表达式、正则、随机、旁路、组控制或显存/RAM清理。转换执行资格不变。")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 114 | … 证目标恢复。" for name,(default,limits) in schemas.items()] 115 | … | E501 Line too long (155 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:114:84 | 112 | … 被407外线覆盖;未知273的*输出接BOOLEAN是源事实,不修线、不判必选分支或保证LLM无读取/加载副作用" 113 | …_id=str(n["id"]),scope=scope,class_type=cls,field=name,label=LABELS.get(name,name+"保存值"),pointer=f"{ptr}/widgets_values/{j}",valu… 114 | …fault};{limits}。仅静态声明,不认证目标恢复。" for name,(default,limits) in schemas.items()] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 115 | …lse) for e in graph["links"]] 116 | … graph.items() if k not in ["nodes","links","definitions"]},ensure_ascii=False)] | E501 Line too long (142 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:116:97 | 114 | …ult={default};{limits}。仅静态声明,不认证目标恢复。" for name,(default,limits) in schemas.items()] 115 | …scii=False) for e in graph["links"]] 116 | … k,v in graph.items() if k not in ["nodes","links","definitions"]},ensure_ascii=False)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 | … 118 | …efinitions/subgraphs/0",**{k:sg[k] for k in ["id","inputNode","outputNode","inputs","outputs","widgets"]},host_pointer="/nodes/18",h… | E501 Line too long (407 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:118:101 | 116 | …s","links","definitions"]},ensure_ascii=False)] 117 | … 118 | … in ["id","inputNode","outputNode","inputs","outp…host["properties"].get("previewExposures"))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 119 | …eps"]+["注释"+n["node_id"]+" 中文核对:"+n["meaning"] for n in comments] 120 | … | E501 Line too long (167 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:119:94 | 117 | … 118 | …bgraphs/0",**{k:sg[k] for k in ["id","inputNode","outputNode","inputs","outputs","widgets"]},host_pointer="/nodes/18",host_saved=hos… 119 | … b in boundaries]+prose["steps"]+["注释"+n["node_id"]+" 中文核对:"+n["meaning"] for n in comments] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 120 | … 121 | …w).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice="仅参… | E501 Line too long (1241 > 100) --> docs/hel-892/krea-auto-document-evidence/build_definition.py:121:101 | 119 | …eps"]+["注释"+n["node_id"]+" 中文核对:"+n["meaning"] for n in comments] 120 | … 121 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice="仅参考:LLM准确实现不可得、未知组旁路、宿主恢复、krea2枚举及Save输出冲突保留;目标安装/许可/效果未知,资格不变。",user_overview=prose["overview"],versions=[f"{e['id']} {e['tag']} commit {e['commit']} tree {e['tree']};许可{e['license_file']}" for e in {e["id"]:e for e in manifest}.values()]+["旧89块4612位置/146注释冻结;新增77标量/两Note,总90图4689位置/148注释仅参考。local_file以docs/hel-892/krea-auto-document-evidence为基准。"],counts=dict(saved_fields=77,root_saved_fields=46,internal_saved_fields=31,linked_saved_fields=sum(f["role"]=="linked_saved_cache" for f in fields),boundary_saved_fields=0,frontend_only=sum(f["role"]=="frontend_reference_only" for f in fields),source_nodes=24,root_nodes=21,internal_nodes=3,physical_edges=33,source_notes=2,saved_objects=0,history_objects=0,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=sources,comments=comments,flow=flow,flow_evidence=list(range(len(sources))),zero_saved_nodes=empty,boundaries=boundaries,node_bindings=bindings,steps=[prose["overview"]]+prose["steps"]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 122 | … 123 | … ",control_after_generate="前端种子控制辅助",steps="采样步数",cfg="引导系数",sampler_name="采样器",scheduler="调度器",denoise="降噪系数",aspect_ratio="宽高比选择",megapixels="目标MP保存值",multiple="像素对齐步长",text="完整旧英文缓存",value="完整文本保存值",system_prompt="完整系统文本缓存",custom_prompt="完整自定义文本缓存",preset_prompt="预设提示缓存",reserved="预留显存偏移",mode="模式选择",clean_gpu_before="预先清理GPU选择",switch="被外线覆盖的切换缓存",text_0="完整历史展示缓存",load_mtp="具名load_mtp保存值",present_penalty="原拼present_penalty保存值",filename_prefix="保存文件名前缀",unet_name="扩散模型引用",clip_name="文本模型引用",vae_name="VAE文件引用",type="文本编码器类型",device="设备选择",lora_name="唯一美学LoRA引用",strength_model="LoRA模型强度",regex_pattern="完整正则保存字符串",group_index="正则组索引",string="正则输入空串") | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:54:53 | 52 | def main(): 53 | url="https://api.comfy.org/nodes/comfyui-custom-scripts/versions/1.2.5" 54 | with urllib.request.urlopen(url,timeout=30) as r:raw=r.read(500000) | ^ 55 | (REF/"showtext-registry.json").write_bytes(raw) 56 | meta=json.loads(raw);archive=Remote(meta.get("downloadUrl",meta.get("download_url"))) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:56:25 | 54 | with urllib.request.urlopen(url,timeout=30) as r:raw=r.read(500000) 55 | (REF/"showtext-registry.json").write_bytes(raw) 56 | meta=json.loads(raw);archive=Remote(meta.get("downloadUrl",meta.get("download_url"))) | ^ 57 | rows=[];members=[];now=datetime.datetime.now(datetime.timezone.utc).isoformat() 58 | with zipfile.ZipFile(archive) as z: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:57:12 | 55 | (REF/"showtext-registry.json").write_bytes(raw) 56 | meta=json.loads(raw);archive=Remote(meta.get("downloadUrl",meta.get("download_url"))) 57 | rows=[];members=[];now=datetime.datetime.now(datetime.timezone.utc).isoformat() | ^ 58 | with zipfile.ZipFile(archive) as z: 59 | for info in z.infolist(): | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:57:23 | 55 | (REF/"showtext-registry.json").write_bytes(raw) 56 | meta=json.loads(raw);archive=Remote(meta.get("downloadUrl",meta.get("download_url"))) 57 | rows=[];members=[];now=datetime.datetime.now(datetime.timezone.utc).isoformat() | ^ 58 | with zipfile.ZipFile(archive) as z: 59 | for info in z.infolist(): | E501 Line too long (114 > 100) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:62:101 | 60 | … members.append(dict(name=info.filename,size=info.file_size,crc=info.CRC)) 61 | … f=info.filename 62 | … if f not in ["py/show_text.py","web/js/showText.js","__init__.py","LICENSE","pyproject.toml"]:continue | ^^^^^^^^^^^^^^ 63 | … data=z.read(f);name="showtext__"+f.replace("/","__");(REF/name).write_bytes(data) 64 | … rows.append(dict(id="showtext",file=f,local_file=name,tag="1.2.5",commit="发布成员到Git绑定未知",tree="未知",url=archive.url,sha… | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:62:106 | 60 | … members.append(dict(name=info.filename,size=info.file_size,crc=info.CRC)) 61 | … f=info.filename 62 | … if f not in ["py/show_text.py","web/js/showText.js","__init__.py","LICENSE","pyproject.toml"]:continue | ^ 63 | … data=z.read(f);name="showtext__"+f.replace("/","__");(REF/name).write_bytes(data) 64 | … rows.append(dict(id="showtext",file=f,local_file=name,tag="1.2.5",commit="发布成员到Git绑定未知",tree="未知",url=archive.url,sha… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:63:27 | 61 | f=info.filename 62 | if f not in ["py/show_text.py","web/js/showText.js","__init__.py","LICENSE","pyproject.toml"]:continue 63 | data=z.read(f);name="showtext__"+f.replace("/","__");(REF/name).write_bytes(data) | ^ 64 | rows.append(dict(id="showtext",file=f,local_file=name,tag="1.2.5",commit="发布成员到Git绑定未知",tree="未知",url=archive.u… 65 | (REF/"showtext-members.json").write_text(json.dumps(members,indent=2)+"\n") | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:63:65 | 61 | f=info.filename 62 | if f not in ["py/show_text.py","web/js/showText.js","__init__.py","LICENSE","pyproject.toml"]:continue 63 | data=z.read(f);name="showtext__"+f.replace("/","__");(REF/name).write_bytes(data) | ^ 64 | rows.append(dict(id="showtext",file=f,local_file=name,tag="1.2.5",commit="发布成员到Git绑定未知",tree="未知",url=archive.u… 65 | (REF/"showtext-members.json").write_text(json.dumps(members,indent=2)+"\n") | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/fetch_release.py:70:24 | 68 | print("PASS Range necessary release texts",len(rows),"whole package not acquired") 69 | 70 | if __name__=="__main__":main() | ^ E501 Line too long (137 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:25:101 | 23 | … 24 | … 25 | …pp_vllm" and report["requested_commit"] == "20571a3cf504b8308781d3cad2e432444ec3d75b" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 | …== 128 and report["raw"]["status"] == 404 27 | …h"]["stderr"] | E501 Line too long (129 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:28:101 | 26 | … assert report["git_fetch"]["exit_code"] == 128 and report["raw"]["status"] == 404 27 | … assert "not our ref" in report["git_fetch"]["stderr"] 28 | … assert hashlib.sha256((REF/"llama-prior-unavailable.json").read_bytes()).hexdigest() == report["prior_record_sha256"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 29 | … checks.append(dict(id=e["id"],sha256=e["sha256"],proof="exact commit fetch rejected/raw404; no substitute schema/implementation/… 30 | … continue | E501 Line too long (150 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:29:101 | 27 | …derr"] 28 | …able.json").read_bytes()).hexdigest() == report["prior_record_sha256"] 29 | …],proof="exact commit fetch rejected/raw404; no substitute schema/implementation/license")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 | … 31 | … | E501 Line too long (157 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:40:101 | 38 | ….read_bytes()) 39 | …in proof) 40 | …6=e["sha256"],proof="accurate 1.2.5 registry/Range member CRC+SHA; whole archive/Git unknown")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | … 42 | … | E501 Line too long (101 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:87:101 | 85 | ) 86 | assert inv["sha256"] == "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957" 87 | assert [(s["nodes"],s["edges"],s["named_nodes"]) for s in inv["scopes"]] == [(21,20,18),(3,13,3)] | ^ 88 | assert len(inv["fields"]) == 77 and [(n["node"],n["characters"]) for n in inv["notes"]] == [(48,1569),(50,1965)] 89 | assert [z["node"] for z in inv["empty"]] == [55,59,273] and all(z["state"] == "missing" for z in inv["empty"]) | E501 Line too long (116 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:88:101 | 86 | assert inv["sha256"] == "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957" 87 | assert [(s["nodes"],s["edges"],s["named_nodes"]) for s in inv["scopes"]] == [(21,20,18),(3,13,3)] 88 | assert len(inv["fields"]) == 77 and [(n["node"],n["characters"]) for n in inv["notes"]] == [(48,1569),(50,1965)] | ^^^^^^^^^^^^^^^^ 89 | assert [z["node"] for z in inv["empty"]] == [55,59,273] and all(z["state"] == "missing" for z in inv["empty"]) 90 | assert inv["extra"]["frontendVersion"] == "1.45.20" | E501 Line too long (114 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:89:101 | 87 | assert [(s["nodes"],s["edges"],s["named_nodes"]) for s in inv["scopes"]] == [(21,20,18),(3,13,3)] 88 | assert len(inv["fields"]) == 77 and [(n["node"],n["characters"]) for n in inv["notes"]] == [(48,1569),(50,1965)] 89 | assert [z["node"] for z in inv["empty"]] == [55,59,273] and all(z["state"] == "missing" for z in inv["empty"]) | ^^^^^^^^^^^^^^ 90 | assert inv["extra"]["frontendVersion"] == "1.45.20" 91 | from build_definition import PATHS, REPO | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:92:47 | 90 | assert inv["extra"]["frontendVersion"] == "1.45.20" 91 | from build_definition import PATHS, REPO 92 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["… | ^ 93 | def ptr(p): 94 | o=g | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:92:83 | 90 | assert inv["extra"]["frontendVersion"] == "1.45.20" 91 | from build_definition import PATHS, REPO 92 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["… | ^ 93 | def ptr(p): 94 | o=g | E501 Line too long (162 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:92:101 | 90 | … 91 | … 92 | …]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["id"]:n for n in sg["nodes"]} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 93 | … 94 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:92:121 | 90 | assert inv["extra"]["frontendVersion"] == "1.45.20" 91 | from build_definition import PATHS, REPO 92 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["… | ^ 93 | def ptr(p): 94 | o=g | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:95:41 | 93 | def ptr(p): 94 | o=g 95 | for k in p.strip("/").split("/"):o=o[int(k)] if isinstance(o,list) else o[k] | ^ 96 | return o 97 | for a,b in zip(inv["fields"],block["fields"],strict=True): | E501 Line too long (130 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:99:101 | 97 | for a,b in zip(inv["fields"],block["fields"],strict=True): 98 | assert a["pointer"] == b["pointer"] and a["json_type"] == b["json_type"] 99 | assert canonical(a["value"]) == canonical(b["value"]) == canonical(b["named_value"]) == canonical(ptr(b["named_pointer"])) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 100 | assert type(b["value"]) not in (list,dict) 101 | for n in block["comments"]:assert ptr(n["pointer"]) == ptr(n["named_pointer"]) == n["text"] | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:101:31 | 99 | assert canonical(a["value"]) == canonical(b["value"]) == canonical(b["named_value"]) == canonical(ptr(b["named_pointer"])) 100 | assert type(b["value"]) not in (list,dict) 101 | for n in block["comments"]:assert ptr(n["pointer"]) == ptr(n["named_pointer"]) == n["text"] | ^ 102 | assert all(n["mode"] == 0 for n in list(nodes.values())+list(internal.values())) 103 | assert len(nodes[261]["widgets_values"]) == 9 and len(nodes[261]["inputs"]) == len(sg["inputs"]) == 10 | E501 Line too long (106 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:103:101 | 101 | for n in block["comments"]:assert ptr(n["pointer"]) == ptr(n["named_pointer"]) == n["text"] 102 | assert all(n["mode"] == 0 for n in list(nodes.values())+list(internal.values())) 103 | assert len(nodes[261]["widgets_values"]) == 9 and len(nodes[261]["inputs"]) == len(sg["inputs"]) == 10 | ^^^^^^ 104 | assert nodes[261]["inputs"][0]["name"] == "images" and nodes[261]["inputs"][0]["link"] is None 105 | assert [len(nodes[n]["widgets_values"][0]) for n in [64,274,52,271]] == [139,5339,479,961] | E501 Line too long (107 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:107:101 | 105 | assert [len(nodes[n]["widgets_values"][0]) for n in [64,274,52,271]] == [139,5339,479,961] 106 | assert nodes[64]["widgets_values"][0].startswith(" ") 107 | assert len(nodes[261]["widgets_values"][6]) == 1505 and len(internal[194]["widgets_values"][2]) == 1535 | ^^^^^^^ 108 | assert nodes[261]["widgets_values"][6] != internal[194]["widgets_values"][2] 109 | assert internal[192]["widgets_values_named"]["load_mtp"] is False | E501 Line too long (146 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:110:101 | 108 | …4]["widgets_values"][2] 109 | …p"] is False 110 | …_penalty"] == 1 and type(internal[193]["widgets_values_named"]["present_penalty"]) is int | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 111 | …ndswith("BF16.gguf") and internal[192]["widgets_values_named"]["mmproj"].endswith("F32.gguf") 112 | …uts"]) and nodes[268]["outputs"][0]["links"] == [] | E501 Line too long (150 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:111:101 | 109 | …] is False 110 | …enalty"] == 1 and type(internal[193]["widgets_values_named"]["present_penalty"]) is int 111 | …swith("BF16.gguf") and internal[192]["widgets_values_named"]["mmproj"].endswith("F32.gguf") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 112 | …s"]) and nodes[268]["outputs"][0]["links"] == [] 113 | …[275]["inputs"][2]["link"] == 407 | E501 Line too long (107 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:112:101 | 110 | assert internal[193]["widgets_values_named"]["present_penalty"] == 1 and type(internal[193]["widgets_values_named"]["present_pena… 111 | assert nodes[261]["widgets_values_named"]["mmproj"].endswith("BF16.gguf") and internal[192]["widgets_values_named"]["mmproj"].end… 112 | assert all(i["link"] is None for i in nodes[268]["inputs"]) and nodes[268]["outputs"][0]["links"] == [] | ^^^^^^^ 113 | assert nodes[275]["widgets_values"] == [True] and nodes[275]["inputs"][2]["link"] == 407 114 | assert nodes[273]["outputs"][0]["type"] == "*" and "ver" not in nodes[273]["properties"] | E501 Line too long (284 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:116:101 | 114 | … 115 | … 116 | …271,0),400:(274,0,261,7),405:(64,0,261,6),406:(64,0,275,0),402:(271,0,275,1),403:(275,0,52,1),407:(273,0,275,2),102:(60,0,54,0),97:(55,0,29,0)}.items():assert tuple(edges[eid][1:5]) == ends | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 | …z]["inputs"][zi]["link"] == eid 118 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:116:247 | 114 | … 115 | … 116 | …0,52,1),407:(273,0,275,2),102:(60,0,54,0),97:(55,0,29,0)}.items():assert tuple(edges[eid][1:5]) == ends | ^ 117 | … 118 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:117:38 | 115 | edges={e[0]:e for e in g["links"]} 116 | for eid,ends in {77:(53,0,54,3),98:(49,0,53,0),99:(49,1,53,1),369:(261,0,260,0),389:(261,0,271,0),400:(274,0,261,7),405:(64,0,261… 117 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid | ^ 118 | for e in sg["links"]: 119 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"] | E501 Line too long (126 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:117:101 | 115 | edges={e[0]:e for e in g["links"]} 116 | for eid,ends in {77:(53,0,54,3),98:(49,0,53,0),99:(49,1,53,1),369:(261,0,260,0),389:(261,0,271,0),400:(274,0,261,7),405:(64,0,261… 117 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 118 | for e in sg["links"]: 119 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"] | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:119:33 | 117 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid 118 | for e in sg["links"]: 119 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"] | ^ 120 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"] 121 | if e["target_id"] == -20:assert e["id"] in sg["outputs"][e["target_slot"]]["linkIds"] | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:120:13 | 118 | for e in sg["links"]: 119 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"] 120 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"] | ^ 121 | if e["target_id"] == -20:assert e["id"] in sg["outputs"][e["target_slot"]]["linkIds"] 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:121:33 | 119 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"] 120 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"] 121 | if e["target_id"] == -20:assert e["id"] in sg["outputs"][e["target_slot"]]["linkIds"] | ^ 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] 123 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes() | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:122:13 | 120 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"] 121 | if e["target_id"] == -20:assert e["id"] in sg["outputs"][e["target_slot"]]["linkIds"] 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] | ^ 123 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes() 124 | core=ast.parse(source("core0250","nodes.py"));classes={c.name:c for c in core.body if isinstance(c,ast.ClassDef)} | E501 Line too long (126 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:123:101 | 121 | if e["target_id"] == -20:assert e["id"] in sg["outputs"][e["target_slot"]]["linkIds"] 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] 123 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes() | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 124 | core=ast.parse(source("core0250","nodes.py"));classes={c.name:c for c in core.body if isinstance(c,ast.ClassDef)} 125 | ret=next(c.value for c in classes["SaveImage"].body if isinstance(c,ast.Assign) and any(isinstance(t,ast.Name) and t.id == "RETUR… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:124:50 | 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] 123 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes() 124 | core=ast.parse(source("core0250","nodes.py"));classes={c.name:c for c in core.body if isinstance(c,ast.ClassDef)} | ^ 125 | ret=next(c.value for c in classes["SaveImage"].body if isinstance(c,ast.Assign) and any(isinstance(t,ast.Name) and t.id == "RETUR… 126 | enums=[ast.literal_eval(c) for c in ast.walk(classes["CLIPLoader"]) if isinstance(c,ast.List) and all(isinstance(x,ast.Constant) … | E501 Line too long (117 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:124:101 | 122 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"] 123 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes() 124 | core=ast.parse(source("core0250","nodes.py"));classes={c.name:c for c in core.body if isinstance(c,ast.ClassDef)} | ^^^^^^^^^^^^^^^^^ 125 | ret=next(c.value for c in classes["SaveImage"].body if isinstance(c,ast.Assign) and any(isinstance(t,ast.Name) and t.id == "RETUR… 126 | enums=[ast.literal_eval(c) for c in ast.walk(classes["CLIPLoader"]) if isinstance(c,ast.List) and all(isinstance(x,ast.Constant) … | E501 Line too long (197 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:125:101 | 123 | …file"] == file)["local_file"]).read_bytes() 124 | …ody if isinstance(c,ast.ClassDef)} 125 | … and any(isinstance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == () | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 126 | …ce(c,ast.List) and all(isinstance(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)];assert all("krea2" not in v for v in… 127 | …e() | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:125:163 | 123 | …)["local_file"]).read_bytes() 124 | …nce(c,ast.ClassDef)} 125 | …tance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == () | ^ 126 | … and all(isinstance(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)];assert all("krea2" not in v for v in enums) 127 | … | E501 Line too long (222 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:126:101 | 124 | …tance(c,ast.ClassDef)} 125 | …nstance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == () 126 | …t) and all(isinstance(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)];assert all("krea2" not in v for v in enums) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 127 | … 128 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:126:179 | 124 | …ef)} 125 | …) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == () 126 | …nce(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)];assert all("krea2" not in v for v in enums) | ^ 127 | … 128 | … | E501 Line too long (118 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:129:101 | 127 | assert '"PainterVRAM": PainterVRAM' in source("painter","PainterVRAM.py").decode() 128 | assert '"ShowText|pysssss": ShowText' in source("showtext","py/show_text.py").decode() 129 | assert len(block["node_bindings"]) == 22 and len(block["zero_saved_nodes"]) == 3 and len(block["boundaries"]) == 1 | ^^^^^^^^^^^^^^^^^^ 130 | assert sum(f["scope"] == "root" for f in block["fields"]) == 46 131 | (OUT/"node-version-bindings.json").write_text(json.dumps(block["node_bindings"],ensure_ascii=False,indent=2)+"\n") | E501 Line too long (156 > 100) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:133:101 | 131 | …lock["node_bindings"],ensure_ascii=False,indent=2)+"\n") 132 | …=checks,all_checks_pass=True,source_fields=77,source_notes=2,physical_edges=33,upstream_imported=False,llama_accurate_implementation… 133 | …complete notes, one 9-cache/10-input boundary, 33 edge records, preserved unknown identities") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 134 | … 135 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/krea-auto-document-evidence/verify_sources.py:135:26 | 133 | print("PASS exact identities, 77 dual-position scalars, 2 complete notes, one 9-cache/10-input boundary, 33 edge records, preserv… 134 | 135 | if __name__ == "__main__":main() | ^ Found 102 errors.