Files
aigc-home/docs/hel-892/zimage-manga-document-evidence/ruff-initial.txt
T

319 lines
20 KiB
Plaintext

E501 Line too long (1384 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:18:101
|
18 | …EmptySD3LatentImage': ['width', 'height', 'batch_s…vae_name'], 'PrimitiveNode': ['author_text']}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 | … 存值', 'batch_size': '批量保存值', 'add_noise': '加噪选择', 'noise_seed': '噪声种子保存值', 'seed': '种子保存值', 'seed_control_candidate': '前端种子控制辅助', 'steps': '步数保存值', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'start_at_step': '采样起点保存值', 'end_at_step': '采样终点保存值', 'return_with_leftover_noise': '保留剩余噪声选择', 'value': '完整模板/整数/标签原值', 'string': '完整字符串缓存', 'find': '查找字符串', 'replace': '替换字符串', 'sigma': '首sigma保存值', 'start_at_sigma': '扩展起始sigma条件', 'end_at_sigma': '扩展结束sigma条件', 'spacing': 'sigma扩展间隔选择', 'sigma_max': 'sigma上界保存值', 'sigma_min': 'sigma下界保存值', 'rho': 'Karras rho保存值', 'step': '拆分位置保存值', 'saved_display_text': '完整显示历史(非本次产物)', 'mode': '修剪模式', 'measurement': '尺寸度量选择', 'fit': '适配条件', 'method': '插值方法', 'strength': '加噪强度', 'saved_object_0': '完整保存对象0(非LoRA配置)', 'saved_header_object': '完整Header控件对象', 'saved_object_2': '完整保存对象2(非LoRA配置)', 'saved_empty_string': '完整末尾空串', 'filename_prefix': '正式保存前缀字符串', 'model_name': '放大模型引用', 'unet_name': '扩散模型引用', 'weight_dtype': '权重类型', 'clip_name': '文本模型引用', 'type': '编码器类型', 'device': '设备选择', 'vae_name': '…
20 | …
|
E501 Line too long (1445 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:19:75
|
18 | …EmptySD3LatentImage': ['width', 'height', 'batch_size'], 'KSamplerAdvanced': ['add_noise', 'noise_seed', 'seed_control_candidate', 'steps', 'cfg', 'sampler_name', 'scheduler', 'start_at_step', 'end_at_step', 'return_with_leftover_noise'], 'PrimitiveString': ['value'], 'StringReplace': ['string', 'find', 'replace'], 'SetFirstSigma': ['sigma'], 'ExtendIntermediateSigmas': ['steps', 'start_at_sigma', 'end_at_sigma', 'spacing'], 'KarrasScheduler': ['steps', 'sigma_max', 'sigma_min', 'rho'], 'SplitSigmas': ['step'], 'KSamplerSelect': ['sampler_name'], 'Display Any (rgthree)': ['saved_display_text'], 'StringTrim': ['string', 'mode'], 'PrimitiveInt': ['value', 'seed_control_candidate'], 'SamplerCustom': ['add_noise', 'noise_seed', 'seed_control_candidate', 'cfg'], 'Image Resize (rgthree)': ['measurement', 'width', 'height', 'fit', 'method'], 'ImageAddNoise': ['seed', 'seed_control_candidate', 'strength'], 'Power Lora Loader (rgthree)': ['saved_object_0', 'saved_header_object', 'saved_object_2', 'saved_empty_string'], 'SaveImage': ['filename_prefix'], 'UpscaleModelLoader': ['model_name'], 'PrimitiveStringMultiline': ['value'], 'UNETLoader': ['unet_name', 'weight_dtype'], 'CLIPLoader': ['clip_name', 'type', 'device'], 'VAELoader': ['vae_name'], 'PrimitiveNode': ['author_text']}
19 | … 存值', 'batch_size': '批量保存值', 'add_noise': '加噪选择', 'noise_seed': '噪声种子保存值', 'seed': '种子保存值', 'seed_control_candidate': '前端种子控制辅助', 'steps': '步数保存值', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'start_at_step': '采样起点保存值', 'end_at_step': '采样终点保存值', 'return_with_leftover_noise': '保留剩余噪声选择', 'value': '完整模板/整数/标签原值', 'string': '完整字符串缓存', 'find': '查找字符串', 'replace': '替换字符串', 'sigma': '首sigma保存值', 'start_at_sigma': '扩展起始sigma条件', 'end_at_sigma': '扩展结束sigma条件', 'spacing': 'sigma扩展间隔选择', 'sigma_max': 'sigma上界保存值', 'sigma_min': 'sigma下界保存值', 'rho': 'Karras rho保存值', 'step': '拆分位置保存值', 'saved_display_text': '完整显示历史(非本次产物)', 'mode': '修剪模式', 'measurement': '尺寸度量选择', 'fit': '适配条件', 'method': '插值方法', 'strength': '加噪强度', 'saved_object_0': '完整保存对象0(非LoRA配置)', 'saved_header_object': '完整Header控件对象', 'saved_object_2': '完整保存对象2(非LoRA配置)', 'saved_empty_string': '完整末尾空串', 'filename_prefix': '正式保存前缀字符串', 'model_name': '放大模型引用', 'unet_name': '扩散模型引用', 'weight_dtype': '权重类型', 'clip_name': '文本模型引用', 'type': '编码器类型', 'device': '设备选择', 'vae_name': 'VAE引用', 'author_text': '完整作者中文(末尾空行保留)'}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | …
21 | … 质量。",
|
E501 Line too long (161 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:33:101
|
31 | …
32 | …
33 | …d","8ff50e4521881eca1fe26aec9615fc9362474931":"rgnew","1.0.2511270846":"rgpkg"}.get(p.get("ver"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 | …
|
E501 Line too long (150 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:157:85
|
155 | …
156 | …
157 | …e"]) + ("(静音保存态,不当旁路穿透)" if n["mode"] == 2 else "(保存活动态,不认证执行)")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158 | …
159 | …
|
E501 Line too long (118 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:191:101
|
189 | boundary = False
190 | linked = inp is not None and n["inputs"][inp].get("link") is not None
191 | aux = name in ["seed_control_candidate", "saved_display_text", "author_text"] or name.startswith("saved_")
| ^^^^^^^^^^^^^^^^^^
192 | default, limits = schemas.get(
193 | (nid, name), ("无准确独立后端widget默认", "完整保存位置/前端辅助,不补运行值")
|
E501 Line too long (103 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:215:77
|
213 | "saved_comparison_history": "完整A/B历史列表,仅文本,不访问/view",
214 | "width": "latent为像素请求;Resize按measurement解释百分比或像素,不试算最终尺寸",
215 | "height": "latent为像素请求;Resize按measurement解释百分比或像素,0值按准确实现条件看",
| ^^
216 | "batch_size": "图像批量数量,非帧率或分辨率",
217 | "strength_model": "LoRA模型权重强度,无物理单位;兼容与效果未知",
|
E501 Line too long (335 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:335:68
|
333 | …
334 | …
335 | … 合。18段模板只有37漫画保存为mode0,另外17段mode2;不能视为18路同时生效或18张产物。作者中文、两空编码缓存、历史显示、标签和LoRA控件对象均完整保留,仅作参考。控制器、转接、静音恢复和模型兼容未核;不拼装prompt、计算sigma或保证最终尺寸/效果。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
336 | …
337 | …
|
E501 Line too long (155 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:348:73
|
346 | …
347 | …
348 | …3图3289位置+86注释仅参考;local_file以docs/hel-892/zimage-manga-document-evidence为基准。"],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
349 | …
350 | …
|
E501 Line too long (198 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:373:73
|
371 | …
372 | …
373 | …5修剪缓存、31/144/146/166替换串和6/54/60编码缓存分开。{$@}/{$spicy-content-with}不替换/求值/生成。165为历史文本。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
374 | …ast Muter、五Repeater、五Collector、16 Switch及普通/rgthree转接按准确身份或未知分层,不模拟控制改写/惰性/互斥/次序。566输入label BA…
375 | … 两Advanced/五Custom/五Karras/三Split/两SetFirst/两Extend保存参数和latent出口分别看,不计算sigma或承诺无缝接力/完整步数/可复现。",
|
E501 Line too long (228 > 100)
--> docs/hel-892/zimage-manga-document-evidence/build_definition.py:374:68
|
372 | …
373 | …1/144/146/166替换串和6/54/60编码缓存分开。{$@}/{$spicy-content-with}不替换/求值/生成。165为历史文本。",
374 | … Repeater、五Collector、16 Switch及普通/rgthree转接按准确身份或未知分层,不模拟控制改写/惰性/互斥/次序。566输入label BAD不当坏边。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
375 | …/五Custom/五Karras/三Split/两SetFirst/两Extend保存参数和latent出口分别看,不计算sigma或承诺无缝接力/完整步数/可复现。",
376 | … 件,不试算尺寸/加载模型。Save9仅按原images边714和正式output源码说明,日期模板只字符串;不造媒体产物或同时执行保证。",
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:54:53
|
52 | def main():
53 | url="https://api.comfy.org/nodes/rgthree-comfy/versions/1.0.2511270846"
54 | with urllib.request.urlopen(url,timeout=30) as r: raw=r.read()
| ^
55 | (REF/"rgpkg-registry.json").write_bytes(raw)
56 | meta=json.loads(raw);download=meta.get("downloadUrl",meta.get("download_url"));archive=Remote(download)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:56:25
|
54 | with urllib.request.urlopen(url,timeout=30) as r: raw=r.read()
55 | (REF/"rgpkg-registry.json").write_bytes(raw)
56 | meta=json.loads(raw);download=meta.get("downloadUrl",meta.get("download_url"));archive=Remote(download)
| ^
57 | rows=[];members=[]
58 | selected=["__init__.py","py/any_switch.py","py/utils.py","py/constants.py","LICENSE"]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:56:83
|
54 | with urllib.request.urlopen(url,timeout=30) as r: raw=r.read()
55 | (REF/"rgpkg-registry.json").write_bytes(raw)
56 | meta=json.loads(raw);download=meta.get("downloadUrl",meta.get("download_url"));archive=Remote(download)
| ^
57 | rows=[];members=[]
58 | selected=["__init__.py","py/any_switch.py","py/utils.py","py/constants.py","LICENSE"]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:57:12
|
55 | (REF/"rgpkg-registry.json").write_bytes(raw)
56 | meta=json.loads(raw);download=meta.get("downloadUrl",meta.get("download_url"));archive=Remote(download)
57 | rows=[];members=[]
| ^
58 | selected=["__init__.py","py/any_switch.py","py/utils.py","py/constants.py","LICENSE"]
59 | with zipfile.ZipFile(archive) as z:
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:63:33
|
61 | … members.append(dict(name=info.filename,size=info.file_size,crc=info.CRC))
62 | … f=info.filename
63 | … if f not in selected: continue
| ^
64 | … data=z.read(f);name="rgpkg__"+f.replace("/","__");(REF/name).write_bytes(data)
65 | … rows.append(dict(id="rgpkg",file=f,local_file=name,tag="1.0.2511270846",commit="发布成员到Git绑定未知",tree="未知",url=download,…
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:64:27
|
62 | f=info.filename
63 | if f not in selected: continue
64 | data=z.read(f);name="rgpkg__"+f.replace("/","__");(REF/name).write_bytes(data)
| ^
65 | rows.append(dict(id="rgpkg",file=f,local_file=name,tag="1.0.2511270846",commit="发布成员到Git绑定未知",tree="未知",url=dow…
66 | assert any(e["file"]=="py/any_switch.py" for e in rows)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:64:62
|
62 | f=info.filename
63 | if f not in selected: continue
64 | data=z.read(f);name="rgpkg__"+f.replace("/","__");(REF/name).write_bytes(data)
| ^
65 | rows.append(dict(id="rgpkg",file=f,local_file=name,tag="1.0.2511270846",commit="发布成员到Git绑定未知",tree="未知",url=dow…
66 | assert any(e["file"]=="py/any_switch.py" for e in rows)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:70:52
|
68 | (REF/"rgpkg-range-proof.json").write_text(json.dumps(archive.log,indent=2)+"\n")
69 | (REF/"rgpkg-sources.json").write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+"\n")
70 | x=json.loads((REF/"sources.json").read_bytes());x["sources"]=[e for e in x["sources"] if e["id"]!="rgpkg"]+rows
| ^
71 | (REF/"sources.json").write_text(json.dumps(x,ensure_ascii=False,indent=2)+"\n")
72 | print("PASS Range necessary release texts",len(rows),"whole package not acquired")
|
E501 Line too long (115 > 100)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:70:101
|
68 | (REF/"rgpkg-range-proof.json").write_text(json.dumps(archive.log,indent=2)+"\n")
69 | (REF/"rgpkg-sources.json").write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+"\n")
70 | x=json.loads((REF/"sources.json").read_bytes());x["sources"]=[e for e in x["sources"] if e["id"]!="rgpkg"]+rows
| ^^^^^^^^^^^^^^^
71 | (REF/"sources.json").write_text(json.dumps(x,ensure_ascii=False,indent=2)+"\n")
72 | print("PASS Range necessary release texts",len(rows),"whole package not acquired")
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/zimage-manga-document-evidence/fetch_release.py:74:24
|
72 | print("PASS Range necessary release texts",len(rows),"whole package not acquired")
73 |
74 | if __name__=="__main__":main()
| ^
E501 Line too long (109 > 100)
--> docs/hel-892/zimage-manga-document-evidence/inventory.py:17:101
|
15 | fields, empty, notes, scopes = [], [], [], []
16 | graphs = [("", g)] + [
17 | (f"/definitions/subgraphs/{i}", s) for i, s in enumerate(g.get("definitions",{}).get("subgraphs",[]))
| ^^^^^^^^^
18 | ]
19 | for prefix, graph in graphs:
|
E501 Line too long (2098 > 100)
--> docs/hel-892/zimage-manga-document-evidence/prepare_sources.py:14:101
|
12 | …
13 | …
14 | …tras/nodes_string.py', 'comfy_extras/nodes_primiti…ib/litegraph/src/LGraphNode.ts', 'LICENSE'])]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E501 Line too long (121 > 100)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:101:101
|
99 | assert sum(e["state"]=="empty_list" for e in inv["empty"])==27
100 | for a,f in zip(inv["fields"],block["fields"],strict=True):
101 | assert (a["pointer"],a["json_type"],canonical(a["value"])) == (f["pointer"],f["json_type"],canonical(f["value"]))
| ^^^^^^^^^^^^^^^^^^^^^
102 | assert [(n["pointer"],n["text"]) for n in block["comments"]] == [(n["pointer"],n["text"]) for n in inv["notes"]]
103 | from build_definition import PATHS, REPO
|
E501 Line too long (116 > 100)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:102:101
|
100 | for a,f in zip(inv["fields"],block["fields"],strict=True):
101 | assert (a["pointer"],a["json_type"],canonical(a["value"])) == (f["pointer"],f["json_type"],canonical(f["value"]))
102 | assert [(n["pointer"],n["text"]) for n in block["comments"]] == [(n["pointer"],n["text"]) for n in inv["notes"]]
| ^^^^^^^^^^^^^^^^
103 | from build_definition import PATHS, REPO
104 | g=json.loads((REPO/PATHS[0]).read_bytes());ns={n["id"]:n for n in g["nodes"]}
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:104:47
|
102 | assert [(n["pointer"],n["text"]) for n in block["comments"]] == [(n["pointer"],n["text"]) for n in inv["notes"]]
103 | from build_definition import PATHS, REPO
104 | g=json.loads((REPO/PATHS[0]).read_bytes());ns={n["id"]:n for n in g["nodes"]}
| ^
105 | checked=[]
106 | for eid,a,ao,z,zi,kind in g["links"]:
|
E501 Line too long (104 > 100)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:110:101
|
108 | checked.append(eid)
109 | assert len(checked)==332 and len(set(checked))==332
110 | assert [n["id"] for n in g["nodes"] if n["type"]=="PrimitiveStringMultiline" and n["mode"]==0]==[37]
| ^^^^
111 | assert ns[566]["inputs"][0]["label"]=="BAD" and ns[566]["inputs"][0]["type"]=="*"
112 | assert ns[392]["widgets_values"]==[{}, {"type":"PowerLoraLoaderHeaderWidget"}, {}, ""]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:116:57
|
114 | assert ns[57]["widgets_values"][0].endswith("\n\n")
115 | e=next(e for e in rows if e["id"]=="core0375" and e["file"]=="nodes.py")
116 | parsed=ast.parse((REF/e["local_file"]).read_bytes());save=next(c for c in parsed.body if isinstance(c,ast.ClassDef) and c.name=="…
| ^
117 | ret=next(c.value for c in save.body if isinstance(c,ast.Assign) and any(isinstance(n,ast.Name) and n.id=="RETURN_TYPES" for n in …
118 | assert ast.literal_eval(ret)==()
|
E501 Line too long (144 > 100)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:116:101
|
114 | …
115 | …"file"]=="nodes.py")
116 | …;save=next(c for c in parsed.body if isinstance(c,ast.ClassDef) and c.name=="SaveImage")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117 | …ast.Assign) and any(isinstance(n,ast.Name) and n.id=="RETURN_TYPES" for n in c.targets))
118 | …
|
E501 Line too long (144 > 100)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:117:101
|
115 | …"file"]=="nodes.py")
116 | …;save=next(c for c in parsed.body if isinstance(c,ast.ClassDef) and c.name=="SaveImage")
117 | …ast.Assign) and any(isinstance(n,ast.Name) and n.id=="RETURN_TYPES" for n in c.targets))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 | …
119 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/zimage-manga-document-evidence/verify_sources.py:126:24
|
124 | print("PASS exact sources,175 positions,4 notes,332 physical edges")
125 |
126 | if __name__=="__main__":main()
| ^
Found 30 errors.