E702 Multiple statements on one line (semicolon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:129:41
    |
127 | def test_anomaly_metadata_and_notes_cannot_be_rebound(variant):
128 |     s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
129 |     sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
    |                                         ^
130 |     if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 |     elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:130:27
    |
128 |     s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
129 |     sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
130 |     if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
    |                           ^
131 |     elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 |     elif variant=='extra_empty':sub['extra']['ue_links']=None
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:131:34
    |
129 |     sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
130 |     if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 |     elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
    |                                  ^
132 |     elif variant=='extra_empty':sub['extra']['ue_links']=None
133 |     elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:132:32
    |
130 |     if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 |     elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 |     elif variant=='extra_empty':sub['extra']['ue_links']=None
    |                                ^
133 |     elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 |     elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:133:32
    |
131 |     elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 |     elif variant=='extra_empty':sub['extra']['ue_links']=None
133 |     elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
    |                                ^
134 |     elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 |     elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:134:33
    |
132 |     elif variant=='extra_empty':sub['extra']['ue_links']=None
133 |     elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 |     elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
    |                                 ^
135 |     elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 |     elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:135:30
    |
133 |     elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 |     elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 |     elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
    |                              ^
136 |     elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 |     elif variant=='missing_widgets':ns[74]['widgets_values']=[]
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:136:36
    |
134 |     elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 |     elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 |     elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
    |                                    ^
137 |     elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 |     elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:137:36
    |
135 |     elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 |     elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 |     elif variant=='missing_widgets':ns[74]['widgets_values']=[]
    |                                    ^
138 |     elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 |     elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:138:28
    |
136 |     elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 |     elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 |     elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
    |                            ^
139 |     elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 |     elif variant=='sub_id':sub['id']='different'
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:139:23
    |
137 |     elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 |     elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 |     elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
    |                       ^
140 |     elif variant=='sub_id':sub['id']='different'
141 |     else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:140:27
    |
138 |     elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 |     elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 |     elif variant=='sub_id':sub['id']='different'
    |                           ^
141 |     else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
142 |     refuse(s,r)
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:141:9
    |
139 |     elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 |     elif variant=='sub_id':sub['id']='different'
141 |     else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
    |         ^
142 |     refuse(s,r)
    |

E501 Line too long (103 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:146:101
    |
145 | def test_independent_inventory_boundaries_anomaly_and_semantics():
146 |     assert (len(SOURCE['nodes']),len(SOURCE['links']),len(SUB['nodes']),len(SUB['links']))==(5,2,13,34)
    |                                                                                                     ^^^
147 |     assert all(n['mode']==0 for _,n in NODES)
148 |     saved={f'{prefix}/nodes/{i}/widgets_values/{k}' for prefix,g in SCOPES for i,n in enumerate(g['nodes']) if n['type']!='MarkdownNo…
    |

E501 Line too long (185 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:148:101
    |
146 | …UB['links']))==(5,2,13,34)
147 | …
148 | …r i,n in enumerate(g['nodes']) if n['type']!='MarkdownNote' for k in range(len(n.get('widgets_values',[])))}
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 | …
150 | …
    |

E501 Line too long (148 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:160:101
    |
158 | …
159 | …
160 | …st) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target_slot','type']]
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161 | …nks'] if src>=0 else g['inputs'][slot]['linkIds'])
162 | …nk']==eid
    |

E501 Line too long (108 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:161:101
    |
159 | …     for e in g['links']:
160 | …         eid,src,slot,dst,inp,kind=e if isinstance(e,list) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target_s…
161 | …         assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
    |                                                                                                   ^^^^^^^^
162 | …         if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
163 | …         else:assert eid in g['outputs'][inp]['linkIds']
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:162:22
    |
160 |             eid,src,slot,dst,inp,kind=e if isinstance(e,list) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target…
161 |             assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
162 |             if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
    |                      ^
163 |             else:assert eid in g['outputs'][inp]['linkIds']
164 |     for n in BLOCK['comments']:
    |

E701 Multiple statements on one line (colon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:163:17
    |
161 |             assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
162 |             if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
163 |             else:assert eid in g['outputs'][inp]['linkIds']
    |                 ^
164 |     for n in BLOCK['comments']:
165 |         assert pointer(SOURCE,n['pointer'])==pointer(SOURCE,n['named_pointer'])==n['text']
    |

E501 Line too long (141 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:170:97
    |
168 | …=False,exec_verified=False)
169 | …
170 | …codec','无color_space/codec','INT','无steps/cfg/temporal宿主边','941','988','未实跑']:
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171 | …
172 | …
    |

E501 Line too long (118 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:181:101
    |
179 |     tree=ast.parse(video)
180 |     def source(name):
181 |         return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
    |                                                                                                     ^^^^^^^^^^^^^^^^^^
182 |     save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
183 |     assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
    |

E702 Multiple statements on one line (semicolon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:182:29
    |
180 |     def source(name):
181 |         return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
182 |     save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
    |                             ^
183 |     assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
184 |     assert '"color_space"' not in create and '"codec"' not in create
    |

E702 Multiple statements on one line (semicolon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:182:58
    |
180 |     def source(name):
181 |         return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
182 |     save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
    |                                                          ^
183 |     assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
184 |     assert '"color_space"' not in create and '"codec"' not in create
    |

E702 Multiple statements on one line (semicolon)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:195:49
    |
193 |     resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
194 |     old=json.loads(subprocess.check_output(['git','show','291ff48:'+resource],cwd=REPO))
195 |     now=json.loads((REPO/resource).read_bytes());now[PATH].pop('fixed_version_document')
    |                                                 ^
196 |     assert now==old and len(DEFINITIONS)==32
197 |     blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
    |

E501 Line too long (230 > 100)
   --> calliope-backend/tests/test_seedvr2_video_fixed_document.py:198:101
    |
196 | …
197 | …
198 | …ument(p,json.loads((REPO/p).read_bytes()),None,None,[],r)['source_notes']) for p,r in old.items() if 'fixed_version_document' in r)==22
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I001 [*] Import block is un-sorted or un-formatted
 --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:2:1
  |
1 |   """47 exact saved positions for the SeedVR2 video graph; editorial only."""
2 | / from __future__ import annotations
3 | | import copy
4 | | import hashlib
5 | | import importlib.util
6 | | import json
7 | | from pathlib import Path
  | |________________________^
8 |
9 |   REPO = Path(__file__).resolve().parents[3]
  |
help: Organize imports
  |
2 | from __future__ import annotations
3 +
4 | import copy
  |

E501 Line too long (132 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:12:72
   |
10 | OUT = Path(__file__).resolve().parent
11 | REF = OUT.parent / 'seedvr2-video-reference'
12 | PATHS = ['example_ComfyUI_workflows/0-基础处理：图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json']
   |                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 |
14 | def canonical(v):
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:19:49
   |
17 | def build(index=0):
18 |     spec=importlib.util.spec_from_file_location('image_reference_builder',OUT.parent/'seedvr2-document-evidence/build_definition.py')
19 |     module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
   |                                                 ^
20 |     image=module.build()
21 |     raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:41
   |
19 |     module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 |     image=module.build()
21 |     raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
   |                                         ^
22 |     entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 |     refs=copy.deepcopy(image['sources'])
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:64
   |
19 |     module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 |     image=module.build()
21 |     raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
   |                                                                ^
22 |     entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 |     refs=copy.deepcopy(image['sources'])
   |

E501 Line too long (104 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:101
   |
19 |     module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 |     image=module.build()
21 |     raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
   |                                                                                                     ^^^^
22 |     entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 |     refs=copy.deepcopy(image['sources'])
   |

E501 Line too long (138 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:28:90
   |
26 | …eo-reference/'+e['local_file'],'lines':[first,last],'claim':claim})
27 | …
28 | … 确core0.28.1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile；未读取素材')
   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 | … SaveVideo是平面format/codec Combo及VIDEO返回；不含format.codec或动态嵌套schema，保存/UI描述符与产物分开')
30 | …'准确CreateVideo只有images/fps/audio/bit_depth，bit_depth是INT而非源COMBO，无color_space/codec')
   |

E501 Line too long (160 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:29:93
   |
27 | …
28 | ….1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile；未读取素材')
29 | …是平面format/codec Combo及VIDEO返回；不含format.codec或动态嵌套schema，保存/UI描述符与产物分开')
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 | …Video只有images/fps/audio/bit_depth，bit_depth是INT而非源COMBO，无color_space/codec')
31 | …tVideoComponents四出口，bit_depth为INT，不含源图额外color_space出口')
   |

E501 Line too long (119 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:32:89
   |
30 |     create=ref('comfy_extras/nodes_video.py',133,173,'准确CreateVideo只有images/fps/audio/bit_depth，bit_depth是INT而非源COMBO，无colo…
31 |     components=ref('comfy_extras/nodes_video.py',175,191,'准确GetVideoComponents四出口，bit_depth为INT，不含源图额外color_space出口')
32 |     trim=ref('comfy_extras/nodes_video.py',233,277,'准确Video Slice默认/单位/范围及as_trimmed失败抛错；非保证获得10秒')
   |                                                                                                      ^^^^^^^^^^^^^^^^^^
33 |     switch=ref('comfy_extras/nodes_logic.py',86,115,'准确ComfySwitchNode布尔真选on_true、假选on_false；lazy请求只选分支')
34 |     ref('comfy_extras/nodes_video.py',280,293,'准确视频扩展注册入口')
   |

E501 Line too long (170 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:38:98
   |
36 | … 未显式default时不称true默认')
37 | … 能将普通Combo改称动态分支')
38 | …Codec auto/h264、Container auto/mp4与auto扩展mp4；VideoComponents含Fraction/audio，可选字段非源实况')
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 | …,'VideoFromFile负起点从末尾归一、duration取可用时长最小值；非实际片长')
40 | …romFile.as_trimmed仅严格且不足时返回None，其余构造裁剪引用；不执行解码')
   |

E501 Line too long (222 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:51:68
   |
49 | …
50 | … 型过滤；实际素材未知','保存ComfyUI_00002.mp4，经根边72进入66.video；只是源文件引用，不读取素材、不保证存在或可解码。',[load]),
51 | … 准确schema upload=video','源保存image占位而准确LoadVideo声明video上传；不当作第二个视频参数、已上传状态或素材路径。',[load]),
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 | … 数命名','保存video/Upscaled_seedVR2，条件调用video.save_to并返回VIDEO和UI文件描述符；未保存任何视频，准确枚举auto/mp4的扩展规则为mp…
53 | …','源口声明动态类型而准确schema是普通Combo。保存auto仅请求自动容器，不保证实际格式；不把format.codec并入该值。',[save]),
   |

E501 Line too long (201 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:55:82
   |
53 | …eoContainer','源口声明动态类型而准确schema是普通Combo。保存auto仅请求自动容器，不保证实际格式；不把format.codec并入该值。',[save]),
54 | … 存文本','准确SaveVideo无format.codec字段','原位置独立保存auto；准确0.28.1仅平面format和codec，源额外动态层次无法按此版本确认，不合…
55 | …ON int30，外线69由74.fps覆盖；拆分端准确float(frame_rate)，不能用缓存保证实际30FPS或音画同步。',[create,components]),
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 | … INT不一致','保存JSON int8，外线70由74.bit_depth覆盖；边记录type INT而源两端口COMBO。准确0.28.1两端均INT，保留差异，不据缓存证明实际…
57 | …'准确CreateVideo没有color_space输入，GetVideoComponents也无该出口','保存sRGB且未接线；准确0.28.1无该字段，不等于已应用sRGB，不推断色…
   |

E501 Line too long (244 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:56:79
   |
54 | … SaveVideo无format.codec字段','原位置独立保存auto；准确0.28.1仅平面format和codec，源额外动态层次无法按此版本确认，不合并、不删值、不补分支。',[save,dynam…
55 | … 69由74.fps覆盖；拆分端准确float(frame_rate)，不能用缓存保证实际30FPS或音画同步。',[create,components]),
56 | …'保存JSON int8，外线70由74.bit_depth覆盖；边记录type INT而源两端口COMBO。准确0.28.1两端均INT，保留差异，不据缓存证明实际8位。',[create,components]),
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | …ideo没有color_space输入，GetVideoComponents也无该出口','保存sRGB且未接线；准确0.28.1无该字段，不等于已应用sRGB，不推断色彩管理或保真。',[create,component…
58 | …lse选择on_false；lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true；81.on_true经77来自79切片，on_false经78来自原video。准确实现真选切片，不凭…
   |

E501 Line too long (204 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:59:80
   |
57 | … 确CreateVideo没有color_space输入，GetVideoComponents也无该出口','保存sRGB且未接线；准确0.28.1无该字段，不等于已应用sRGB，不推断色彩…
58 | …n_true，false选择on_false；lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true；81.on_true经77来自79切片，on_false经78来自原v…
59 | … 视频类型实现','宿主保存JSON int0，经边81覆盖内部79缓存0；由准确as_trimmed处理。未读取素材，起点有效性未知。',[trim]),
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 | …ax','宿主保存JSON int10经边82覆盖内部79缓存10；strict_duration=false并不保证输出10秒，短片/负起点等条件另见准确视频实现。',[trim]),
61 | …e仍可能失败','内部79独立保存false，无宿主覆盖。准确节点调用as_trimmed，返回None即抛ValueError；不把false当无条件成功。',[trim]),
   |

E501 Line too long (218 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:60:76
   |
58 | … false选择on_false；lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true；81.on_true经77来自79切片，on_false经78来自原video。…
59 | … 实现','宿主保存JSON int0，经边81覆盖内部79缓存0；由准确as_trimmed处理。未读取素材，起点有效性未知。',[trim]),
60 | … 主保存JSON int10经边82覆盖内部79缓存10；strict_duration=false并不保证输出10秒，短片/负起点等条件另见准确视频实现。',[trim]),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 | … 败','内部79独立保存false，无宿主覆盖。准确节点调用as_trimmed，返回None即抛ValueError；不把false当无条件成功。',[trim]),
62 | …
   |

E501 Line too long (107 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:67:73
   |
65 |         'control_after_generate':'仅内部54保存fixed；宿主没有独立保存该控制，和seed_1分开。不构造随机值或prompt。',
66 |         'steps':'仅内部54保存1，没有宿主steps边界或覆盖；单步不是实际画质、速度或成功保证。',
67 |         'cfg':'仅内部54保存JSON int1，对应FLOAT schema，没有宿主cfg边界；条件来自61，模型适配和效果未知。',
   |                                                                                                      ^^^^^^
68 |         'sampler_name':'保存euler，宿主边90覆盖内部54缓存；准确采样器枚举包含euler，不证明SeedVR2适配。',
69 |         'scheduler':'保存simple，宿主边91覆盖内部54缓存；准确调度器枚举包含simple，不是实跑证明。',
   |

E501 Line too long (172 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:73:87
   |
71 | …t.safetensors（大小写逐字保留），宿主边94覆盖内部缓存；Note推荐路径另列，不验证磁盘/模型/精度。',
72 | …1缓存ema_vae_fp16.safetensors；与Note推荐并列，不替换、不证明安装。',
73 | …plier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值；倍率插值与模型效果分开，实际尺寸未知。',
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 | … 类SeedVR2准确实现仍未证，不能保证无颜色变化或可用选项。',
75 | …poral_size输入或外线。仅视频VAE使用时间窗口，不保证帧数、内存或成功。',
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:83:14
   |
81 |         'scale_method':'内部57保存lanczos；准确schema默认area另列。只是倍率插值算法，不是SeedVR2超分模型或清晰度保证。',
82 |     }
83 |     fields=[];missing=[];comments=[]
   |              ^
84 |     for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
85 |         for i,n in enumerate(g['nodes']):
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:83:25
   |
81 |         'scale_method':'内部57保存lanczos；准确schema默认area另列。只是倍率插值算法，不是SeedVR2超分模型或清晰度保证。',
82 |     }
83 |     fields=[];missing=[];comments=[]
   |                         ^
84 |     for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
85 |         for i,n in enumerate(g['nodes']):
   |

E501 Line too long (101 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:84:101
   |
82 |     }
83 |     fields=[];missing=[];comments=[]
84 |     for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
   |                                                                                                     ^
85 |         for i,n in enumerate(g['nodes']):
86 |             base=f'{prefix}/nodes/{i}'
   |

E501 Line too long (311 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:92:101
   |
90 | …
91 | …
92 | …d_pointer=base+'/widgets_values_named/text',text=n['widgets_values'][0],meaning=('完整原文保留；模型/目录/PR/项目URL仅文本，非安装下载运行授权；one-step、full restore、防OOM/耗时建议均非实际产物、性能或资源保证。')))
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | …
94 | …
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:94:50
   |
92 | …         comments.append(dict(node_id=str(n['id']),pointer=base+'/widgets_values/0',named_pointer=base+'/widgets_values_named/text',t…
93 | …         continue
94 | …     names=list(n['widgets_values_named']);assert len(names)==len(n['widgets_values'])
   |                                            ^
95 | …     for k,(name,value) in enumerate(zip(names,n['widgets_values'])):
96 | …         assert canonical(value)==canonical(n['widgets_values_named'][name])
   |

E501 Line too long (232 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:100:86
    |
 98 | …
 99 | …
100 | …at.codec位置分开','根76独立codec保存auto；准确schema支持此平面字段但不支持额外嵌套项，不归并多个auto，也不保证实际编解码器可用。',[save])
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 | …
102 | … CreateVideo没有codec参数','内部75保存none且未接线；准确0.28.1无此字段，不解释为已无损/未编码/禁用编码。',[create])
    |

E701 Multiple statements on one line (colon)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:103:21
    |
101 | …         else:
102 | …             data=('源保存的重组编码标签','未知：准确schema无此项','源枚举标签','准确CreateVideo没有codec参数','内部75保存none且未…
103 | …     else:data=specials.get(normalized)
    |           ^
104 | …     if data:
105 | …         label,default,unit,limits,effect,ev=data
    |

E702 Multiple statements on one line (semicolon)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:108:59
    |
106 |                     f=dict(label=label,schema_default=default,unit=unit,limits=limits,effect=effect,evidence=ev)
107 |                 else:
108 |                     f=copy.deepcopy(templates[normalized]);f['effect']=effects[normalized]
    |                                                           ^
109 |                 inp_idx=next((j for j,p in enumerate(n.get('inputs',[])) if p['name']==name),None)
110 |                 named=base+'/widgets_values_named/'+name.replace('~','~0').replace('/','~1')
    |

E501 Line too long (136 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:113:101
    |
111 | …     inp=f'{base}/inputs/{inp_idx}' if inp_idx is not None else named
112 | …     linked=inp_idx is not None and n['inputs'][inp_idx].get('link') is not None
113 | …     role='linked_saved' if linked else 'frontend_control' if normalized in ['upload','control_after_generate'] else 'scalar'
    |                                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | …     f.update(node_id=str(n['id']),scope=scope,class_type=n['type'],field=name,pointer=f'{base}/widgets_values/{k}',named_pointer=na…
115 | …     f['evidence']=list(dict.fromkeys(f['evidence']+[19,20,21,22]+([enums,encoding] if n['id'] in [75,76] else [filetrim] if normali…
    |

E501 Line too long (384 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:114:101
    |
112 | …
113 | …','control_after_generate'] else 'scalar'
114 | …er=f'{base}/widgets_values/{k}',named_pointer=nam…'；源口/前端状态：'+inp)
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 | …if n['id'] in [75,76] else [filetrim] if normalized in ['start_time','duration','strict_duration'] else [])+([23] if normalized=='upload' else []))) # exact host/subgraph/callback source references
116 | …
    |

E501 Line too long (292 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:115:101
    |
113 | …','control_after_generate'] else 'scalar'
114 | …er=f'{base}/widgets_values/{k}',named_pointer=named,input_pointer=inp,value=value,json_type=type(value).__name__,type=next((p['type'] for p in n.get('inputs',[]) if p['name']==name),'前端状态'),role=rol…
115 | …if n['id'] in [75,76] else [filetrim] if normalized in ['start_time','duration','strict_duration'] else [])+([23] if normalized=='upload' else []))) # exact host/subgraph/callback source references
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 | …
117 | …
    |

E702 Multiple statements on one line (semicolon)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:118:18
    |
116 |                 fields.append(f)
117 |     assert len(fields)==47 and len(comments)==2
118 |     boundaries=[];ns={n['id']:n for n in sub['nodes']}
    |                  ^
119 |     for j,port in enumerate(sub['inputs']):
120 |         edges=[e for e in sub['links'] if e['origin_id']==-10 and e['origin_slot']==j]
    |

E702 Multiple statements on one line (semicolon)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:123:38
    |
121 | …     assert {e['id'] for e in edges}==set(port['linkIds'])
122 | …     for e in edges:
123 | …         target=ns[e['target_id']]; ti=sub['nodes'].index(target)
    |                                    ^
124 | …         assert target['inputs'][e['target_slot']]['link']==e['id']
125 | …         boundaries.append(dict(host_slot=j,name=port['name'],host_pointer=f'/nodes/4/inputs/{j}',definition_pointer=f'/definitions/…
    |

E501 Line too long (269 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:129:88
    |
127 | …
128 | …6.SaveVideo。同UUID1970dcb4…不等于上一图片图同一定义。',
129 | ….28.1 switch=true选择on_true且lazy只请求该支；false选择原片。宿主true经80覆盖81保存true；0/10经81/82覆盖79缓存；strict_duration=false独立。未执行切片，不保证10秒或规避OOM。',
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 | … 修复、不把它计入34条真实记录。定义输出71由75→-20，不能把悬空76猜成输出。',
131 | …ditioning及54.KSampler，52.UNET→61及54，61正负→54，54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55，57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未…
    |

E501 Line too long (514 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:132:75
    |
130 | … 修复、不把它计入34条真实记录。定义输出71由75→-20，不能把悬空76猜成输出。',
131 | …ditioning及54.KSampler，52.UNET→61及54，61正负→54，54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55，57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结论，不借新版或同名插件。',
132 | …mponents另一实现不足时返回None，不混同。74.audio/fps/bit_depth分别经68/69/70→75；fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT；准确0.28.1两端INT。74源还保存color_space出口但未接，准确版本仅四出口；75源保存sRGB/none未接而准确schema无color_space/codec。准确重组保存按千分精度取帧率、8/10位选择YUV格式、音频按帧数截取并条件AAC；这些静态条件不能保证实际音轨、FPS、色彩或同步。',
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo，无嵌套format.codec，源动态口不匹配；不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
134 | …ed_1→54；90/91/92算法/调度/denoise→54；93none→59；94/95模型→52/51；无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存，不当外线值。',
    |

E501 Line too long (272 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:133:87
    |
131 | …itioning及54.KSampler，52.UNET→61及54，61正负→54，54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55，57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结…
132 | …ponents另一实现不足时返回None，不混同。74.audio/fps/bit_depth分别经68/69/70→75；fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT；准确0.28.…
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo，无嵌套format.codec，源动态口不匹配；不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 | …d_1→54；90/91/92算法/调度/denoise→54；93none→59；94/95模型→52/51；无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存，不当外线值。',
135 | …safetensors，逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同；两Note模型推荐/目录/项目/PR链接只原文，不执行下载或替换。one-step/full restore/防OOM建议非实测。',
    |

E501 Line too long (268 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:135:80
    |
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo，无嵌套format.codec，源动态口不匹配；不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
134 | …ed_1→54；90/91/92算法/调度/denoise→54；93none→59；94/95模型→52/51；无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存，不当外线值。',
135 | ….safetensors，逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同；两Note模型推荐/目录/项目/PR链接只原文，不执行下载或替换。one-step/full restore/防OOM建议非实测。',
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136 | … 定。准确核心文本/schema/注册/视频实现/许可静态核对，不安装执行上游/GPU/媒体/随机种子。三SeedVR2类默认/范围/效果/真实提供方未知。',
137 | …end先属性/保存值再onConfigure，子图重建槽后恢复代理，不能推UE最终值。根extra缺links_added_by_ue键，内部extra只有ue_links空；缺键不补[]。58/61/74缺widgets_values，非空[]或null。',
    |

E501 Line too long (117 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:143:101
    |
141 |     flow.extend('边界 '+json.dumps(e,ensure_ascii=False) for e in boundaries)
142 |     # Compact exact inherited references to those actually relevant; no image comparer attribution.
143 |     inherited=[i for i,e in enumerate(refs[:len(image['sources'])]) if e['id']!='rgthree' and i not in [0,1,2,15,23]]
    |                                                                                                     ^^^^^^^^^^^^^^^^^
144 |     used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
145 |     remap={old:new for new,old in enumerate(used)}
    |

E501 Line too long (119 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:144:101
    |
142 |     # Compact exact inherited references to those actually relevant; no image comparer attribution.
143 |     inherited=[i for i,e in enumerate(refs[:len(image['sources'])]) if e['id']!='rgthree' and i not in [0,1,2,15,23]]
144 |     used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
    |                                                                                                     ^^^^^^^^^^^^^^^^^^^
145 |     remap={old:new for new,old in enumerate(used)}
146 |     for f in fields:f['evidence']=[remap[i] for i in f['evidence']]
    |

E701 Multiple statements on one line (colon)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:146:20
    |
144 |     used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
145 |     remap={old:new for new,old in enumerate(used)}
146 |     for f in fields:f['evidence']=[remap[i] for i in f['evidence']]
    |                    ^
147 |     sources=[refs[i] for i in used]
148 |     versions=['core0.27.0→'+next(e['commit'] for e in sources if e['id']=='core'),'core0.28.1→'+entries[0]['commit'],'frontend1.45.20…
    |

E501 Line too long (194 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:148:101
    |
146 | …
147 | …
148 | …,'core0.28.1→'+entries[0]['commit'],'frontend1.45.20→'+next(e['commit'] for e in sources if e['id']=='frontend')]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 | …),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='仅准确来源参…
    |

E501 Line too long (982 > 100)
   --> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:149:101
    |
147 | …
148 | …+entries[0]['commit'],'frontend1.45.20→'+next(e['commit'] for e in sources if e['id']=='frontend')]
149 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='仅准确来源参考；视频schema差异、悬空端点、SeedVR2实现、模型素材及扩展恢复未知；转换关闭、未实跑。',user_overview=overview,versions=versions,counts=dict(saved_fields=47,source_nodes=18,physical_edges=36,source_notes=2,history_objects=0,linked_saved_fields=sum(f['role']=='linked_saved' for f in fields),frontend_only=2,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=sources,comments=comments,flow=flow,flow_evidence=list(range(len(sources))),zero_saved_nodes=missing,boundaries=boundaries,steps=[overview,'操作1：分别核对原片/切片两支、悬空76与宿主边界，保持停用；不上传或处理素材。','操作2：逐位置核对模型路径、固定种子、内部缓存与覆盖；准确版本差异未确认前不构造prompt。','操作3：实际音轨/FPS/同步/编解码器/设备/画质未知；后续全量审查通过前不作为生成入口。'])
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I001 [*] Import block is un-sorted or un-formatted
 --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:2:1
  |
1 |   """Fetch bounded exact 0.28.1 video/switch text only; never execute upstream."""
2 | / import hashlib
3 | | import json
4 | | import urllib.request
5 | | from pathlib import Path
6 | | from concurrent.futures import ThreadPoolExecutor
  | |_________________________________________________^
7 |
8 |   REF = Path(__file__).resolve().parent.parent / 'seedvr2-video-reference'
  |
help: Organize imports
  |
4 | import urllib.request
5 + from concurrent.futures import ThreadPoolExecutor
6 | from pathlib import Path
  - from concurrent.futures import ThreadPoolExecutor
7 |
  |

E501 Line too long (215 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:12:101
   |
10 | …
11 | …
12 | …y_api/latest/_input_impl/video_types.py', 'comfy_api/latest/_input/video_types.py', 'comfy_api/latest/_util/video_types.py']
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | …
14 | …
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:23:34
   |
21 |     raw=get(f'https://api.github.com/repos/{REPO}/git/ref/tags/v0.28.1')
22 |     (REF/'video-tag.json').write_bytes(raw)
23 |     tag=json.loads(raw)['object'];assert tag['type']=='commit'
   |                                  ^
24 |     commit=tag['sha'];print('exact core 0.28.1',commit,flush=True)
25 |     raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:24:22
   |
22 |     (REF/'video-tag.json').write_bytes(raw)
23 |     tag=json.loads(raw)['object'];assert tag['type']=='commit'
24 |     commit=tag['sha'];print('exact core 0.28.1',commit,flush=True)
   |                      ^
25 |     raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
26 |     (REF/'video-tree.json').write_bytes(raw)
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:27:25
   |
25 |     raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
26 |     (REF/'video-tree.json').write_bytes(raw)
27 |     tree=json.loads(raw);assert not tree['truncated'] and tree['sha']==commit
   |                         ^
28 |     paths={e['path']:e for e in tree['tree'] if e['type']=='blob'}
29 |     print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
   |

E501 Line too long (125 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:29:101
   |
27 |     tree=json.loads(raw);assert not tree['truncated'] and tree['sha']==commit
28 |     paths={e['path']:e for e in tree['tree'] if e['type']=='blob'}
29 |     print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
   |                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^
30 |     def fetch(p):
31 |         url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:31:69
   |
29 |     print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
30 |     def fetch(p):
31 |         url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
   |                                                                     ^
32 |         blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 |         name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:32:77
   |
30 |     def fetch(p):
31 |         url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 |         blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
   |                                                                             ^
33 |         name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 |         return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
   |

E501 Line too long (105 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:32:101
   |
30 |     def fetch(p):
31 |         url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 |         blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
   |                                                                                                     ^^^^^
33 |         name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 |         return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:33:43
   |
31 |         url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 |         blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 |         name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
   |                                           ^
34 |         return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
35 |     with ThreadPoolExecutor(max_workers=4) as pool:
   |

E501 Line too long (132 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:34:101
   |
32 |         blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 |         name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 |         return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
   |                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 |     with ThreadPoolExecutor(max_workers=4) as pool:
36 |         entries=list(pool.map(fetch,[p for p in FILES if p in paths]))
   |

E701 Multiple statements on one line (colon)
  --> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:39:24
   |
37 |     (REF/'sources.json').write_text(json.dumps(dict(sources=entries),indent=2)+'\n')
38 |
39 | if __name__=='__main__':main()
   |                        ^

I001 [*] Import block is un-sorted or un-formatted
 --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:2:1
  |
1 |   """Verify exact Git blob/tag/tree, line ranges and original graph inventory offline."""
2 | / import hashlib
3 | | import json
4 | | from build_definition import OUT, REPO, build
  | |_____________________________________________^
5 |
6 |   def main():
  |
help: Organize imports
  |
3 | import json
4 +
5 | from build_definition import OUT, REPO, build
6 |
7 +
8 | def main():
  |

E702 Multiple statements on one line (semicolon)
 --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:7:14
  |
6 | def main():
7 |     b=build();roots={}
  |              ^
8 |     for e in b['sources']:
9 |         root=(OUT/e['local_file']).parent
  |

E501 Line too long (164 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:14:101
   |
12 | …)
13 | …
14 | …raw).hexdigest()==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file'])
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 | …plitlines())
16 | …
   |

E501 Line too long (172 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:19:101
   |
17 | …]==e['commit']
18 | …
19 | …,frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a003e0c975b8f13e2d4067dd0710e56edd7ba5')
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | …ons']['subgraphs'][0]
21 | …s'])==13 and len(sub['links'])==34
   |

E702 Multiple statements on one line (semicolon)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:20:55
   |
18 |         roots[e['id']]=e['commit']
19 |     assert roots==dict(core='bb131be9e83d2f773c90f1d6f1e4b248a498c8c5',frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a0…
20 |     g=json.loads((REPO/b['source_path']).read_bytes());sub=g['definitions']['subgraphs'][0]
   |                                                       ^
21 |     assert len(g['nodes'])==5 and len(g['links'])==2 and len(sub['nodes'])==13 and len(sub['links'])==34
22 |     assert len(b['fields'])==47 and len(b['comments'])==2
   |

E501 Line too long (104 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:21:101
   |
19 |     assert roots==dict(core='bb131be9e83d2f773c90f1d6f1e4b248a498c8c5',frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a0…
20 |     g=json.loads((REPO/b['source_path']).read_bytes());sub=g['definitions']['subgraphs'][0]
21 |     assert len(g['nodes'])==5 and len(g['links'])==2 and len(sub['nodes'])==13 and len(sub['links'])==34
   |                                                                                                     ^^^^
22 |     assert len(b['fields'])==47 and len(b['comments'])==2
23 |     (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=roots,citations=len(b['sources']),git_texts=len({e['loc…
   |

E501 Line too long (373 > 100)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:23:101
   |
21 | …ks'])==34
22 | …
23 | …len(b['sources']),git_texts=len({e['local_file'] f…aim',upstream_executed=False),indent=2)+'\n')
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | …
25 | …
   |

E701 Multiple statements on one line (colon)
  --> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:25:24
   |
23 |     (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=roots,citations=len(b['sources']),git_texts=len({e['loc…
24 |     print('PASS exact sources, line ranges, tag/tree/blob and 47+2 inventory')
25 | if __name__=='__main__':main()
   |                        ^

Found 84 errors.
[*] 3 fixable with the `--fix` option.
Traceback (most recent call last):
  File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 40, in <module>
    main()
  File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 18, in main
    subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['uv', 'run', '--project', 'calliope-backend', '--offline', 'ruff', 'check', '--config', 'calliope-backend/pyproject.toml', 'calliope-backend/src/calliope/comfyui/fixed_document.py', 'calliope-backend/tests/test_seedvr2_video_fixed_document.py', 'e2e/run-seedvr2-video-document.py', 'docs/hel-892/seedvr2-video-document-evidence/build_definition.py', 'docs/hel-892/seedvr2-video-document-evidence/check_code.py', 'docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py', 'docs/hel-892/seedvr2-video-document-evidence/rebuild.py', 'docs/hel-892/seedvr2-video-document-evidence/recompute.py', 'docs/hel-892/seedvr2-video-document-evidence/render_report.py', 'docs/hel-892/seedvr2-video-document-evidence/repeat.py', 'docs/hel-892/seedvr2-video-document-evidence/request_counts.py', 'docs/hel-892/seedvr2-video-document-evidence/verify_sources.py']' returned non-zero exit status 1.
