Files
aigc-home/docs/hel-892/seedvr2-document-evidence/lint-initial.txt
T

1319 lines
72 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.
I001 [*] Import block is un-sorted or un-formatted
--> calliope-backend/tests/test_seedvr2_fixed_document.py:2:1
|
1 | """SeedVR2 scope/boundary, dual storage, exact source and editorial trust checks."""
2 | / import copy
3 | | import hashlib
4 | | import json
5 | | import subprocess
6 | | from pathlib import Path
7 | | import pytest
8 | | from calliope.comfyui.fixed_document import DEFINITIONS, canonical
9 | | from calliope.comfyui.library import build_document
10 | | from calliope.comfyui.source_reviews import review_for
| |______________________________________________________^
11 |
12 | REPO=Path(__file__).resolve().parents[2]
|
help: Organize imports
|
6 | from pathlib import Path
7 +
8 | import pytest
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:32:39
|
31 | def refuse(source,review):
32 | b=review['fixed_version_document']; b['canonical_sha256']=hashlib.sha256(canonical(source)).hexdigest()
| ^
33 | review['caller_digest']=hashlib.sha256(canonical(b)).hexdigest()
34 | assert not doc(source,review)['fixed_version']['matched']
|
E501 Line too long (107 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:32:101
|
31 | def refuse(source,review):
32 | b=review['fixed_version_document']; b['canonical_sha256']=hashlib.sha256(canonical(source)).hexdigest()
| ^^^^^^^
33 | review['caller_digest']=hashlib.sha256(canonical(b)).hexdigest()
34 | assert not doc(source,review)['fixed_version']['matched']
|
E501 Line too long (101 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:36:101
|
34 | assert not doc(source,review)['fixed_version']['matched']
35 |
36 | @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['scope']+':'+f['node_id']+'.'+f['field'])
| ^
37 | def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
38 | v=pointer(SOURCE,f['pointer']); named=pointer(SOURCE,f['named_pointer'])
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:38:35
|
36 | @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['scope']+':'+f['node_id']+'.'+f['field'])
37 | def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
38 | v=pointer(SOURCE,f['pointer']); named=pointer(SOURCE,f['named_pointer'])
| ^
39 | assert canonical(v)==canonical(f['value']) and type(v).__name__==f['json_type']
40 | assert named==({'images':v} if f['field']=='rgthree_comparer' else v)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:45:30
|
43 | assert f['named_pointer'] in f['execution_note']
44 | for k in f['evidence']:
45 | e=BLOCK['sources'][k]; raw=(OUT/e['local_file']).read_bytes()
| ^
46 | assert hashlib.sha256(raw).hexdigest()==e['sha256']
47 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) and len(e['commit'])==40
|
E501 Line too long (103 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:47:101
|
45 | e=BLOCK['sources'][k]; raw=(OUT/e['local_file']).read_bytes()
46 | assert hashlib.sha256(raw).hexdigest()==e['sha256']
47 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) and len(e['commit'])==40
| ^^^
48 |
49 | @pytest.mark.parametrize('f',BLOCK['fields'])
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:56:67
|
54 | r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['limits']='forged'
55 | else:
56 | p=f['pointer'] if variant=='saved' else f['named_pointer']; base,_,k=p.rpartition('/'); parent=pointer(s,base)
| ^
57 | parent[int(k) if isinstance(parent,list) else k]=None
58 | refuse(s,r)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:56:95
|
54 | r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['limits']='forged'
55 | else:
56 | p=f['pointer'] if variant=='saved' else f['named_pointer']; base,_,k=p.rpartition('/'); parent=pointer(s,base)
| ^
57 | parent[int(k) if isinstance(parent,list) else k]=None
58 | refuse(s,r)
|
E501 Line too long (118 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:56:101
|
54 | r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['limits']='forged'
55 | else:
56 | p=f['pointer'] if variant=='saved' else f['named_pointer']; base,_,k=p.rpartition('/'); parent=pointer(s,base)
| ^^^^^^^^^^^^^^^^^^
57 | parent[int(k) if isinstance(parent,list) else k]=None
58 | refuse(s,r)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:63:52
|
61 | @pytest.mark.parametrize('variant',['mode','identity'])
62 | def test_all_root_and_definition_nodes_bound(pair,variant):
63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); n=pointer(s,pair[0])
| ^
64 | if variant=='mode': n['mode']=4
65 | else: n['properties']['ver']='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:64:23
|
62 | def test_all_root_and_definition_nodes_bound(pair,variant):
63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); n=pointer(s,pair[0])
64 | if variant=='mode': n['mode']=4
| ^
65 | else: n['properties']['ver']='forged'
66 | refuse(s,r)
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:65:9
|
63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); n=pointer(s,pair[0])
64 | if variant=='mode': n['mode']=4
65 | else: n['properties']['ver']='forged'
| ^
66 | refuse(s,r)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:70:52
|
68 | @pytest.mark.parametrize('pair',EDGES,ids=lambda pair:pair[0])
69 | def test_every_physical_and_boundary_edge_record_bound(pair):
70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); e=pointer(s,pair[0])
| ^
71 | if isinstance(e,list): e[3]=99999
72 | else: e['target_id']=99999
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:71:26
|
69 | def test_every_physical_and_boundary_edge_record_bound(pair):
70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); e=pointer(s,pair[0])
71 | if isinstance(e,list): e[3]=99999
| ^
72 | else: e['target_id']=99999
73 | refuse(s,r)
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:72:9
|
70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); e=pointer(s,pair[0])
71 | if isinstance(e,list): e[3]=99999
72 | else: e['target_id']=99999
| ^
73 | refuse(s,r)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:79:28
|
77 | def test_all_13_host_child_boundary_endpoints_bound(b,variant):
78 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
79 | p=b[variant+'_pointer']; port=pointer(s,p)
| ^
80 | if variant=='definition': port['linkIds']=[]
81 | elif variant=='host': port['name']='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:80:29
|
78 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
79 | p=b[variant+'_pointer']; port=pointer(s,p)
80 | if variant=='definition': port['linkIds']=[]
| ^
81 | elif variant=='host': port['name']='forged'
82 | else: port['link']=99999
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:81:25
|
79 | p=b[variant+'_pointer']; port=pointer(s,p)
80 | if variant=='definition': port['linkIds']=[]
81 | elif variant=='host': port['name']='forged'
| ^
82 | else: port['link']=99999
83 | refuse(s,r)
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:82:9
|
80 | if variant=='definition': port['linkIds']=[]
81 | elif variant=='host': port['name']='forged'
82 | else: port['link']=99999
| ^
83 | refuse(s,r)
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:87:52
|
85 | @pytest.mark.parametrize('variant',['note','named_note','missing_to_empty','comparer_empty_to_object','save_output','seed_control','un…
86 | def test_special_shapes_missing_identity_note_and_binding_fail_closed(variant):
87 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); ns={n['id']:n for n in s['nodes']}; sub=s['definitions']['subgraphs'][0]; inner={…
| ^
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:87:88
|
85 | @pytest.mark.parametrize('variant',['note','named_note','missing_to_empty','comparer_empty_to_object','save_output','seed_control','un…
86 | def test_special_shapes_missing_identity_note_and_binding_fail_closed(variant):
87 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); ns={n['id']:n for n in s['nodes']}; sub=s['definitions']['subgraphs'][0]; inner={…
| ^
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
|
E501 Line too long (201 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:87:101
|
85 | …_empty_to_object','save_output','seed_control','unet_case','vae_name','preview','guhai','ue','frontend','citation','source_sha','path…
86 | …
87 | …']}; sub=s['definitions']['subgraphs'][0]; inner={n['id']:n for n in sub['nodes']}; block=r['fixed_version_document']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 | …
89 | …
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:87:126
|
85 | @pytest.mark.parametrize('variant',['note','named_note','missing_to_empty','comparer_empty_to_object','save_output','seed_control','un…
86 | def test_special_shapes_missing_identity_note_and_binding_fail_closed(variant):
87 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); ns={n['id']:n for n in s['nodes']}; sub=s['definitions']['subgraphs'][0]; inner={…
| ^
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:87:167
|
85 | …','save_output','seed_control','unet_case','vae_name','preview','guhai','ue','frontend','citation','source_sha','path','overview','la…
86 | …
87 | …nitions']['subgraphs'][0]; inner={n['id']:n for n in sub['nodes']}; block=r['fixed_version_document']
| ^
88 | …
89 | …
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:88:23
|
86 | def test_special_shapes_missing_identity_note_and_binding_fail_closed(variant):
87 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); ns={n['id']:n for n in s['nodes']}; sub=s['definitions']['subgraphs'][0]; inner={…
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
| ^
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
90 | elif variant=='missing_to_empty': inner[58]['widgets_values']=[]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:89:31
|
87 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW); ns={n['id']:n for n in s['nodes']}; sub=s['definitions']['subgraphs'][0]; inner={…
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
| ^
90 | elif variant=='missing_to_empty': inner[58]['widgets_values']=[]
91 | elif variant=='comparer_empty_to_object': ns[73]['widgets_values']=[{}]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:90:37
|
88 | if variant=='note': ns[72]['widgets_values'][0]='forged'
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
90 | elif variant=='missing_to_empty': inner[58]['widgets_values']=[]
| ^
91 | elif variant=='comparer_empty_to_object': ns[73]['widgets_values']=[{}]
92 | elif variant=='save_output': ns[9]['outputs']=[]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:91:45
|
89 | elif variant=='named_note': ns[72]['widgets_values_named']['text']='forged'
90 | elif variant=='missing_to_empty': inner[58]['widgets_values']=[]
91 | elif variant=='comparer_empty_to_object': ns[73]['widgets_values']=[{}]
| ^
92 | elif variant=='save_output': ns[9]['outputs']=[]
93 | elif variant=='seed_control': ns[66]['widgets_values'].insert(2,'fixed')
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:92:32
|
90 | elif variant=='missing_to_empty': inner[58]['widgets_values']=[]
91 | elif variant=='comparer_empty_to_object': ns[73]['widgets_values']=[{}]
92 | elif variant=='save_output': ns[9]['outputs']=[]
| ^
93 | elif variant=='seed_control': ns[66]['widgets_values'].insert(2,'fixed')
94 | elif variant=='unet_case': ns[66]['widgets_values'][7]=inner[52]['widgets_values'][0]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:93:33
|
91 | elif variant=='comparer_empty_to_object': ns[73]['widgets_values']=[{}]
92 | elif variant=='save_output': ns[9]['outputs']=[]
93 | elif variant=='seed_control': ns[66]['widgets_values'].insert(2,'fixed')
| ^
94 | elif variant=='unet_case': ns[66]['widgets_values'][7]=inner[52]['widgets_values'][0]
95 | elif variant=='vae_name': ns[66]['widgets_values'][8]=inner[51]['widgets_values'][0]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:94:30
|
92 | elif variant=='save_output': ns[9]['outputs']=[]
93 | elif variant=='seed_control': ns[66]['widgets_values'].insert(2,'fixed')
94 | elif variant=='unet_case': ns[66]['widgets_values'][7]=inner[52]['widgets_values'][0]
| ^
95 | elif variant=='vae_name': ns[66]['widgets_values'][8]=inner[51]['widgets_values'][0]
96 | elif variant=='preview': ns[66]['properties']['previewExposures'][0]['sourceNodeId']='9'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:95:29
|
93 | elif variant=='seed_control': ns[66]['widgets_values'].insert(2,'fixed')
94 | elif variant=='unet_case': ns[66]['widgets_values'][7]=inner[52]['widgets_values'][0]
95 | elif variant=='vae_name': ns[66]['widgets_values'][8]=inner[51]['widgets_values'][0]
| ^
96 | elif variant=='preview': ns[66]['properties']['previewExposures'][0]['sourceNodeId']='9'
97 | elif variant=='guhai': ns[1]['properties']['guhaiImageValue']='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:96:28
|
94 | elif variant=='unet_case': ns[66]['widgets_values'][7]=inner[52]['widgets_values'][0]
95 | elif variant=='vae_name': ns[66]['widgets_values'][8]=inner[51]['widgets_values'][0]
96 | elif variant=='preview': ns[66]['properties']['previewExposures'][0]['sourceNodeId']='9'
| ^
97 | elif variant=='guhai': ns[1]['properties']['guhaiImageValue']='forged'
98 | elif variant=='ue': ns[66]['properties']['ue_properties']['version']='7.7'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:97:26
|
95 | elif variant=='vae_name': ns[66]['widgets_values'][8]=inner[51]['widgets_values'][0]
96 | elif variant=='preview': ns[66]['properties']['previewExposures'][0]['sourceNodeId']='9'
97 | elif variant=='guhai': ns[1]['properties']['guhaiImageValue']='forged'
| ^
98 | elif variant=='ue': ns[66]['properties']['ue_properties']['version']='7.7'
99 | elif variant=='frontend': s['extra']['frontendVersion']='1.39.19'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:98:23
|
96 | elif variant=='preview': ns[66]['properties']['previewExposures'][0]['sourceNodeId']='9'
97 | elif variant=='guhai': ns[1]['properties']['guhaiImageValue']='forged'
98 | elif variant=='ue': ns[66]['properties']['ue_properties']['version']='7.7'
| ^
99 | elif variant=='frontend': s['extra']['frontendVersion']='1.39.19'
100 | elif variant=='citation': block['sources'][0]['commit']='0'*40
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:99:29
|
97 | elif variant=='guhai': ns[1]['properties']['guhaiImageValue']='forged'
98 | elif variant=='ue': ns[66]['properties']['ue_properties']['version']='7.7'
99 | elif variant=='frontend': s['extra']['frontendVersion']='1.39.19'
| ^
100 | elif variant=='citation': block['sources'][0]['commit']='0'*40
101 | elif variant=='source_sha': block['source_sha1']='0'*40
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:100:29
|
98 | elif variant=='ue': ns[66]['properties']['ue_properties']['version']='7.7'
99 | elif variant=='frontend': s['extra']['frontendVersion']='1.39.19'
100 | elif variant=='citation': block['sources'][0]['commit']='0'*40
| ^
101 | elif variant=='source_sha': block['source_sha1']='0'*40
102 | elif variant=='path': block['source_path']='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:101:31
|
99 | elif variant=='frontend': s['extra']['frontendVersion']='1.39.19'
100 | elif variant=='citation': block['sources'][0]['commit']='0'*40
101 | elif variant=='source_sha': block['source_sha1']='0'*40
| ^
102 | elif variant=='path': block['source_path']='forged'
103 | elif variant=='overview': block['user_overview']='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:102:25
|
100 | elif variant=='citation': block['sources'][0]['commit']='0'*40
101 | elif variant=='source_sha': block['source_sha1']='0'*40
102 | elif variant=='path': block['source_path']='forged'
| ^
103 | elif variant=='overview': block['user_overview']='forged'
104 | elif variant=='layout': ns[66]['pos'][0]+=1
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:103:29
|
101 | elif variant=='source_sha': block['source_sha1']='0'*40
102 | elif variant=='path': block['source_path']='forged'
103 | elif variant=='overview': block['user_overview']='forged'
| ^
104 | elif variant=='layout': ns[66]['pos'][0]+=1
105 | elif variant=='proxy': ns[66]['properties']['proxyWidgets']=[['54','seed']]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:104:27
|
102 | elif variant=='path': block['source_path']='forged'
103 | elif variant=='overview': block['user_overview']='forged'
104 | elif variant=='layout': ns[66]['pos'][0]+=1
| ^
105 | elif variant=='proxy': ns[66]['properties']['proxyWidgets']=[['54','seed']]
106 | refuse(s,r)
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:105:26
|
103 | elif variant=='overview': block['user_overview']='forged'
104 | elif variant=='layout': ns[66]['pos'][0]+=1
105 | elif variant=='proxy': ns[66]['properties']['proxyWidgets']=[['54','seed']]
| ^
106 | refuse(s,r)
|
E501 Line too long (186 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:112:101
|
110 | …
111 | …
112 | …or i,n in enumerate(g['nodes']) if n['type']!='MarkdownNote' for k in range(len(n.get('widgets_values',[])))}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 | …7
114 | …
|
E501 Line too long (116 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:119:101
|
117 | assert len(BLOCK['boundaries'])==13 and SUB['widgets']==[]
118 | for b in BLOCK['boundaries']:
119 | assert pointer(SOURCE,b['host_pointer'])['name']==pointer(SOURCE,b['definition_pointer'])['name']==b['name']
| ^^^^^^^^^^^^^^^^
120 | assert pointer(SOURCE,b['target_pointer'])['link']==b['edge']['id']
121 | for prefix,g in SCOPES:
|
E501 Line too long (148 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:124:101
|
122 | …
123 | …
124 | …) else (e['id'],e['origin_id'],e['origin_slot'],e['target_id'],e['target_slot'],e['type'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125 | …][slot]['links']
126 | …s']
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:125:22
|
123 | … for e in g['links']:
124 | … edge,src,slot,dst,inp,_=e if isinstance(e,list) else (e['id'],e['origin_id'],e['origin_slot'],e['target_id'],e['target_slot…
125 | … if src>=0: assert edge in nodes[src]['outputs'][slot]['links']
| ^
126 | … else: assert edge in g['inputs'][slot]['linkIds']
127 | … if dst>=0: assert nodes[dst]['inputs'][inp]['link']==edge
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:126:17
|
124 | … edge,src,slot,dst,inp,_=e if isinstance(e,list) else (e['id'],e['origin_id'],e['origin_slot'],e['target_id'],e['target_slot'],e…
125 | … if src>=0: assert edge in nodes[src]['outputs'][slot]['links']
126 | … else: assert edge in g['inputs'][slot]['linkIds']
| ^
127 | … if dst>=0: assert nodes[dst]['inputs'][inp]['link']==edge
128 | … else: assert edge in g['outputs'][inp]['linkIds']
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:127:22
|
125 | if src>=0: assert edge in nodes[src]['outputs'][slot]['links']
126 | else: assert edge in g['inputs'][slot]['linkIds']
127 | if dst>=0: assert nodes[dst]['inputs'][inp]['link']==edge
| ^
128 | else: assert edge in g['outputs'][inp]['linkIds']
129 | assert doc()['fixed_version']['matched'] and len(doc()['source_notes'])==1
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:128:17
|
126 | else: assert edge in g['inputs'][slot]['linkIds']
127 | if dst>=0: assert nodes[dst]['inputs'][inp]['link']==edge
128 | else: assert edge in g['outputs'][inp]['linkIds']
| ^
129 | assert doc()['fixed_version']['matched'] and len(doc()['source_notes'])==1
130 | assert BLOCK['comments'][0]['text']==SOURCE['nodes'][0]['widgets_values'][0]
|
E501 Line too long (136 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:131:101
|
129 | …(doc()['source_notes'])==1
130 | …es'][0]['widgets_values'][0]
131 | …checked' and doc()['status']==dict(imported=True,doc_done=False,exec_verified=False)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132 | …
133 | …,'未显式result','不借新版本','seedvr2_ema_vae_fp16','fixed','guhaiImageValue','previewExposures','4096','未实跑']:
|
E501 Line too long (166 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:133:86
|
131 | …c()['status']==dict(imported=True,doc_done=False,exec_verified=False)
132 | …
133 | …,'不借新版本','seedvr2_ema_vae_fp16','fixed','guhaiImageValue','previewExposures','4096','未实跑']:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 | …
135 | …
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:139:89
|
137 | def test_old_thirty_review_objects_exactly_preserved():
138 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
139 | old=json.loads(subprocess.check_output(['git','show','1d04c00:'+resource],cwd=REPO)); now=json.loads((REPO/resource).read_bytes()…
| ^
140 | assert now==old and len(DEFINITIONS)==31
141 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
E501 Line too long (175 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:139:101
|
137 | …
138 | …
139 | …urce],cwd=REPO)); now=json.loads((REPO/resource).read_bytes()); now[PATH].pop('fixed_version_document')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140 | …
141 | …version_document' in r]
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:139:135
|
137 | …
138 | …on'
139 | …esource],cwd=REPO)); now=json.loads((REPO/resource).read_bytes()); now[PATH].pop('fixed_version_document')
| ^
140 | …
141 | …ed_version_document' in r]
|
E501 Line too long (121 > 100)
--> calliope-backend/tests/test_seedvr2_fixed_document.py:142:101
|
140 | assert now==old and len(DEFINITIONS)==31
141 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
142 | assert len(blocks)==30 and sum(len(b['fields']) for b in blocks)==904 and sum(len(b['comments']) for b in blocks)==21
| ^^^^^^^^^^^^^^^^^^^^^
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:2:1
|
1 | """Source-bound SeedVR2 single-image editorial reference; never an execution profile."""
2 | / from __future__ import annotations
3 | | import hashlib
4 | | import json
5 | | from pathlib import Path
| |________________________^
6 |
7 | REPO = Path(__file__).resolve().parents[3]
|
help: Organize imports
|
2 | from __future__ import annotations
3 +
4 | import hashlib
|
E501 Line too long (132 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:10:72
|
8 | OUT = Path(__file__).resolve().parent
9 | REF = OUT.parent / 'seedvr2-reference'
10 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 |
12 | def canonical(v):
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:16:22
|
15 | def build(index=0):
16 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw)
| ^
17 | sub=graph['definitions']['subgraphs'][0]
18 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:16:52
|
15 | def build(index=0):
16 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw)
| ^
17 | sub=graph['definitions']['subgraphs'][0]
18 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:18:69
|
16 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw)
17 | sub=graph['definitions']['subgraphs'][0]
18 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[]
| ^
19 | def ref(key,file,first,last,claim):
20 | e=next(e for e in entries if e['id']==key and e['file']==file)
|
E501 Line too long (109 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:26:90
|
24 | refs.append({**e,'local_file':'../seedvr2-reference/'+e['local_file'],'lines':[first,last],'claim':claim})
25 | return len(refs)-1
26 | load=ref('core','nodes.py',1720,1795,'core0.27.0 LoadImage动态枚举、IMAGE/MASK及反向alpha;文件内容未读')
| ^^^^^^^^
27 | save=ref('core','nodes.py',1643,1705,'准确SaveImage有IMAGE出口并返回原images;PNG文件与UI描述符分开')
28 | vae=ref('core','nodes.py',754,849,'VAELoader动态vae/vae_approx枚举、装载路径与特殊分支;不加载权重')
|
F841 Local variable `reg` is assigned to but never used
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:35:5
|
33 | resize=ref('core','comfy_extras/nodes_post_processing.py',412,513,'ResizeImageMaskNode动态倍率/算法schema与分支;不是模型超分效果')
34 | resize_impl=ref('core','comfy_extras/nodes_post_processing.py',256,308,'倍率按round计算宽高再common_upscale;无输入尺寸实测')
35 | reg=ref('core','nodes.py',2048,2140,'准确核心静态注册表,含SaveImage和采样/编解码/加载器')
| ^^^
36 | extra=ref('core','nodes.py',2372,2513,'准确核心内置extras模块调查集合,nodes_seed.py为必要候选')
37 | seed_file=ref('core','comfy_extras/nodes_seed.py',1, len((REF/'core__comfy_extras__nodes_seed.py').read_text().splitlines()),'准确…
|
help: Remove assignment to unused variable `reg`
E501 Line too long (199 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:37:101
|
35 | … /加载器')
36 | …ed.py为必要候选')
37 | …as__nodes_seed.py').read_text().splitlines()),'准确nodes_seed.py全文调查;只对该集合下结论,不借新版或插件同名实现')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 | …准确schema/注册及alpha合并实现,保留MASK物理边')
39 | …read_text().splitlines()),'准确采样器/调度器枚举与继承,不执行采样或求随机数')
|
F841 Local variable `mask` is assigned to but never used
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:38:5
|
36 | extra=ref('core','nodes.py',2372,2513,'准确核心内置extras模块调查集合,nodes_seed.py为必要候选')
37 | seed_file=ref('core','comfy_extras/nodes_seed.py',1, len((REF/'core__comfy_extras__nodes_seed.py').read_text().splitlines()),'准确…
38 | mask=ref('core','comfy_extras/nodes_compositing.py',188,223,'JoinImageWithAlpha准确schema/注册及alpha合并实现,保留MASK物理边')
| ^^^^
39 | samplers=ref('core','comfy/samplers.py',1,len((REF/'core__comfy__samplers.py').read_text().splitlines()),'准确采样器/调度器枚举与…
40 | widgets=ref('frontend','src/scripts/widgets.ts',1,len((REF/'frontend__src__scripts__widgets.ts').read_text().splitlines()),'准确…
|
help: Remove assignment to unused variable `mask`
E501 Line too long (107 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:52:101
|
50 | for key in ['core','frontend','rgthree']:
51 | ref(key,'LICENSE',1,len((REF/(key+'__LICENSE')).read_text().splitlines()),'准确提交许可原文;未推目标安装或许可适用性')
52 | # default, unit, limits, effect, citations. Values are read independently from source, never generated.
| ^^^^^^^
53 | common={
54 | 'seed':('随机噪声种子','0','无量纲整数','0~18446744073709551615;control_after_generate为前端控制','保存959948902156062用于…
|
E501 Line too long (181 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:56:88
|
54 | …ontrol_after_generate为前端控制','保存959948902156062用于噪声种子;宿主seed边51覆盖内部54.seed缓存,内部fixed是另一个前端控制,不求…
55 | …4.steps。单步仅参数,不保证清晰度、速度或成功。',[sampler]),
56 | …1','原JSON int1与FLOAT schema分开;宿主边53覆盖内部54.cfg。条件来自61正负出口,效果/兼容未知。',[sampler]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | …含euler;实际安装未知','保存euler;宿主边54覆盖内部54.sampler_name,不保证SeedVR2兼容。',[sampler,samplers]),
58 | …ERS含simple','保存simple;宿主边55覆盖内部54.scheduler。不是实跑调度证明。',[sampler,samplers]),
|
E501 Line too long (146 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:59:83
|
57 | … ','准确SAMPLERS含euler;实际安装未知','保存euler;宿主边54覆盖内部54.sampler_name,不保证SeedVR2兼容。',[sampler,samplers]),
58 | … 举','准确SCHEDULERS含simple','保存simple;宿主边55覆盖内部54.scheduler。不是实跑调度证明。',[sampler,samplers]),
59 | …tep0.01','原JSON int1;宿主边56覆盖内部54.denoise。1不是修复效果或保真保证。',[sampler]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 | … 件默认','文件引用','来自diffusion_models;路径是否存在未知','宿主Seedvr2\\seedvr2_3b_int8_convrot.safetensors与内部seedvr2\\seedvr2_…
61 | … ','文件引用','vae/vae_approx和特殊枚举;模型兼容未知','宿主seedvr2_ema_vae_fp16.safetensors经边58覆盖内部51缓存ema_vae_fp16.safetens…
|
E501 Line too long (284 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:62:88
|
60 | …dels;路径是否存在未知','宿主Seedvr2\\seedvr2_3b_int8_convrot.safetensors与内部seedvr2\\seedvr2_3b_int8_convrot.safetensors大小写不同,逐字保留;边57覆盖内部52.unet_name,不改源、不验证磁盘或权…
61 | … ;模型兼容未知','宿主seedvr2_ema_vae_fp16.safetensors经边58覆盖内部51缓存ema_vae_fp16.safetensors;Note推荐ema_vae_fp16不替换源保存值,也不证明安装。',[vae,subfront]),
62 | …y multiplier分支','原JSON int4;宿主边50覆盖内部57倍率缓存。准确resize先round宽高再插值,lanczos为插值算法,与后续模型超分分别说明;输入/输出尺寸和效果未知。',[resize,resize_impl,dynamic]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 | … 标签','仅保存none;默认/选项/范围/效果未知','宿主none经边64覆盖内部59缓存none;SeedVR2PostProcessing只有源口声明,准确实现未知,不能将none解释为已证明无任何颜色处理。',[extra,seed_file]),
64 | … 或显存容量','保存4096。宿主边65只覆盖48编码temporal_size;55解码4096是独立保存值,无该外线。仅视频VAE才使用时间窗口,实际单图批次/显存/压缩结构未知。',[enc,dec]),
|
E501 Line too long (202 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:70:79
|
68 | …fault/fp8_e4m3fn/fp8_e4m3fn_fast/fp8_e5m2','内部52保存default,未由宿主暴露覆盖;文件名含int8不证明实际计算/加载dtype或GPU支持。',[un…
69 | …increment/decrement/randomize;非后端参数','仅内部54保存fixed;和seed=959948902156062分开。宿主没有单独保存该控制,不构造随机值/额外p…
70 | …ale by multiplier','内部57保存倍率分支;不补target width/height等未保存字段,不把插值当模型生成。',[resize,dynamic]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 | …ear/area/bicubic/lanczos','内部57保存lanczos,作用于倍率缩放步骤;不是SeedVR2模型算法或画质保证。',[resize,resize_impl]),
72 | … image内容类型过滤;素材实际情况未知','保存ComfyUI_02159_.png,经1.IMAGE/MASK→66;guhaiImageValue同名仅额外属性,恢复实现未知,不读…
|
E501 Line too long (288 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:74:76
|
72 | … 型过滤;素材实际情况未知','保存ComfyUI_02159_.png,经1.IMAGE/MASK→66;guhaiImageValue同名仅额外属性,恢复实现未知,不读取图片或保证有alpha。',[load,upload]),
73 | … 不是素材路径','LoadImage上传占位image;不证明已上传,不作为第二幅图或后端参数。',[upload,host]),
74 | …utput配置和计数命名','保存seedvr2_after/image;准确core0.27.0 SaveImage有images IMAGE出口并result=(images,),与源边67兼容。条件PNG保存/UI文件描述符不是已保存证明,也不是再次加载文件。',[save]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75 | … 个[]位置;named为{images:[]},按准确前端恢复条件','Comparer73保存[[]]中的一个空列表,Slide另在properties;没有历史图像。A从66结果,B从9.SaveImage出口,二者都是处理链结果,不标成原图/放大图对比。准…
76 | …
|
E501 Line too long (456 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:75:71
|
73 | … 不是素材路径','LoadImage上传占位image;不证明已上传,不作为第二幅图或后端参数。',[upload,host]),
74 | …utput配置和计数命名','保存seedvr2_after/image;准确core0.27.0 SaveImage有images IMAGE出口并result=(images,),与源边67兼容。条件PNG保存/UI文件描述符不是已保存证明,也不是再次加载文件。',[save]),
75 | … 个[]位置;named为{images:[]},按准确前端恢复条件','Comparer73保存[[]]中的一个空列表,Slide另在properties;没有历史图像。A从66结果,B从9.SaveImage出口,二者都是处理链结果,不标成原图/放大图对比。准确后端继承PreviewImage但compare_images只返回UI,未显式result;源声明images IMAGE出口未接,实际可消费性未知,保持转换关闭。',[compare,comparefront,save,comparereg]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76 | …
77 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:77:14
|
75 | 'rgthree_comparer':('比较器前端图像列表','准确前端空数组状态','前端复合状态','完整保存单个[]位置;named为{images:[]},按准确…
76 | }
77 | fields=[]; missing=[]; boundary=[]
| ^
78 | for scope,g,prefix in [('root',graph,''),(sub['id'],sub,'/definitions/subgraphs/0')]:
79 | for i,n in enumerate(g['nodes']):
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:77:26
|
75 | 'rgthree_comparer':('比较器前端图像列表','准确前端空数组状态','前端复合状态','完整保存单个[]位置;named为{images:[]},按准确…
76 | }
77 | fields=[]; missing=[]; boundary=[]
| ^
78 | for scope,g,prefix in [('root',graph,''),(sub['id'],sub,'/definitions/subgraphs/0')]:
79 | for i,n in enumerate(g['nodes']):
|
E501 Line too long (272 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:82:101
|
80 | …
81 | …
82 | …e_state='missing',effect='源未保存widgets_values,不等同[],零位置,不补参数;'+('准确SeedVR2实现未知。' if n['type'].startswith('SeedVR') else '只按准确schema和物理口说明。')))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83 | …
84 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:84:41
|
82 | … missing.append(dict(node_id=str(n['id']),class_type=n['type'],pointer=base,value_state='missing',effect='源未保存widgets_val…
83 | … continue
84 | … if n['type']=='MarkdownNote': continue
| ^
85 | … names=list(n['widgets_values_named'])
86 | … assert len(names)==len(n['widgets_values'])
|
E501 Line too long (198 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:91:101
|
89 | …'/','~1')
90 | …ame),None)
91 | …e+'/properties/comparer_mode' if name=='rgthree_comparer' else base+'/widgets_values_named/control_after_generate')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92 | …
93 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:93:38
|
91 | … inp=f'{base}/inputs/{input_idx}' if input_idx is not None else (base+'/properties/comparer_mode' if name=='rgthree_comparer' els…
92 | … role='scalar'
93 | … if isinstance(v,list): role='frontend_state'
| ^
94 | … elif name in ['upload','control_after_generate']: role='frontend_control'
95 | … elif input_idx is not None and n['inputs'][input_idx].get('link') is not None: role='linked_saved'
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:94:65
|
92 | role='scalar'
93 | if isinstance(v,list): role='frontend_state'
94 | elif name in ['upload','control_after_generate']: role='frontend_control'
| ^
95 | elif input_idx is not None and n['inputs'][input_idx].get('link') is not None: role='linked_saved'
96 | named_value=n['widgets_values_named'][name]
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:95:94
|
93 | if isinstance(v,list): role='frontend_state'
94 | elif name in ['upload','control_after_generate']: role='frontend_control'
95 | elif input_idx is not None and n['inputs'][input_idx].get('link') is not None: role='linked_saved'
| ^
96 | named_value=n['widgets_values_named'][name]
97 | if name=='rgthree_comparer': assert named_value=={'images':v}
|
E501 Line too long (114 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:95:101
|
93 | if isinstance(v,list): role='frontend_state'
94 | elif name in ['upload','control_after_generate']: role='frontend_control'
95 | elif input_idx is not None and n['inputs'][input_idx].get('link') is not None: role='linked_saved'
| ^^^^^^^^^^^^^^
96 | named_value=n['widgets_values_named'][name]
97 | if name=='rgthree_comparer': assert named_value=={'images':v}
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:97:44
|
95 | … elif input_idx is not None and n['inputs'][input_idx].get('link') is not None: role='linked_saved'
96 | … named_value=n['widgets_values_named'][name]
97 | … if name=='rgthree_comparer': assert named_value=={'images':v}
| ^
98 | … else: assert canonical(v)==canonical(named_value)
99 | … fields.append(dict(node_id=str(n['id']),scope='root' if not prefix else 'subgraph:'+scope,class_type=n['type'],field=name,label=…
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:98:21
|
96 | named_value=n['widgets_values_named'][name]
97 | if name=='rgthree_comparer': assert named_value=={'images':v}
98 | else: assert canonical(v)==canonical(named_value)
| ^
99 | fields.append(dict(node_id=str(n['id']),scope='root' if not prefix else 'subgraph:'+scope,class_type=n['type'],field=…
100 | assert len(fields)==37
|
E501 Line too long (630 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:99:101
|
97 | …
98 | …
99 | …ph:'+scope,class_type=n['type'],field=name,label=…np))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100 | …
101 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:109:27
|
107 | assert target['link']==e['id']
108 | boundary.append(dict(host_slot=j,name=port['name'],host_pointer=f'/nodes/4/inputs/{j}',definition_pointer=f'/definitions/…
109 | note=graph['nodes'][0]; assert note['widgets_values'][0]==note['widgets_values_named']['text']
| ^
110 | overview='这张图读取一张图片及遮罩,送入子图做缩放、编码、采样和解码,再保存并比较处理结果。保存倍率4、lanczos插值;比较A来自子…
111 | flow=[overview,
|
E501 Line too long (267 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:115:94
|
113 | …48.VAEEncodeTiled。52.UNETLoader→54.model及61.SeedVR2Conditioning.model;48.latent→61.vae_conditioning和54.latent_image;61正/负槽→54.positive/negative;54→55.VAEDecodeTiled→59.…
114 | …moted保存记录,不制造代理列表或seed控制。边50倍率→57.slot2;51seed→54.slot4;52steps→54.slot5;53cfg→54.slot6;54sampler_name→54.slot7;55scheduler→54.slot8;56denoise→54.slot9…
115 | …_convrot.safetensors;宿主VAE seedvr2_ema_vae_fp16.safetensors与内部ema_vae_fp16.safetensors不同。Note模型URL与目录仅推荐源文本,不执行链接/下载,不替换保存值或证明安装。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 | …1非效果保证。temporal_size4096仅视频VAE窗口,实际单图批次、输入尺寸、内存与设备未知。54内部fixed前端控制与宿主seed分开,不求随机数/不构造prompt。',
117 | … 调查集合;tree无seedvr命名文件且这些文本未证实SeedVR2Preprocess/Conditioning/PostProcessing,不能证明全仓绝对不存在,更不借新版本/插件同名补缺。该实现身份、默认/单位/范围和模…
|
E501 Line too long (264 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:118:94
|
116 | …1非效果保证。temporal_size4096仅视频VAE窗口,实际单图批次、输入尺寸、内存与设备未知。54内部fixed前端控制与宿主seed分开,不求随机数/不构造prompt。',
117 | … 调查集合;tree无seedvr命名文件且这些文本未证实SeedVR2Preprocess/Conditioning/PostProcessing,不能证明全仓绝对不存在,更不借新版本/插件同名补缺。该实现身份、默认/单位/范围和…
118 | …t文本/许可。Comparer继承PreviewImage,父core SaveImage有IMAGE返回但override compare_images仅UI无显式result;前端Slide与rgthree_comparer恢复分层,保存[[]]不是缓存图片。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 | …_added_by_ue空不证明无改写。guhaiImageValue、previewExposures源指54均仅属性,身份/恢复实现未知,不生成预览。准确宿主先属性/保存值再onConfigure,子图先定义槽再父configure、再…
120 | …1缺widgets_values,非[],不补值。旧30块904位置+21注释逐对象不变;现31块941位置+22注释仅参考。155完整定稿0/必要实跑0/新增转换0;145UI仍9参考候选136关闭。']
|
E501 Line too long (320 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:119:77
|
117 | … 调查集合;tree无seedvr命名文件且这些文本未证实SeedVR2Preprocess/Conditioning/PostProcessing,不能证明全仓绝对不存在,更不借新版本/插件同名补缺。该实现身份、默认/单位/范围和模型适配均未知。',
118 | …t文本/许可。Comparer继承PreviewImage,父core SaveImage有IMAGE返回但override compare_images仅UI无显式result;前端Slide与rgthree_comparer恢复分层,保存[[]]不是缓存图片。',
119 | …_added_by_ue空不证明无改写。guhaiImageValue、previewExposures源指54均仅属性,身份/恢复实现未知,不生成预览。准确宿主先属性/保存值再onConfigure,子图先定义槽再父configure、再代理恢复;不能推UE/guhai/preview扩展加载和最终值。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120 | …1缺widgets_values,非[],不补值。旧30块904位置+21注释逐对象不变;现31块941位置+22注释仅参考。155完整定稿0/必要实跑0/新增转换0;145UI仍9参考候选136关闭。']
121 | …
|
E501 Line too long (111 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:124:101
|
122 | flow.extend('原边 '+scope+' '+json.dumps(e,ensure_ascii=False) for e in g['links'])
123 | flow.extend('边界 '+json.dumps(e,ensure_ascii=False) for e in boundary)
124 | versions=[f"{k}→{next(e['commit'] for e in entries if e['id']==k)}" for k in ['core','frontend','rgthree']]
| ^^^^^^^^^^^
125 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sh…
|
E501 Line too long (1246 > 100)
--> docs/hel-892/seedvr2-document-evidence/build_definition.py:125:101
|
123 | …
124 | …end','rgthree']]
125 | …b.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='仅准确来源参考;SeedVR2实现、模型/素材/扩展恢复与实际效果未知,保持转换关闭、未实跑。',user_overview=overview,versions=versions,counts=dict(saved_fields=37,source_nodes=15,physical_edges=33,source_notes=1,history_objects=0,linked_saved_fields=sum(f['role']=='linked_saved' for f in fields),frontend_only=3,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=refs,comments=[dict(node_id='72',pointer='/nodes/0/widgets_values/0',named_pointer='/nodes/0/widgets_values_named/text',text=note['widgets_values'][0],meaning='完整原Note含子图指南、VAE/UNET推荐链接、SEEDVR2和diffusion_models目录及更新/报错入口;只保留源文字,不执行链接、不下载、不证明模型安装或适配。')],flow=flow,flow_evidence=list(range(len(refs))),zero_saved_nodes=missing,boundaries=boundary,steps=[overview,'操作1:核宿主图像/MASK、13边界与内部链,保持停用;不上传素材或执行子图。','操作2:分别核对宿主/内部模型路径、VAE名、11控件覆盖和fixed控制;不按标题猜原图比较。','操作3:准确版本缺失的SeedVR2类与UE/素材/模型/设备仍未知;后续实机验证前不能作为可靠转换或生成入口。'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E501 Line too long (188 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:9:101
|
8 | …
9 | …fyUI_frontend', 'v1.45.20'), 'rgthree': ('rgthree/rgthree-comfy', '27b4f4cdcf3b127c29d5d8135ac1536ecbd4c383')}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 | …s_post_processing.py','comfy_extras/nodes_seedvr2.py','comfy_extras/nodes_seed.py','comfy_extras/nodes_mask.py','comfy_api/latest/_io…
|
E501 Line too long (1008 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:10:101
|
8 | …
9 | …v1.45.20'), 'rgthree': ('rgthree/rgthree-comfy', '27b4f4cdcf3b127c29d5d8135ac1536ecbd4c383')}
10 | ….py','comfy_extras/nodes_seedvr2.py','comfy_extras…ode_changer.ts','py/constants.py','LICENSE']}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 | …
12 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:24:42
|
22 | raw=get(f'https://api.github.com/repos/{repo}/git/ref/tags/{version}')
23 | (REF/f'{key}-tag.json').write_bytes(raw)
24 | obj=json.loads(raw)['object']; assert obj['type']=='commit'; commit=obj['sha']
| ^
25 | else: commit=version
26 | 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-document-evidence/fetch_sources.py:24:72
|
22 | raw=get(f'https://api.github.com/repos/{repo}/git/ref/tags/{version}')
23 | (REF/f'{key}-tag.json').write_bytes(raw)
24 | obj=json.loads(raw)['object']; assert obj['type']=='commit'; commit=obj['sha']
| ^
25 | else: commit=version
26 | raw=get(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1')
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:25:13
|
23 | (REF/f'{key}-tag.json').write_bytes(raw)
24 | obj=json.loads(raw)['object']; assert obj['type']=='commit'; commit=obj['sha']
25 | else: commit=version
| ^
26 | raw=get(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1')
27 | tree=json.loads(raw); assert not tree['truncated'] and tree['sha']==commit
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:27:29
|
25 | else: commit=version
26 | raw=get(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1')
27 | tree=json.loads(raw); assert not tree['truncated'] and tree['sha']==commit
| ^
28 | (REF/f'{key}-tree.json').write_bytes(raw)
29 | paths={e['path']:e for e in tree['tree'] if e['type']=='blob'}
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:33:23
|
31 | selected=[p for p in FILES[key] if p in paths]
32 | # Include registration/seed matching text only, not weights or media.
33 | if key=='core': selected += [p for p in paths if 'seedvr' in p.lower() and p.endswith('.py') and p not in selected]
| ^
34 | if key=='rgthree': print('comparer files',[p for p in paths if 'comparer' in p.lower()],flush=True)
35 | def fetch(p):
|
E501 Line too long (123 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:33:101
|
31 | selected=[p for p in FILES[key] if p in paths]
32 | # Include registration/seed matching text only, not weights or media.
33 | if key=='core': selected += [p for p in paths if 'seedvr' in p.lower() and p.endswith('.py') and p not in selected]
| ^^^^^^^^^^^^^^^^^^^^^^^
34 | if key=='rgthree': print('comparer files',[p for p in paths if 'comparer' in p.lower()],flush=True)
35 | def fetch(p):
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:34:26
|
32 | # Include registration/seed matching text only, not weights or media.
33 | if key=='core': selected += [p for p in paths if 'seedvr' in p.lower() and p.endswith('.py') and p not in selected]
34 | if key=='rgthree': print('comparer files',[p for p in paths if 'comparer' in p.lower()],flush=True)
| ^
35 | def fetch(p):
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
|
E501 Line too long (107 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:34:101
|
32 | # Include registration/seed matching text only, not weights or media.
33 | if key=='core': selected += [p for p in paths if 'seedvr' in p.lower() and p.endswith('.py') and p not in selected]
34 | if key=='rgthree': print('comparer files',[p for p in paths if 'comparer' in p.lower()],flush=True)
| ^^^^^^^
35 | def fetch(p):
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:36:73
|
34 | if key=='rgthree': print('comparer files',[p for p in paths if 'comparer' in p.lower()],flush=True)
35 | def fetch(p):
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
| ^
37 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest(); assert blob==paths[p]['sha']
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:37:81
|
35 | def fetch(p):
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
37 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest(); assert blob==paths[p]['sha']
| ^
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
39 | return dict(id=key,file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
|
E501 Line too long (110 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:37:101
|
35 | def fetch(p):
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
37 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest(); assert blob==paths[p]['sha']
| ^^^^^^^^^^
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
39 | return dict(id=key,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-document-evidence/fetch_sources.py:38:46
|
36 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{p}'; b=get(url)
37 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest(); assert blob==paths[p]['sha']
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
| ^
39 | return dict(id=key,file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
40 | with ThreadPoolExecutor(max_workers=4) as pool: entries.extend(pool.map(fetch,selected))
|
E501 Line too long (132 > 100)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:39:101
|
37 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest(); assert blob==paths[p]['sha']
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
39 | return dict(id=key,file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 | with ThreadPoolExecutor(max_workers=4) as pool: entries.extend(pool.map(fetch,selected))
41 | (REF/'sources.json').write_text(json.dumps({'sources':entries},ensure_ascii=False,indent=2)+'\n')
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:40:55
|
38 | name=key+'__'+p.replace('/','__'); (REF/name).write_bytes(b)
39 | return dict(id=key,file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
40 | with ThreadPoolExecutor(max_workers=4) as pool: entries.extend(pool.map(fetch,selected))
| ^
41 | (REF/'sources.json').write_text(json.dumps({'sources':entries},ensure_ascii=False,indent=2)+'\n')
42 | print('static texts',len(entries))
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/fetch_sources.py:43:24
|
41 | (REF/'sources.json').write_text(json.dumps({'sources':entries},ensure_ascii=False,indent=2)+'\n')
42 | print('static texts',len(entries))
43 | if __name__=='__main__': main()
| ^
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:2:1
|
1 | """Verify exact tags, trees, blobs, citation lines and bounded absence claims offline."""
2 | / import hashlib
3 | | import json
4 | | from build_definition import OUT, REF, build
| |____________________________________________^
5 |
6 | def main():
|
help: Organize imports
|
3 | import json
4 +
5 | from build_definition import OUT, REF, build
6 |
7 +
8 | def main():
|
E501 Line too long (164 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:13:101
|
11 | …
12 | …
13 | …raw).hexdigest()==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 | …
15 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:16:61
|
14 | tags={}
15 | for key in ['core','frontend']:
16 | tag=json.loads((REF/(key+'-tag.json')).read_bytes()); tree=json.loads((REF/(key+'-tree.json')).read_bytes())
| ^
17 | assert tag['object']==dict(sha=tree['sha'],type='commit',url=tag['object']['url'])
18 | tags[key]=tree['sha']
|
E501 Line too long (116 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:16:101
|
14 | tags={}
15 | for key in ['core','frontend']:
16 | tag=json.loads((REF/(key+'-tag.json')).read_bytes()); tree=json.loads((REF/(key+'-tree.json')).read_bytes())
| ^^^^^^^^^^^^^^^^
17 | assert tag['object']==dict(sha=tree['sha'],type='commit',url=tag['object']['url'])
18 | tags[key]=tree['sha']
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:21:47
|
19 | block=build()
20 | for e in block['sources']:
21 | raw=(OUT/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']; assert 1<=e['lines'][0]<=e['lines…
| ^
22 | trees=json.loads((REF/'core-tree.json').read_bytes())['tree']
23 | assert not [e for e in trees if 'seedvr' in e['path'].lower()]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:21:100
|
19 | block=build()
20 | for e in block['sources']:
21 | raw=(OUT/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']; assert 1<=e['lines'][0]<=e['lines…
| ^
22 | trees=json.loads((REF/'core-tree.json').read_bytes())['tree']
23 | assert not [e for e in trees if 'seedvr' in e['path'].lower()]
|
E501 Line too long (171 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:21:101
|
19 | …
20 | …
21 | …(raw).hexdigest()==e['sha256']; assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | …
23 | …
|
E501 Line too long (105 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:26:101
|
24 | investigation=['nodes.py','comfy_extras/nodes_seed.py','comfy_extras/nodes_compositing.py','comfy_extras/nodes_post_processing.py'…
25 | for p in investigation:
26 | text=(REF/next(e['local_file'] for e in entries if e['id']=='core' and e['file']==p)).read_text()
| ^^^^^
27 | assert all(name not in text for name in ['SeedVR2Preprocess','SeedVR2Conditioning','SeedVR2PostProcessing'])
28 | report=dict(all_pass=True,git_texts=len(entries),citations=len(block['sources']),tags=tags,rgthree='27b4f4cdcf3b127c29d5d8135ac153…
|
E501 Line too long (116 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:27:101
|
25 | for p in investigation:
26 | text=(REF/next(e['local_file'] for e in entries if e['id']=='core' and e['file']==p)).read_text()
27 | assert all(name not in text for name in ['SeedVR2Preprocess','SeedVR2Conditioning','SeedVR2PostProcessing'])
| ^^^^^^^^^^^^^^^^
28 | report=dict(all_pass=True,git_texts=len(entries),citations=len(block['sources']),tags=tags,rgthree='27b4f4cdcf3b127c29d5d8135ac153…
29 | (OUT/'source-check.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
|
E501 Line too long (342 > 100)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:28:101
|
26 | …ead_text()
27 | …dVR2PostProcessing'])
28 | …rgthree='27b4f4cdcf3b127c29d5d8135ac1536ecbd4c383',local_file_base='docs/hel-892/seedvr2-document-evidence',investigation=investigation,seedvr_classes='not established in bounded investigation; no global absence claim',source_links_executed=False)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 | …
30 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-document-evidence/verify_sources.py:31:24
|
29 | (OUT/'source-check.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
30 | print('PASS exact sources',len(entries),'citations',len(block['sources']))
31 | if __name__=='__main__': main()
| ^
Found 118 errors.
[*] 3 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).
Traceback (most recent call last):
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-d1175e415253/workdir/aigc-home/docs/hel-892/seedvr2-document-evidence/check_code.py", line 40, in <module>
main()
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-d1175e415253/workdir/aigc-home/docs/hel-892/seedvr2-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_fixed_document.py', 'e2e/run-seedvr2-document.py', 'docs/hel-892/seedvr2-document-evidence/build_definition.py', 'docs/hel-892/seedvr2-document-evidence/check_code.py', 'docs/hel-892/seedvr2-document-evidence/fetch_sources.py', 'docs/hel-892/seedvr2-document-evidence/rebuild.py', 'docs/hel-892/seedvr2-document-evidence/recompute.py', 'docs/hel-892/seedvr2-document-evidence/render_report.py', 'docs/hel-892/seedvr2-document-evidence/repeat.py', 'docs/hel-892/seedvr2-document-evidence/request_counts.py', 'docs/hel-892/seedvr2-document-evidence/verify_sources.py']' returned non-zero exit status 1.