Files
aigc-home/docs/hel-892/flux2-views-document-evidence/ruff-development.txt
T

518 lines
35 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 (102 > 100)
--> calliope-backend/tests/test_flux2_views_fixed_document.py:89:101
|
87 | assert "Role:" in f["99", "system_prompt"]["value"]
88 | assert {x["node_id"]: x["state"] for x in BLOCK["zero_saved_nodes"]} == {
89 | "83": "empty_list", "82": "empty_list", "95": "empty_list", "102": "missing", "103": "missing"
| ^^
90 | }
|
E501 Line too long (101 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:26:90
|
24 | common = {}
25 | # Reuse schema prose only where the exact implementation is independently rebound.
26 | for stem in ["1_flux2_klein_文生图", "2_flux2_klein_图生图", "6_flux2-klein+Qwen3.5_转线稿洗图"]:
| ^
27 | block = reviews[f"example_ComfyUI_workflows/3-图像生成/Flux/{stem}.json"][
28 | "fixed_version_document"
|
E501 Line too long (102 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:53:90
|
51 | cite("core", "nodes.py", 2010, 2170, "core0.8.2核心注册")
52 | sampler = cite("core", "comfy_extras/nodes_custom_sampler.py", 376, 395, "采样器枚举")
53 | cfg = cite("core", "comfy_extras/nodes_custom_sampler.py", 801, 825, "正负条件与CFG浮点默认/范围")
| ^^
54 | noise = cite("core", "comfy_extras/nodes_custom_sampler.py", 898, 913, "噪声种子定义")
55 | cite("core", "comfy_extras/nodes_custom_sampler.py", 915, 969, "双LATENT与去噪条件")
|
E501 Line too long (111 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:61:99
|
59 | cite("easy", "py/nodes/prompt.py", 751, 790, "准确Easy promptList注册与显示名")
60 | cite("easy", "__init__.py", 1, 23, "准确Easy动态加载prompt模块注册")
61 | io = cite("core", "comfy_api/latest/_io.py", 1688, 1783, "core0.8.2 schema推导RETURN_TYPES/OUTPUT_IS_LIST")
| ^^^^^^^^^^^
62 | cite("core", "comfy_api/latest/_io.py", 1561, 1584, "core0.8.2 FUNCTION规范化调用execute")
63 | mapping = cite("core", "execution.py", 228, 328, "core0.8.2列表映射/末项重复/列表出口合并,静态条件")
|
E501 Line too long (105 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:63:84
|
61 | io = cite("core", "comfy_api/latest/_io.py", 1688, 1783, "core0.8.2 schema推导RETURN_TYPES/OUTPUT_IS_LIST")
62 | cite("core", "comfy_api/latest/_io.py", 1561, 1584, "core0.8.2 FUNCTION规范化调用execute")
63 | mapping = cite("core", "execution.py", 228, 328, "core0.8.2列表映射/末项重复/列表出口合并,静态条件")
| ^^^^
64 | tt = cite("tt", "nodes/resolution_selector.py", 1, 80, "准确TT字典预设、真假分支与回退")
65 | cite("tt", "__init__.py", 1, 17, "准确TT类注册")
|
E501 Line too long (104 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:71:82
|
69 | cite("showtext", "py/show_text.py", 1, 49, "准确ShowText强制输入列表、UI回写与列表返回")
70 | cite("showtext", "web/js/showText.js", 1, 78, "准确ShowText前端恢复与序列化条件")
71 | llama = cite("llama", "nodes.py", 330, 595, "准确llama语言节点schema、默认参数、文本/图像/状态分支")
| ^^^^
72 | model = cite("llama", "nodes.py", 1, 225, "准确llama模型加载schema及SDK配置条件")
73 | cite("llama", "nodes.py", 1105, 1132, "准确llama类注册")
|
E501 Line too long (102 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:74:90
|
72 | model = cite("llama", "nodes.py", 1, 225, "准确llama模型加载schema及SDK配置条件")
73 | cite("llama", "nodes.py", 1105, 1132, "准确llama类注册")
74 | front = cite("frontend", "src/scripts/widgets.ts", 1, 71, "准确frontend1.36.14控件及辅助保存身份")
| ^^
75 | reroute = cite("frontend", "src/extensions/core/rerouteNode.ts", 1, 58, "准确旧转接前端虚拟节点;不执行迁移")
76 | # Close the provenance set including package locks and licenses. Whole metadata
|
E501 Line too long (113 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:75:90
|
73 | cite("llama", "nodes.py", 1105, 1132, "准确llama类注册")
74 | front = cite("frontend", "src/scripts/widgets.ts", 1, 71, "准确frontend1.36.14控件及辅助保存身份")
75 | reroute = cite("frontend", "src/extensions/core/rerouteNode.ts", 1, 58, "准确旧转接前端虚拟节点;不执行迁移")
| ^^^^^^^^^^^^
76 | # Close the provenance set including package locks and licenses. Whole metadata
77 | # files are cited as metadata, never as proof that an implementation was executed.
|
E501 Line too long (112 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:91:101
|
89 | 99: ["preset_prompt", "custom_prompt", "system_prompt", "inference_mode", "max_frames",
90 | "max_size", "seed", "control_after_generate", "force_offload", "save_states"],
91 | 100: ["model", "mmproj", "chat_handler", "n_ctx", "vram_limit", "image_min_tokens", "image_max_tokens"],
| ^^^^^^^^^^^^
92 | 88: ["text"], 81: ["cfg"], 80: ["steps", "width", "height"],
93 | 101: ["use_custom_resolution", "resolution", "custom_width", "custom_height"],
|
E501 Line too long (135 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:98:78
|
96 | …
97 | …
98 | … properties.models作者下载线索分列;不证明本地存在/许可/兼容,不打开模型或链接。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99 | …fault供88正向和85负向。properties.models另写qwen_3_4b.safetensors,非本保存现值,不用元数据替换8B引用。",
100 | … 常,人物肢体异常,水印→81.negative;不保证能避免这些问题。",
|
E501 Line too long (157 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:99:92
|
97 | …
98 | …s.models作者下载线索分列;不证明本地存在/许可/兼容,不打开模型或链接。",
99 | … 和85负向。properties.models另写qwen_3_4b.safetensors,非本保存现值,不用元数据替换8B引用。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100 | … 异常,水印→81.negative;不保证能避免这些问题。",
101 | … 未知。",
|
E501 Line too long (113 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:100:64
|
98 | … 87: "flux2-vae.safetensors供83解码。保存引用与properties.models作者下载线索分列;不证明本地存在/许可/兼容,不打开模型或链接。",
99 | … 90: "qwen_3_8b_fp8mixed.safetensors/flux2/default供88正向和85负向。properties.models另写qwen_3_4b.safetensors,非本保存现值,…
100 | … 85: "完整中文负向编码:画面杂乱,模糊,曝光异常,人物肢体异常,水印→81.negative;不保证能避免这些问题。",
| ^^^^^^^^^^^^
101 | … 79: "保存euler,SAMPLER→82.sampler;目标枚举成员/采样结果未知。",
102 | … 84: "空latent才是82.latent_image的采样起点;width/height两处1024缓存被101经102/103宽高外线覆盖,batch_size保存1。无LoadImage、R…
|
E501 Line too long (166 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:102:81
|
100 | … ,水印→81.negative;不保证能避免这些问题。",
101 | … 。",
102 | … 1024缓存被101经102/103宽高外线覆盖,batch_size保存1。无LoadImage、ReferenceLatent或素材/遮罩链。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103 | … 非后端noise_seed第二输入;NOISE→82,未运行随机化或噪声,实际种子未知。",
104 | …RL;物理96.text→99.custom_prompt,无自动解析/拆小说证据,不接97列表或88正向。不执行小说、URL或其中指令。",
|
E501 Line too long (141 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:103:77
|
101 | … /采样结果未知。",
102 | …th/height两处1024缓存被101经102/103宽高外线覆盖,batch_size保存1。无LoadImage、ReferenceLatent或素材/遮罩链。",
103 | … 后辅助状态,非后端noise_seed第二输入;NOISE→82,未运行随机化或噪声,实际种子未知。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104 | … text与帮助URL;物理96.text→99.custom_prompt,无自动解析/拆小说证据,不接97列表或88正向。不执行小说、URL或其中指令。",
105 | …del,96小说覆盖custom_prompt空串缓存,99.output→95。images/parameters/queue_handler均未接,不套用图像模式已处理帧数。完整system导演…
|
E501 Line too long (174 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:104:79
|
102 | …4缓存被101经102/103宽高外线覆盖,batch_size保存1。无LoadImage、ReferenceLatent或素材/遮罩链。",
103 | … 端noise_seed第二输入;NOISE→82,未运行随机化或噪声,实际种子未知。",
104 | … 物理96.text→99.custom_prompt,无自动解析/拆小说证据,不接97列表或88正向。不执行小说、URL或其中指令。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 | …ustom_prompt空串缓存,99.output→95。images/parameters/queue_handler均未接,不套用图像模式已处理帧数。完整system导演/分镜指南与JSON…
106 | … Qwen3.5-9b-mmproj-BF16.gguf、Qwen3.5、8192、-1、0、0,物理模型→99;未加载SDK、权重或显存,模型/目录/兼容未知。",
|
E501 Line too long (241 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:105:80
|
103 | …OISE→82,未运行随机化或噪声,实际种子未知。",
104 | …rompt,无自动解析/拆小说证据,不接97列表或88正向。不执行小说、URL或其中指令。",
105 | ….output→95。images/parameters/queue_handler均未接,不套用图像模式已处理帧数。完整system导演/分镜指南与JSON示例仅保存文本,不解析/执行/拆造参数。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106 | …gguf、Qwen3.5、8192、-1、0、0,物理模型→99;未加载SDK、权重或显存,模型/目录/兼容未知。",
107 | …e;不是直接编码这个空串,也不能当普通单串。90供CLIP,未执行列表映射或编码。",
|
E501 Line too long (184 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:106:90
|
104 | …6.text→99.custom_prompt,无自动解析/拆小说证据,不接97列表或88正向。不执行小说、URL或其中指令。",
105 | …prompt空串缓存,99.output→95。images/parameters/queue_handler均未接,不套用图像模式已处理帧数。完整system导演/分镜指南与JSON示例仅…
106 | ….5-9b-mmproj-BF16.gguf、Qwen3.5、8192、-1、0、0,物理模型→99;未加载SDK、权重或显存,模型/目录/兼容未知。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107 | …6)覆盖→81.positive;不是直接编码这个空串,也不能当普通单串。90供CLIP,未执行列表映射或编码。",
108 | …的物理模型边进入81→82.guider,不保证引导效果。",
|
E501 Line too long (172 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:107:81
|
105 | …ustom_prompt空串缓存,99.output→95。images/parameters/queue_handler均未接,不套用图像模式已处理帧数。完整system导演/分镜指南与JSON…
106 | …、Qwen3.5-9b-mmproj-BF16.gguf、Qwen3.5、8192、-1、0、0,物理模型→99;未加载SDK、权重或显存,模型/目录/兼容未知。",
107 | …G/shape6)覆盖→81.positive;不是直接编码这个空串,也不能当普通单串。90供CLIP,未执行列表映射或编码。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108 | … 与104的物理模型边进入81→82.guider,不保证引导效果。",
109 | … ;SIGMAS→82。参数默认与保存值不同,不保证实际步数、尺寸、质量或耗时。",
|
E501 Line too long (125 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:108:75
|
106 | … 100: "mode4旁路模型加载器,保存Qwen3.5-9b-heretic-v2-q8_0.gguf、Qwen3.5-9b-mmproj-BF16.gguf、Qwen3.5、8192、-1、0、0,物理模型→…
107 | … 88: "活动正向text缓存为空串,但被97槽1 prompt_strings(源STRING/shape6)覆盖→81.positive;不是直接编码这个空串,也不能当普通单…
108 | … 81: "JSON int1为CFG保存现值,定义FLOAT默认8.0;88正向/85负向条件与104的物理模型边进入81→82.guider,不保证引导效果。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^
109 | … 80: "保存4步骤及1024/1024尺寸缓存,后两项由101经102/103外线覆盖;SIGMAS→82。参数默认与保存值不同,不保证实际步数、尺寸、质量或…
110 | … 101: "保存false/1920x1080 (16:9) (横屏)/1024/1024。准确TT以false查RESOLUTIONS字典,未知键回退(1024,1024),true才返回自定义宽高…
|
E501 Line too long (142 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:109:72
|
107 | …trings(源STRING/shape6)覆盖→81.positive;不是直接编码这个空串,也不能当普通单串。90供CLIP,未执行列表映射或编码。",
108 | …8正向/85负向条件与104的物理模型边进入81→82.guider,不保证引导效果。",
109 | … 102/103外线覆盖;SIGMAS→82。参数默认与保存值不同,不保证实际步数、尺寸、质量或耗时。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110 | …24。准确TT以false查RESOLUTIONS字典,未知键回退(1024,1024),true才返回自定义宽高,不按字符串另行解析。宽→102、高→103,分别覆盖80和84…
111 | …;准确core0.8.2写output PNG并返回UI images、RETURN_TYPES=(),源outputs=[]一致。本图无Preview或比较器;未保存实际图片。",
|
E501 Line too long (256 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:110:85
|
108 | …82.guider,不保证引导效果。",
109 | … 值不同,不保证实际步数、尺寸、质量或耗时。",
110 | … 回退(1024,1024),true才返回自定义宽高,不按字符串另行解析。宽→102、高→103,分别覆盖80和84共四处1024缓存;未采用的自定义缓存分开,不执行选择器或保证最终尺寸。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 | …s、RETURN_TYPES=(),源outputs=[]一致。本图无Preview或比较器;未保存实际图片。",
112 | …t未接;槽0 LIST links=null未接,槽1 prompt_strings STRING/shape6→88.text。图名/三视图是作者意图,不保证脸部/正背全身、角色身份、构图、一致性或质量。",
|
E501 Line too long (175 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:111:86
|
109 | … SIGMAS→82。参数默认与保存值不同,不保证实际步数、尺寸、质量或耗时。",
110 | …查RESOLUTIONS字典,未知键回退(1024,1024),true才返回自定义宽高,不按字符串另行解析。宽→102、高→103,分别覆盖80和84共四处1024缓存;…
111 | …utput PNG并返回UI images、RETURN_TYPES=(),源outputs=[]一致。本图无Preview或比较器;未保存实际图片。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112 | … 串。optional_prompt_list未接;槽0 LIST links=null未接,槽1 prompt_strings STRING/shape6→88.text。图名/三视图是作者意图,不保证脸部…
113 | …de4)旁路LoRA的物理边→81.model。properties.models另为base-4b线索,不替换9B保存引用;不证明安装或许可。",
|
E501 Line too long (246 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:112:68
|
110 | … 回退(1024,1024),true才返回自定义宽高,不按字符串另行解析。宽→102、高→103,分别覆盖80和84共四处1024缓存;未采用的自定义缓存分开,不执行选择器或保证最终尺…
111 | …s、RETURN_TYPES=(),源outputs=[]一致。本图无Preview或比较器;未保存实际图片。",
112 | …t未接;槽0 LIST links=null未接,槽1 prompt_strings STRING/shape6→88.text。图名/三视图是作者意图,不保证脸部/正背全身、角色身份、构图、一致性或质量。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 | …model。properties.models另为base-4b线索,不替换9B保存引用;不证明安装或许可。",
114 | …1.1。物理89→104→81;不模拟旁路穿透,不声称LoRA生效。准确继承load_lora(model,None,name,strength,0),两强度均0才直接返回;否则按路径复用/清理缓存或safe_load…
|
E501 Line too long (175 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:113:91
|
111 | …utput PNG并返回UI images、RETURN_TYPES=(),源outputs=[]一致。本图无Preview或比较器;未保存实际图片。",
112 | … 串。optional_prompt_list未接;槽0 LIST links=null未接,槽1 prompt_strings STRING/shape6→88.text。图名/三视图是作者意图,不保证脸部…
113 | …de4)旁路LoRA的物理边→81.model。properties.models另为base-4b线索,不替换9B保存引用;不证明安装或许可。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | …s/JSON int1,独立core0.21.1。物理89→104→81;不模拟旁路穿透,不声称LoRA生效。准确继承load_lora(model,None,name,strength,0),两强度均…
115 | …
|
E501 Line too long (296 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:114:90
|
112 | …t未接;槽0 LIST links=null未接,槽1 prompt_strings STRING/shape6→88.text。图名/三视图是作者意图,不保证脸部/正背全身、角色身份、构图、一致性或质量。",
113 | …model。properties.models另为base-4b线索,不替换9B保存引用;不证明安装或许可。",
114 | …1.1。物理89→104→81;不模拟旁路穿透,不声称LoRA生效。准确继承load_lora(model,None,name,strength,0),两强度均0才直接返回;否则按路径复用/清理缓存或safe_load读取,再应用模型LoRA,均只是非旁路调用条件。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 | …
116 | …
|
E501 Line too long (109 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:126:91
|
124 | )
125 | language_conditions = (
126 | "准确llama a69be488:parameters未接时默认字典max_tokens1024/top_k30/top_p0.9/min_p0.05/typical_p1.0/"
| ^^^^^^^^^
127 | "temperature0.8/repeat_penalty1.0/frequency_penalty0.0/presence_penalty1.0/mirostat_mode0/eta0.1/tau5.0,"
128 | "_MTMD条件会移除presence_penalty。custom_prompt.strip()为真且preset不含*时用custom,否则替换预设#/@;"
|
E501 Line too long (118 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:129:77
|
127 | "temperature0.8/repeat_penalty1.0/frequency_penalty0.0/presence_penalty1.0/mirostat_mode0/eta0.1/tau5.0,"
128 | "_MTMD条件会移除presence_penalty。custom_prompt.strip()为真且preset不含*时用custom,否则替换预设#/@;"
129 | "system按video条件加前缀、变化时clean_state并重建消息;本图one by one且images=None,不进入逐图/视频采帧分支。"
| ^^^^^^^^^^^^^^^^^^
130 | "save_states=false不保存本次消息,但系统提示变化仍可能清状态;force_offload=false并不等于无缓存副作用,"
131 | "Qwen3.5/Qwen3.5-Thinking分支可能清n_tokens、_ctx memory及hybrid缓存,末尾gc.collect。"
|
E501 Line too long (112 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:143:83
|
141 | empty_effect = {
142 | 83: "82槽0+87.VAE→83解码→9正式PNG;无参考编码或预览。",
143 | 82: "86噪声/81引导/79采样器/80调度/84空latent五输入;槽0→83,第二LATENT denoised_output links=[]未接。",
| ^^^^^^^^^^^^
144 | 95: "mode4旁路ShowText零保存位置,物理99.output→95.text;输出STRING/shape6 links=null未接。准确实现INPUT_IS_LIST=True、OUTPUT…
145 | 102: "转接缺widgets_values键;101.width槽0→102,扇出到80.width和84.width;源输入*、输出INT和边INT分列。",
|
E501 Line too long (230 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:144:85
|
142 | …
143 | …links=[]未接。",
144 | … 。准确实现INPUT_IS_LIST=True、OUTPUT_IS_LIST=(True,),回UI/text并有条件写workflow widgets;源[]不是已生成文本。未执行UI回写或列表。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145 | …NT和边INT分列。",
146 | … 复或迁移。",
|
E501 Line too long (113 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:145:82
|
143 | 82: "86噪声/81引导/79采样器/80调度/84空latent五输入;槽0→83,第二LATENT denoised_output links=[]未接。",
144 | 95: "mode4旁路ShowText零保存位置,物理99.output→95.text;输出STRING/shape6 links=null未接。准确实现INPUT_IS_LIST=True、OUTPUT…
145 | 102: "转接缺widgets_values键;101.width槽0→102,扇出到80.width和84.width;源输入*、输出INT和边INT分列。",
| ^^^^^^^^^^^^^
146 | 103: "转接缺widgets_values键;101.height槽1→103,扇出到80.height和84.height;不模拟前端恢复或迁移。",
147 | }
|
E501 Line too long (109 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:146:82
|
144 | 95: "mode4旁路ShowText零保存位置,物理99.output→95.text;输出STRING/shape6 links=null未接。准确实现INPUT_IS_LIST=True、OUTPUT…
145 | 102: "转接缺widgets_values键;101.width槽0→102,扇出到80.width和84.width;源输入*、输出INT和边INT分列。",
146 | 103: "转接缺widgets_values键;101.height槽1→103,扇出到80.height和84.height;不模拟前端恢复或迁移。",
| ^^^^^^^^
147 | }
148 | fields, empty, comments = [], [], []
|
E501 Line too long (118 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:162:83
|
160 | empty.append(dict(
161 | node_id=str(nid), class_type=n["type"], pointer=ptr, scope="root", state=state,
162 | effect=("源缺保存键,不是[]或null。" if state == "missing" else "明确[],零保存位置,不是缺键/null。")
| ^^^^^^^^^^^^^^^^^
163 | + empty_effect[nid],
164 | ))
|
E501 Line too long (101 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:171:101
|
169 | f.update(
170 | node_id=str(nid), definition_node_id=str(nid), scope="root", class_type=n["type"],
171 | field=name, pointer=f"{ptr}/widgets_values/{j}", value=v, json_type=type(v).__name__,
| ^
172 | named_pointer="源无widgets_values_named,不构造具名保存指针",
173 | input_pointer=f"{ptr}/inputs/{inp}" if inp is not None else "无独立后端输入:前端辅助",
|
E501 Line too long (103 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:173:90
|
171 | field=name, pointer=f"{ptr}/widgets_values/{j}", value=v, json_type=type(v).__name__,
172 | named_pointer="源无widgets_values_named,不构造具名保存指针",
173 | input_pointer=f"{ptr}/inputs/{inp}" if inp is not None else "无独立后端输入:前端辅助",
| ^^
174 | input_name=name if inp is not None else None,
175 | type=n["inputs"][inp]["type"] if inp is not None else "前端辅助",
|
E501 Line too long (105 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:195:77
|
193 | f.update(label="活动中文负向" if nid == 85 else "活动正向外线覆盖缓存",
194 | schema_default="无显式default;STRING multiline/dynamicPrompts",
195 | limits="准确core0.8.2;编码仅作者文本或上游列表,实际结果未知", unit="编码文本")
| ^^^^
196 | if nid == 96:
197 | f["label"] = "旁路完整小说原文"
|
E501 Line too long (102 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:222:101
|
220 | "18个mode0、5个mode4(95/96/99/100/104);83/82/95为[]零位置,102/103缺保存键,无null,不混计。",
221 | list_conditions,
222 | *[meaning[k] for k in [97, 88, 85, 90, 89, 104, 81, 80, 101, 84, 86, 79, 87, 9, 96, 100, 99]],
| ^^
223 | language_conditions,
224 | *[empty_effect[k] for k in [102, 103, 82, 83, 95]],
|
E501 Line too long (106 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:236:95
|
234 | ]
235 | flow += ["原物理边 " + json.dumps(e, ensure_ascii=False) for e in g["links"]]
236 | flow += ["节点" + str(n["id"]) + "独立属性 " + json.dumps(n.get("properties", {}), ensure_ascii=False)
| ^^^^^^
237 | for n in g["nodes"]]
238 | versions = []
|
E501 Line too long (129 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:241:100
|
239 | for key in ["core", "lora", "frontend", "tt", "easy", "cr", "showtext", "llama"]:
240 | e = next(s for s in sources if s["id"] == key)
241 | versions.append(f"{key} {e.get('tag') or e['commit']} commit {e['commit']};tree {e['tree']};许可见{e['license_file']}")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
242 | versions += [
243 | "local_file以docs/hel-892/flux2-views-document-evidence为基准;原字节SHA256 " + hashlib.sha256(raw).hexdigest(),
|
E501 Line too long (120 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:243:93
|
241 | versions.append(f"{key} {e.get('tag') or e['commit']} commit {e['commit']};tree {e['tree']};许可见{e['license_file']}")
242 | versions += [
243 | "local_file以docs/hel-892/flux2-views-document-evidence为基准;原字节SHA256 " + hashlib.sha256(raw).hexdigest(),
| ^^^^^^^^^^^^^^^^^^^^
244 | "旧54块2073位置+60源注释逐对象冻结;来源同字节逐图重绑,静态参考,不执行上游或增加资格。",
245 | ]
|
E501 Line too long (113 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:248:101
|
246 | return dict(
247 | source_path=PATHS[index], source_sha1=hashlib.sha1(raw).hexdigest(),
248 | source_sha256=hashlib.sha256(raw).hexdigest(), canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
| ^^^^^^^^^^^^^
249 | notice="仅参考:目标环境/列表行为/恢复/兼容与实际效果未核;转换关闭、未实跑。",
250 | user_overview=overview, versions=versions,
|
E501 Line too long (104 > 100)
--> docs/hel-892/flux2-views-document-evidence/build_definition.py:255:101
|
253 | frontend_only=sum(f["role"] == "frontend_reference_only" for f in fields),
254 | source_nodes=23, root_nodes=23, internal_nodes=0, physical_edges=24,
255 | source_notes=1, history_objects=0, final_scalars=0, final_prompt_constructed=False),
| ^^^^
256 | fields=fields, sources=sources, comments=comments, flow=flow,
257 | flow_evidence=list(range(len(sources))), zero_saved_nodes=empty, boundaries=[],
|
E501 Line too long (115 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:26:101
|
24 | if commit_path.is_file():
25 | commit = commit_path.read_bytes()
26 | assert hashlib.sha1(b"commit " + str(len(commit)).encode() + b"\0" + commit).hexdigest() == e["commit"]
| ^^^^^^^^^^^^^^^
27 | assert commit.decode().splitlines()[0] == "tree " + e["tree"]
28 | proof = "raw Git commit object hash + selected blob + tree index"
|
E501 Line too long (101 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:33:101
|
31 | assert c["sha"] == e["commit"]
32 | assert c.get("commit", c)["tree"]["sha"] == e["tree"]
33 | proof = "pinned GitHub commit/tree metadata + selected blob; not full tree-object rehash"
| ^
34 | # Some historic API indexes use the commit as the requested ref in `sha`.
35 | # Compare its immutable ref with the independently bound commit/tree, and
|
E501 Line too long (105 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:44:101
|
42 | else:
43 | assert e["id"] in ["tt", "llama", "cr"]
44 | assert not any(t["path"].lower().split("/")[-1].startswith(("license", "licence", "copying"))
| ^^^^^
45 | for t in tree["tree"])
46 | checked.append(dict(id=e["id"], file=e["file"], commit=e["commit"], tree=e["tree"],
|
E501 Line too long (115 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:50:101
|
48 | license=e["license_file"]))
49 | inv = inventory()
50 | assert (len(inv["fields"]), inv["nodes"], inv["edges"], inv["notes"], inv["named_nodes"]) == (48, 23, 24, 1, 0)
| ^^^^^^^^^^^^^^^
51 | assert inv["modes"].count(0) == 18 and inv["modes"].count(4) == 5
52 | assert {e["node"]: e["state"] for e in inv["empty"]} == {
|
E501 Line too long (125 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:56:101
|
54 | }
55 | for a, f in zip(inv["fields"], b["fields"], strict=True):
56 | assert (a["pointer"], a["json_type"], canonical(a["value"])) == (f["pointer"], f["json_type"], canonical(f["value"]))
| ^^^^^^^^^^^^^^^^^^^^^^^^^
57 | assert f["evidence"]
58 | for e in b["sources"]:
|
E501 Line too long (101 > 100)
--> docs/hel-892/flux2-views-document-evidence/verify_sources.py:79:101
|
77 | identities=checked, counts=b["counts"], physical_endpoint_checks=edges,
78 | upstream_executed=False, list_processed=False, prompt_constructed=False,
79 | source_protocol_conflicts_retained=[], saveimage_empty_outputs_matches_return=True)
| ^
80 | (OUT / "source-check.json").write_text(json.dumps(result, ensure_ascii=False, indent=2) + "\n")
81 | print("PASS", len(rows), "texts;", len(b["sources"]), "citations; 48 positions/24 edges")
|
Found 47 errors.