Files
aigc-home/docs/hel-892/krea-views-document-evidence/ruff-initial.txt
T

809 lines
49 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
E501 Line too long (111 > 100)
--> calliope-backend/tests/test_krea_views_fixed_document.py:155:101
|
153 | def test_long_texts_and_literal_delimiter_are_preserved():
154 | assert len(next(f for f in BLOCK["fields"] if f["node_id"]=="282")["value"]) == 127
155 | assert next(f for f in BLOCK["fields"] if f["node_id"]=="289" and f["field"]=="delimiter")["value"] == "/n"
| ^^^^^^^^^^^
156 | assert len(next(f for f in BLOCK["fields"] if f["node_id"]=="289" and f["field"]=="string_b")["value"]) == 1303
|
E501 Line too long (115 > 100)
--> calliope-backend/tests/test_krea_views_fixed_document.py:156:101
|
154 | assert len(next(f for f in BLOCK["fields"] if f["node_id"]=="282")["value"]) == 127
155 | assert next(f for f in BLOCK["fields"] if f["node_id"]=="289" and f["field"]=="delimiter")["value"] == "/n"
156 | assert len(next(f for f in BLOCK["fields"] if f["node_id"]=="289" and f["field"]=="string_b")["value"]) == 1303
| ^^^^^^^^^^^^^^^
E501 Line too long (173 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:96:101
|
94 | …
95 | …
96 | …ore0270","0.3.75":"core0375","729cda4fade982988a375b01928f515458407a5c":"rebalance"}.get(ver,"unknown")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 | …
98 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:97:27
|
95 | … ver = n.get("properties", {}).get("ver", "未知")
96 | … key = {"0.25.0":"core0250","0.26.0":"core0260","0.27.0":"core0270","0.3.75":"core0375","729cda4fade982988a375b01928f515458407a5c…
97 | … if cls == HOST:key="host-cache"
| ^
98 | … symbol = {
99 | … "PrimitiveStringMultiline": "StringMultiline",
|
E501 Line too long (129 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:167:101
|
165 | ]
166 | if cls == "SeedNode":
167 | refs += [j for j,e in enumerate(manifest) if e["id"] == "core0270" and e["file"].startswith("comfy_api/latest/")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168 | effect = editorial[nid] + f" 原mode={n['mode']}(活动保存态,不认证执行或历史恢复)。"
169 | flow += [
|
E501 Line too long (170 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:171:93
|
169 | …
170 | …
171 | …in n.items() if k not in ["widgets_values", "inputs", "outputs", "properties"]}, ensure_ascii=False),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172 | …, ensure_ascii=False),
173 | …
|
E501 Line too long (163 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:181:101
|
179 | …
180 | …
181 | …er=ptr,scope=scope,state="missing" if "widgets_values" not in n else "empty_list",effect=effect))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182 | …
183 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:191:39
|
189 | default,limits=schemas.get(name,("无显式default;不从源现值补定义默认","保存参考,没有独立后端参数schema"))
190 | unit="完整字符串/枚举/文件引用,无物理单位;不是安装、许可或效果证明"
191 | if type(value) is bool:unit="布尔选择,无物理单位;保存态不保证执行或效果"
| ^
192 | if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
193 | if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:192:46
|
190 | … unit="完整字符串/枚举/文件引用,无物理单位;不是安装、许可或效果证明"
191 | … if type(value) is bool:unit="布尔选择,无物理单位;保存态不保证执行或效果"
192 | … if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
| ^
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
|
E501 Line too long (102 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:192:78
|
190 | … unit="完整字符串/枚举/文件引用,无物理单位;不是安装、许可或效果证明"
191 | … if type(value) is bool:unit="布尔选择,无物理单位;保存态不保证执行或效果"
192 | … if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
| ^
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:193:57
|
191 | … if type(value) is bool:unit="布尔选择,无物理单位;保存态不保证执行或效果"
192 | … if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
| ^
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
|
E501 Line too long (111 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:193:83
|
191 | … if type(value) is bool:unit="布尔选择,无物理单位;保存态不保证执行或效果"
192 | … if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
| ^^^^^^^^^^^
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:194:86
|
192 | … if name in ["width","height"]:unit="像素请求缓存;本图由外线/边界覆盖,不保证最终尺寸"
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
| ^
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
196 | … if name=="multiple":unit="像素对齐步长;准确实现round就近倍数,不试算尺寸"
|
E501 Line too long (145 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:194:97
|
192 | … 求缓存;本图由外线/边界覆盖,不保证最终尺寸"
193 | …unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | …el","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独立"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195 | … 1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
196 | … 确实现round就近倍数,不试算尺寸"
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:195:38
|
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
| ^
196 | … if name=="multiple":unit="像素对齐步长;准确实现round就近倍数,不试算尺寸"
197 | … if name=="seed_control_candidate":
|
E501 Line too long (117 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:195:84
|
193 | … if name in ["seed","steps","batch_size"]:unit="整数种子/数量接口;不计算随机、时序或最终执行值"
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
| ^^^^^^^^^^^^^^^^^
196 | … if name=="multiple":unit="像素对齐步长;准确实现round就近倍数,不试算尺寸"
197 | … if name=="seed_control_candidate":
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:196:36
|
194 | … if name in ["cfg","denoise","strength_model","scale_by","multiplier"]:unit="无物理单位的接口系数;源JSON int/float与定义默认独…
195 | … if name=="megapixels":unit="准确实现MP基数1024×1024;源FLOAT1.5与默认1.0分列,不试算尺寸或保证像素数"
196 | … if name=="multiple":unit="像素对齐步长;准确实现round就近倍数,不试算尺寸"
| ^
197 | … if name=="seed_control_candidate":
198 | … default="准确frontend1.45.19种子辅助缺省randomize;不是后端seed默认"
|
E501 Line too long (129 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:201:97
|
199 | … limits="fixed/increment/decrement/randomize;前端辅助保存不执行、不推演最终随机种子"
200 | … if cls=="SeedNode":
201 | … default="准确core0.27.0 SeedNode声明control_after_generate=io.ControlAfterGenerate.fixed;无显式seed默认"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202 | … limits="准确Seed扩展注册和execute透传已核;fixed为辅助控制声明,范围min0/max sys.maxsize按表达式留存,不求值或执行恢复"
203 | … unit="前端控制枚举,无物理单位;辅助保存与seed输入分开"
|
E501 Line too long (143 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:202:79
|
200 | …
201 | …声明control_after_generate=io.ControlAfterGenerate.fixed;无显式seed默认"
202 | …e透传已核;fixed为辅助控制声明,范围min0/max sys.maxsize按表达式留存,不求值或执行恢复"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203 | … 存与seed输入分开"
204 | …mits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:204:54
|
202 | … limits="准确Seed扩展注册和execute透传已核;fixed为辅助控制声明,范围min0/max sys.maxsize按表达式留存,不求值或执行恢复"
203 | … unit="前端控制枚举,无物理单位;辅助保存与seed输入分开"
204 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
| ^
205 | … if cls=="KSampler" and name=="scheduler":limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta5…
206 | … if cls=="KSampler" and name=="sampler_name":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
|
E501 Line too long (137 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:204:93
|
202 | … limits="准确Seed扩展注册和execute透传已核;fixed为辅助控制声明,范围min0/max sys.maxsize按表达式留存,不求值或执行恢复"
203 | … unit="前端控制枚举,无物理单位;辅助保存与seed输入分开"
204 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205 | … if cls=="KSampler" and name=="scheduler":limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta5…
206 | … if cls=="KSampler" and name=="sampler_name":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:205:57
|
203 | … unit="前端控制枚举,无物理单位;辅助保存与seed输入分开"
204 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
205 | … if cls=="KSampler" and name=="scheduler":limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta5…
| ^
206 | … if cls=="KSampler" and name=="sampler_name":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
207 | … if cls=="ConditioningKrea2Rebalance":
|
E501 Line too long (145 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:205:91
|
203 | … 存与seed输入分开"
204 | …its+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
205 | …limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta57"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
206 | …e":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
207 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:206:60
|
204 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
205 | … if cls=="KSampler" and name=="scheduler":limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta5…
206 | … if cls=="KSampler" and name=="sampler_name":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
| ^
207 | … if cls=="ConditioningKrea2Rebalance":
208 | … limits+=";准确preset detail选预设权重;完整58字符保存串只在custom分支解析,本图不是custom,不执行解析/conditioning构造或…
|
E501 Line too long (138 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:206:93
|
204 | … if cls=="CLIPLoader" and name=="type":limits+=";准确core0.3.75枚举不含krea2,getattr fallback不认证支持,不借新版补缺口"
205 | … if cls=="KSampler" and name=="scheduler":limits+=";准确core0.26.0调度表没有原拼beta57,simple有列;保留原值,不用beta替换beta5…
206 | … if cls=="KSampler" and name=="sampler_name":limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207 | … if cls=="ConditioningKrea2Rebalance":
208 | … limits+=";准确preset detail选预设权重;完整58字符保存串只在custom分支解析,本图不是custom,不执行解析/conditioning构造或…
|
E501 Line too long (150 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:208:76
|
206 | …:limits+=";准确core0.26.0枚举包含euler和er_sde;枚举存在不证明目标可执行/兼容"
207 | …
208 | … 完整58字符保存串只在custom分支解析,本图不是custom,不执行解析/conditioning构造或求表达式"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209 | …
210 | … widget默认;不传播内部节点版本"
|
E501 Line too long (119 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:226:94
|
224 | named_pointer="源无此具名保存键,不构造值",
225 |
226 | input_pointer=f"{ptr}/inputs/{inp}" if inp is not None else "无可靠独立输入映射:前端控制辅助",
| ^^^^^^^^^^^^^^^^^^
227 | input_name=name if inp is not None else None,
228 | type=n["inputs"][inp]["type"] if inp is not None else "保存参考",
|
E501 Line too long (324 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:229:101
|
227 | …
228 | …
229 | …st and not linked) else "boundary_saved_cache" if scope!="root" and linked and any(e["id"]==n["inputs"][inp].get("link") and e["origin_id"]==-10 for e in graph["links"]) else "linked_saved_cache" if linked else "saved_reference",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
230 | …
231 | …
|
E501 Line too long (153 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:290:76
|
288 | …
289 | …
290 | …1图4743位置/150注释仅参考。local_file以docs/hel-892/krea-views-document-evidence为基准。"],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
291 | …rnal_saved_fields=36,linked_saved_fields=sum(f["role"]=="linked_saved_cache" for f in fields),boundary_saved_fields=sum(f["role"]=="…
292 | …
|
E501 Line too long (466 > 100)
--> docs/hel-892/krea-views-document-evidence/build_definition.py:291:101
|
289 | …
290 | …file以docs/hel-892/krea-views-document-evidence为基准。"],
291 | …fields=sum(f["role"]=="linked_saved_cache" for f …l_scalars=0,final_prompt_constructed=False),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
292 | …
293 | …
|
E501 Line too long (114 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:68:101
|
66 | assert inv["sha256"] == "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
67 | assert [(s["nodes"],s["edges"],s["named_nodes"]) for s in inv["scopes"]] == [(7,5,0),(15,29,0)]
68 | assert len(inv["fields"]) == 54 and [(n["node"],n["characters"]) for n in inv["notes"]] == [(285,95),(278,95)]
| ^^^^^^^^^^^^^^
69 | assert [(z["node"],z["state"]) for z in inv["empty"]] == [(286,"missing"),(251,"empty_list"),(248,"empty_list")]
70 | assert inv["extra"]["frontendVersion"] == "1.45.19"
|
E501 Line too long (116 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:69:101
|
67 | assert [(s["nodes"],s["edges"],s["named_nodes"]) for s in inv["scopes"]] == [(7,5,0),(15,29,0)]
68 | assert len(inv["fields"]) == 54 and [(n["node"],n["characters"]) for n in inv["notes"]] == [(285,95),(278,95)]
69 | assert [(z["node"],z["state"]) for z in inv["empty"]] == [(286,"missing"),(251,"empty_list"),(248,"empty_list")]
| ^^^^^^^^^^^^^^^^
70 | assert inv["extra"]["frontendVersion"] == "1.45.19"
71 | from build_definition import PATHS, REPO
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:72:47
|
70 | assert inv["extra"]["frontendVersion"] == "1.45.19"
71 | from build_definition import PATHS, REPO
72 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["…
| ^
73 | for a,b in zip(inv["fields"],block["fields"],strict=True):
74 | assert a["pointer"] == b["pointer"] and a["json_type"] == b["json_type"]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:72:83
|
70 | assert inv["extra"]["frontendVersion"] == "1.45.19"
71 | from build_definition import PATHS, REPO
72 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["…
| ^
73 | for a,b in zip(inv["fields"],block["fields"],strict=True):
74 | assert a["pointer"] == b["pointer"] and a["json_type"] == b["json_type"]
|
E501 Line too long (162 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:72:101
|
70 | …
71 | …
72 | …]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["id"]:n for n in sg["nodes"]}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 | …
74 | … b["json_type"]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:72:121
|
70 | assert inv["extra"]["frontendVersion"] == "1.45.19"
71 | from build_definition import PATHS, REPO
72 | g=json.loads((REPO/PATHS[0]).read_bytes());sg=g["definitions"]["subgraphs"][0];nodes={n["id"]:n for n in g["nodes"]};internal={n["…
| ^
73 | for a,b in zip(inv["fields"],block["fields"],strict=True):
74 | assert a["pointer"] == b["pointer"] and a["json_type"] == b["json_type"]
|
E501 Line too long (120 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:78:101
|
76 | assert "无此具名保存键" in b["named_pointer"]
77 | assert type(b["value"]) not in (list,dict)
78 | assert all(n["mode"] == 0 and "widgets_values_named" not in n for n in list(nodes.values())+list(internal.values()))
| ^^^^^^^^^^^^^^^^^^^^
79 | assert len(nodes[283]["widgets_values"]) == len(nodes[283]["inputs"]) == len(sg["inputs"]) == 10
80 | assert "proxyWidgets" not in nodes[283] and sg["widgets"] == []
|
E501 Line too long (103 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:81:101
|
79 | assert len(nodes[283]["widgets_values"]) == len(nodes[283]["inputs"]) == len(sg["inputs"]) == 10
80 | assert "proxyWidgets" not in nodes[283] and sg["widgets"] == []
81 | assert len(nodes[282]["widgets_values"][0]) == 127 and len(nodes[289]["widgets_values"][1]) == 1303
| ^^^
82 | assert nodes[289]["widgets_values"][2] == "/n" and len(nodes[289]["widgets_values"][2]) == 2
83 | assert len(nodes[283]["widgets_values"][0]) == len(internal[60]["widgets_values"][0]) == 399
|
E501 Line too long (109 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:85:101
|
83 | assert len(nodes[283]["widgets_values"][0]) == len(internal[60]["widgets_values"][0]) == 399
84 | assert nodes[285]["widgets_values"][0] == internal[278]["widgets_values"][0]
85 | assert len(block["comments"]) == 2 and block["comments"][0]["pointer"] != block["comments"][1]["pointer"]
| ^^^^^^^^^
86 | edges={e[0]:e for e in g["links"]}
87 | for eid,ends in {586:(282,0,289,0),587:(289,0,283,0),580:(287,0,283,7),581:(287,1,283,8),569:(283,0,263,0)}.items():assert tuple(e…
|
E501 Line too long (157 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:87:101
|
85 | …]["pointer"] != block["comments"][1]["pointer"]
86 | …
87 | …287,0,283,7),581:(287,1,283,8),569:(283,0,263,0)}.items():assert tuple(edges[eid][1:5]) == ends
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 | …outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid
89 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:87:120
|
85 | assert len(block["comments"]) == 2 and block["comments"][0]["pointer"] != block["comments"][1]["pointer"]
86 | edges={e[0]:e for e in g["links"]}
87 | for eid,ends in {586:(282,0,289,0),587:(289,0,283,0),580:(287,0,283,7),581:(287,1,283,8),569:(283,0,263,0)}.items():assert tuple(e…
| ^
88 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid
89 | assert sum(e["id"] == 525 for e in sg["links"]) == 1
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:88:38
|
86 | edges={e[0]:e for e in g["links"]}
87 | for eid,ends in {586:(282,0,289,0),587:(289,0,283,0),580:(287,0,283,7),581:(287,1,283,8),569:(283,0,263,0)}.items():assert tuple(e…
88 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid
| ^
89 | assert sum(e["id"] == 525 for e in sg["links"]) == 1
90 | outlet=next(e for e in sg["links"] if e["id"] == 525)
|
E501 Line too long (126 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:88:101
|
86 | edges={e[0]:e for e in g["links"]}
87 | for eid,ends in {586:(282,0,289,0),587:(289,0,283,0),580:(287,0,283,7),581:(287,1,283,8),569:(283,0,263,0)}.items():assert tuple(e…
88 | for eid,a,ao,z,zi,_ in g["links"]:assert eid in nodes[a]["outputs"][ao]["links"] and nodes[z]["inputs"][zi]["link"] == eid
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
89 | assert sum(e["id"] == 525 for e in sg["links"]) == 1
90 | outlet=next(e for e in sg["links"] if e["id"] == 525)
|
E501 Line too long (114 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:91:101
|
89 | assert sum(e["id"] == 525 for e in sg["links"]) == 1
90 | outlet=next(e for e in sg["links"] if e["id"] == 525)
91 | assert outlet["target_id"] == -20 and outlet["target_slot"] == -1 and sg["outputs"][0]["linkIds"] == [525,525]
| ^^^^^^^^^^^^^^
92 | for e in sg["links"]:
93 | 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-views-document-evidence/verify_sources.py:93:33
|
91 | assert outlet["target_id"] == -20 and outlet["target_slot"] == -1 and sg["outputs"][0]["linkIds"] == [525,525]
92 | for e in sg["links"]:
93 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"]
| ^
94 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"]
95 | if e["target_id"] == -20:
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:94:13
|
92 | for e in sg["links"]:
93 | if e["origin_id"] == -10:assert e["id"] in sg["inputs"][e["origin_slot"]]["linkIds"]
94 | else:assert e["id"] in internal[e["origin_id"]]["outputs"][e["origin_slot"]]["links"]
| ^
95 | if e["target_id"] == -20:
96 | assert e["id"] == 525 and e["target_slot"] == -1
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:97:13
|
95 | if e["target_id"] == -20:
96 | assert e["id"] == 525 and e["target_slot"] == -1
97 | else:assert internal[e["target_id"]]["inputs"][e["target_slot"]]["link"] == e["id"]
| ^
98 | se={e["id"]:e for e in sg["links"]}
99 | for eid,a,z in [(529,264,254),(517,254,259),(518,259,255),(507,255,251),(545,16,272),(582,272,288),(583,288,254),(584,288,255),(55…
|
E501 Line too long (304 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:99:101
|
97 | …
98 | …
99 | …72,288),(583,288,254),(584,288,255),(559,279,254),(560,279,255),(550,60,273),(551,273,254),(552,273,255),(476,60,248),(497,248,254),(504,248,255)]:assert se[eid]["origin_id"] == a and se[eid]["target_id"] == z
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100 | …,1]
101 | …",0.6]
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:99:242
|
97 | …
98 | …
99 | …,273,254),(552,273,255),(476,60,248),(497,248,254),(504,248,255)]:assert se[eid]["origin_id"] == a and se[eid]["target_id"] == z
| ^
100 | …
101 | …
|
E501 Line too long (101 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:101:101
|
99 | for eid,a,z in [(529,264,254),(517,254,259),(518,259,255),(507,255,251),(545,16,272),(582,272,288),(583,288,254),(584,288,255),(5…
100 | assert internal[254]["widgets_values"] == [477786237165895,"randomize",8,1,"euler","beta57",1]
101 | assert internal[255]["widgets_values"] == [552380068141577,"randomize",6,1,"er_sde","simple",0.6]
| ^
102 | assert internal[279]["widgets_values"] == [23212346779852,"fixed"] and nodes[283]["widgets_values"][5] == 23212346779852
103 | assert len(nodes[283]["widgets_values"][9]) == len(internal[273]["widgets_values"][1]) == 58
|
E501 Line too long (124 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:102:101
|
100 | assert internal[254]["widgets_values"] == [477786237165895,"randomize",8,1,"euler","beta57",1]
101 | assert internal[255]["widgets_values"] == [552380068141577,"randomize",6,1,"er_sde","simple",0.6]
102 | assert internal[279]["widgets_values"] == [23212346779852,"fixed"] and nodes[283]["widgets_values"][5] == 23212346779852
| ^^^^^^^^^^^^^^^^^^^^^^^^
103 | assert len(nodes[283]["widgets_values"][9]) == len(internal[273]["widgets_values"][1]) == 58
104 | assert internal[273]["widgets_values"][0] == "detail" and type(internal[273]["widgets_values"][2]) is int
|
E501 Line too long (109 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:104:101
|
102 | assert internal[279]["widgets_values"] == [23212346779852,"fixed"] and nodes[283]["widgets_values"][5] == 23212346779852
103 | assert len(nodes[283]["widgets_values"][9]) == len(internal[273]["widgets_values"][1]) == 58
104 | assert internal[273]["widgets_values"][0] == "detail" and type(internal[273]["widgets_values"][2]) is int
| ^^^^^^^^^
105 | assert "v3.1" in nodes[283]["widgets_values"][2] and "v2" in internal[272]["widgets_values"][0]
106 | assert all("links" not in o for o in nodes[263]["outputs"])
|
E501 Line too long (126 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:107:101
|
105 | assert "v3.1" in nodes[283]["widgets_values"][2] and "v2" in internal[272]["widgets_values"][0]
106 | assert all("links" not in o for o in nodes[263]["outputs"])
107 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
108 | def classes(key,file):return {c.name:c for c in ast.parse(source(key,file)).body if isinstance(c,ast.ClassDef)}
109 | core=classes("core0375","nodes.py")
|
E501 Line too long (115 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:108:101
|
106 | assert all("links" not in o for o in nodes[263]["outputs"])
107 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes()
108 | def classes(key,file):return {c.name:c for c in ast.parse(source(key,file)).body if isinstance(c,ast.ClassDef)}
| ^^^^^^^^^^^^^^^
109 | core=classes("core0375","nodes.py")
110 | enums=[ast.literal_eval(c) for c in ast.walk(core["CLIPLoader"]) if isinstance(c,ast.List) and all(isinstance(x,ast.Constant) and…
|
E501 Line too long (175 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:110:101
|
108 | …,file)).body if isinstance(c,ast.ClassDef)}
109 | …
110 | …isinstance(c,ast.List) and all(isinstance(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 | …
112 | …
|
E501 Line too long (189 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:113:101
|
111 | …
112 | …
113 | …nstance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == ("IMAGE",)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | …walk(save))
115 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:113:147
|
111 | …
112 | …
113 | …tance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets));assert ast.literal_eval(ret) == ("IMAGE",)
| ^
114 | …lk(save))
115 | …
|
E501 Line too long (228 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:116:101
|
114 | …
115 | …
116 | …t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets));assert "beta57" not in [ast.literal_eval(k) for k in handlers.keys]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117 | …t,ast.Name) and t.id == "KSAMPLER_NAMES" for t in c.targets));assert all(name in ast.literal_eval(samplers) for name in ["euler","er_sde"])
118 | …n seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.fixed" in …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:116:161
|
114 | …
115 | …
116 | …t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets));assert "beta57" not in [ast.literal_eval(k) for k in handlers.keys]
| ^
117 | …t,ast.Name) and t.id == "KSAMPLER_NAMES" for t in c.targets));assert all(name in ast.literal_eval(samplers) for name in ["euler","er…
118 | …n seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.fixe…
|
E501 Line too long (234 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:117:101
|
115 | …
116 | …t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets));assert "beta57" not in [ast.literal_eval(k) for k in handlers.keys]
117 | …t,ast.Name) and t.id == "KSAMPLER_NAMES" for t in c.targets));assert all(name in ast.literal_eval(samplers) for name in ["euler","er_sde"])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 | …n seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.fixed" in seed
119 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:117:157
|
115 | …
116 | …nce(t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets));assert "beta57" not in [ast.literal_eval(k) for k in handlers.…
117 | …nce(t,ast.Name) and t.id == "KSAMPLER_NAMES" for t in c.targets));assert all(name in ast.literal_eval(samplers) for name in ["euler"…
| ^
118 | …"' in seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.…
119 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:118:66
|
116 | handlers=next(c.value for c in sampler.body if isinstance(c,ast.Assign) and any(isinstance(t,ast.Name) and t.id == "SCHEDULER_HAN…
117 | samplers=next(c.value for c in sampler.body if isinstance(c,ast.Assign) and any(isinstance(t,ast.Name) and t.id == "KSAMPLER_NAME…
118 | seed=source("core0270","comfy_extras/nodes_seed.py").decode();assert 'node_id="SeedNode"' in seed and "return [SeedNode]" in seed…
| ^
119 | assert '"nodes_seed.py"' in source("core0270","nodes.py").decode()
120 | registry=json.loads((REF/"rebalance-registry.json").read_bytes());assert registry["id"] == "comfyui-krea2-conditioning" and regis…
|
E501 Line too long (237 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:118:101
|
116 | …t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets));assert "beta57" not in [ast.literal_eval(k) for k in handlers.keys]
117 | …t,ast.Name) and t.id == "KSAMPLER_NAMES" for t in c.targets));assert all(name in ast.literal_eval(samplers) for name in ["euler","er_sde"])
118 | …n seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.fixed" in seed
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 | …
120 | …"comfyui-krea2-conditioning" and registry["repository"] == "https://github.com/huwhitememes/comfyui-krea2-conditioning"
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:120:70
|
118 | seed=source("core0270","comfy_extras/nodes_seed.py").decode();assert 'node_id="SeedNode"' in seed and "return [SeedNode]" in seed…
119 | assert '"nodes_seed.py"' in source("core0270","nodes.py").decode()
120 | registry=json.loads((REF/"rebalance-registry.json").read_bytes());assert registry["id"] == "comfyui-krea2-conditioning" and regis…
| ^
121 | assert '"ConditioningKrea2Rebalance": ConditioningKrea2Rebalance' in source("rebalance","__init__.py").decode()
122 | reb=classes("rebalance","nodes.py")["ConditioningKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef…
|
E501 Line too long (214 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:120:101
|
118 | …"' in seed and "return [SeedNode]" in seed and "return SeedExtension()" in seed and "control_after_generate=io.ControlAfterGenerate.…
119 | …
120 | … == "comfyui-krea2-conditioning" and registry["repository"] == "https://github.com/huwhitememes/comfyui-krea2-conditioning"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 | …,"__init__.py").decode()
122 | …n reb.body if isinstance(c,ast.FunctionDef) and c.name == "rebalance")
|
E501 Line too long (115 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:121:101
|
119 | assert '"nodes_seed.py"' in source("core0270","nodes.py").decode()
120 | registry=json.loads((REF/"rebalance-registry.json").read_bytes());assert registry["id"] == "comfyui-krea2-conditioning" and regis…
121 | assert '"ConditioningKrea2Rebalance": ConditioningKrea2Rebalance' in source("rebalance","__init__.py").decode()
| ^^^^^^^^^^^^^^^
122 | reb=classes("rebalance","nodes.py")["ConditioningKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef…
123 | custom=next(c for c in method.body if isinstance(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:122:70
|
120 | registry=json.loads((REF/"rebalance-registry.json").read_bytes());assert registry["id"] == "comfyui-krea2-conditioning" and regis…
121 | assert '"ConditioningKrea2Rebalance": ConditioningKrea2Rebalance' in source("rebalance","__init__.py").decode()
122 | reb=classes("rebalance","nodes.py")["ConditioningKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef…
| ^
123 | custom=next(c for c in method.body if isinstance(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
124 | assert "parse_weights(per_layer_weights)" in ast.unparse(custom.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
|
E501 Line too long (161 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:122:101
|
120 | …s());assert registry["id"] == "comfyui-krea2-conditioning" and registry["repository"] == "https://github.com/huwhitememes/comfyui-kr…
121 | …nce' in source("rebalance","__init__.py").decode()
122 | …ce"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef) and c.name == "rebalance")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123 | …ssert ast.unparse(custom.test) == "preset == 'custom'"
124 | …om.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:123:64
|
121 | assert '"ConditioningKrea2Rebalance": ConditioningKrea2Rebalance' in source("rebalance","__init__.py").decode()
122 | reb=classes("rebalance","nodes.py")["ConditioningKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef…
123 | custom=next(c for c in method.body if isinstance(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
| ^
124 | assert "parse_weights(per_layer_weights)" in ast.unparse(custom.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
125 | assert len(block["node_bindings"]) == 20 and len(block["zero_saved_nodes"]) == 3 and len(block["boundaries"]) == 1
|
E501 Line too long (119 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:123:101
|
121 | assert '"ConditioningKrea2Rebalance": ConditioningKrea2Rebalance' in source("rebalance","__init__.py").decode()
122 | reb=classes("rebalance","nodes.py")["ConditioningKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef…
123 | custom=next(c for c in method.body if isinstance(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
| ^^^^^^^^^^^^^^^^^^^
124 | assert "parse_weights(per_layer_weights)" in ast.unparse(custom.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
125 | assert len(block["node_bindings"]) == 20 and len(block["zero_saved_nodes"]) == 3 and len(block["boundaries"]) == 1
|
E501 Line too long (134 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:124:101
|
122 | …ngKrea2Rebalance"];method=next(c for c in reb.body if isinstance(c,ast.FunctionDef) and c.name == "rebalance")
123 | …e(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
124 | …t.unparse(custom.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125 | …n(block["zero_saved_nodes"]) == 3 and len(block["boundaries"]) == 1
126 | …"fields"]) == 18
|
E501 Line too long (118 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:125:101
|
123 | custom=next(c for c in method.body if isinstance(c,ast.If));assert ast.unparse(custom.test) == "preset == 'custom'"
124 | assert "parse_weights(per_layer_weights)" in ast.unparse(custom.body[0]) and "PRESET_WEIGHTS.get" in ast.unparse(custom.orelse[0])
125 | assert len(block["node_bindings"]) == 20 and len(block["zero_saved_nodes"]) == 3 and len(block["boundaries"]) == 1
| ^^^^^^^^^^^^^^^^^^
126 | assert sum(f["scope"] == "root" for f in block["fields"]) == 18
127 | (OUT/"node-version-bindings.json").write_text(json.dumps(block["node_bindings"],ensure_ascii=False,indent=2)+"\n")
|
E501 Line too long (174 > 100)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:129:101
|
127 | …e_bindings"],ensure_ascii=False,indent=2)+"\n")
128 | …ll_checks_pass=True,source_fields=54,source_notes=2,physical_edges=34,upstream_imported=False,seed0270_registered=True,scheduler0260…
129 | …5-codepoint notes, SeedNode registration, negative slot/duplicate boundary and version gaps preserved")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 | …
131 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/krea-views-document-evidence/verify_sources.py:131:26
|
129 | print("PASS exact identities, 54 positional scalars, two separate 95-codepoint notes, SeedNode registration, negative slot/duplic…
130 |
131 | if __name__ == "__main__":main()
| ^
Found 77 errors (3 fixed, 74 remaining).