1157 lines
66 KiB
Plaintext
1157 lines
66 KiB
Plaintext
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:43:98
|
||
|
|
||
41 | assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||
42 | assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||
43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||
| ^
|
||
44 | for i in f['evidence']:
|
||
45 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||
|
|
||
|
||
E501 Line too long (112 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:43:101
|
||
|
|
||
41 | assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||
42 | assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||
43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||
| ^^^^^^^^^^^^
|
||
44 | for i in f['evidence']:
|
||
45 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:45:30
|
||
|
|
||
43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||
44 | for i in f['evidence']:
|
||
45 | e=BLOCK['sources'][i];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())
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:54:23
|
||
|
|
||
52 | def test_each_position_or_description_forgery_refused(f,variant):
|
||
53 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
| ^
|
||
55 | else:
|
||
56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged'
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:54:101
|
||
|
|
||
52 | def test_each_position_or_description_forgery_refused(f,variant):
|
||
53 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
| ^^^^^
|
||
55 | else:
|
||
56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged'
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:56:50
|
||
|
|
||
54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
55 | else:
|
||
56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged'
|
||
| ^
|
||
57 | refuse(s,r)
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:64:23
|
||
|
|
||
62 | def test_each_node_state_and_identity_is_bound(i,variant):
|
||
63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
64 | if variant=='mode':s['nodes'][i]['mode']=2
|
||
| ^
|
||
65 | else:s['nodes'][i]['properties']['ver']='forged'
|
||
66 | refuse(s,r)
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:65:9
|
||
|
|
||
63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
64 | if variant=='mode':s['nodes'][i]['mode']=2
|
||
65 | else:s['nodes'][i]['properties']['ver']='forged'
|
||
| ^
|
||
66 | refuse(s,r)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:73:41
|
||
|
|
||
71 | def test_all_physical_endpoints_bound(i,variant):
|
||
72 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']}
|
||
| ^
|
||
74 | if variant=='record':s['links'][i][3]=99999
|
||
75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:74:25
|
||
|
|
||
72 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']}
|
||
74 | if variant=='record':s['links'][i][3]=99999
|
||
| ^
|
||
75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999
|
||
76 | else:ns[src]['outputs'][slot]['links']=[]
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:75:26
|
||
|
|
||
73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']}
|
||
74 | if variant=='record':s['links'][i][3]=99999
|
||
75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999
|
||
| ^
|
||
76 | else:ns[src]['outputs'][slot]['links']=[]
|
||
77 | refuse(s,r)
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:76:9
|
||
|
|
||
74 | if variant=='record':s['links'][i][3]=99999
|
||
75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999
|
||
76 | else:ns[src]['outputs'][slot]['links']=[]
|
||
| ^
|
||
77 | refuse(s,r)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:82:52
|
||
|
|
||
80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o…
|
||
81 | def test_special_boundaries_cannot_be_retrusted(variant):
|
||
82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document']
|
||
| ^
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:82:87
|
||
|
|
||
80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o…
|
||
81 | def test_special_boundaries_cannot_be_retrusted(variant):
|
||
82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document']
|
||
| ^
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
|
|
||
|
||
E501 Line too long (116 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:82:101
|
||
|
|
||
80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o…
|
||
81 | def test_special_boundaries_cannot_be_retrusted(variant):
|
||
82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document']
|
||
| ^^^^^^^^^^^^^^^^
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:83:24
|
||
|
|
||
81 | def test_special_boundaries_cannot_be_retrusted(variant):
|
||
82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document']
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
| ^
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
85 | elif variant=='mask':ns[2]['outputs'].pop()
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:84:29
|
||
|
|
||
82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document']
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
| ^
|
||
85 | elif variant=='mask':ns[2]['outputs'].pop()
|
||
86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:85:25
|
||
|
|
||
83 | if variant=='named':ns[2]['widgets_values_named']={'width':480}
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
85 | elif variant=='mask':ns[2]['outputs'].pop()
|
||
| ^
|
||
86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8'
|
||
87 | elif variant=='empty_preview':ns[3]['widgets_values']=None
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:86:23
|
||
|
|
||
84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20'
|
||
85 | elif variant=='mask':ns[2]['outputs'].pop()
|
||
86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8'
|
||
| ^
|
||
87 | elif variant=='empty_preview':ns[3]['widgets_values']=None
|
||
88 | elif variant in ['missing','empty']:
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:87:34
|
||
|
|
||
85 | elif variant=='mask':ns[2]['outputs'].pop()
|
||
86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8'
|
||
87 | elif variant=='empty_preview':ns[3]['widgets_values']=None
|
||
| ^
|
||
88 | elif variant in ['missing','empty']:
|
||
89 | r['fixed_version_document']={} if variant=='empty' else None
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:90:56
|
||
|
|
||
88 | elif variant in ['missing','empty']:
|
||
89 | r['fixed_version_document']={} if variant=='empty' else None
|
||
90 | assert not doc(s,r)['fixed_version']['matched'];return
|
||
| ^
|
||
91 | elif variant=='path':b['source_path']='wrong'
|
||
92 | elif variant=='source_sha':r['source_sha']='wrong'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:91:25
|
||
|
|
||
89 | r['fixed_version_document']={} if variant=='empty' else None
|
||
90 | assert not doc(s,r)['fixed_version']['matched'];return
|
||
91 | elif variant=='path':b['source_path']='wrong'
|
||
| ^
|
||
92 | elif variant=='source_sha':r['source_sha']='wrong'
|
||
93 | elif variant=='citation':b['sources'][0]['sha256']='wrong'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:92:31
|
||
|
|
||
90 | assert not doc(s,r)['fixed_version']['matched'];return
|
||
91 | elif variant=='path':b['source_path']='wrong'
|
||
92 | elif variant=='source_sha':r['source_sha']='wrong'
|
||
| ^
|
||
93 | elif variant=='citation':b['sources'][0]['sha256']='wrong'
|
||
94 | else:b['user_overview']='wrong'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:93:29
|
||
|
|
||
91 | elif variant=='path':b['source_path']='wrong'
|
||
92 | elif variant=='source_sha':r['source_sha']='wrong'
|
||
93 | elif variant=='citation':b['sources'][0]['sha256']='wrong'
|
||
| ^
|
||
94 | else:b['user_overview']='wrong'
|
||
95 | refuse(s,r)
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:94:9
|
||
|
|
||
92 | elif variant=='source_sha':r['source_sha']='wrong'
|
||
93 | elif variant=='citation':b['sources'][0]['sha256']='wrong'
|
||
94 | else:b['user_overview']='wrong'
|
||
| ^
|
||
95 | refuse(s,r)
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:101:101
|
||
|
|
||
99 | assert doc()['fixed_version']['matched']
|
||
100 | assert len(SOURCE['nodes'])==17 and len(SOURCE['links'])==20 and 'definitions' not in SOURCE
|
||
101 | expected=[f'/nodes/{i}/widgets_values/{j}' for i,n in enumerate(SOURCE['nodes']) for j in range(len(n['widgets_values']))]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
102 | assert expected==[f['pointer'] for f in BLOCK['fields']] and len(expected)==35
|
||
103 | ns={n['id']:n for n in SOURCE['nodes']}
|
||
|
|
||
|
||
E501 Line too long (216 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:108:101
|
||
|
|
||
106 | …
|
||
107 | …
|
||
108 | … [11,12]]==[(11,2,'width'),(12,2,'height'),(12,4,'height'),(12,5,'scale_by_length'),(12,7,'scale_to_length'),(11,4,'width')]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | …
|
||
110 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:117:53
|
||
|
|
||
115 | def test_precise_static_branch_conditions_and_interface_conflict_without_execution():
|
||
116 | ref=OUT.parent/'resize-compare-reference'
|
||
117 | kj=(ref/'kj__nodes__image_nodes.py').read_text();tree=ast.parse(kj)
|
||
| ^
|
||
118 | node=next(x for x in tree.body if isinstance(x,ast.ClassDef) and x.name=='ImageResizeKJv2')
|
||
119 | return_types=next(x.value for x in node.body if isinstance(x,ast.Assign) and any(isinstance(t,ast.Name) and t.id=='RETURN_TYPES' …
|
||
|
|
||
|
||
E501 Line too long (153 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:119:101
|
||
|
|
||
117 | ….parse(kj)
|
||
118 | …ef) and x.name=='ImageResizeKJv2')
|
||
119 | …e(x,ast.Assign) and any(isinstance(t,ast.Name) and t.id=='RETURN_TYPES' for t in x.targets))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
120 | …T')
|
||
121 | …tionDef) and x.name=='resize')
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:126:101
|
||
|
|
||
124 | restore=(ref/'layer__py__image_scale_restore_v2.py').read_text()
|
||
125 | assert 'if original_size is not None:' in restore and "if scale_by == 'longest':" in restore
|
||
126 | assert 'target_width = int(orig_width * scale)' in restore and "if scale_by == 'by_scale':" not in restore
|
||
| ^^^^^^^^^^
|
||
127 | aspect=(ref/'layer__py__image_scale_by_aspect_ratio_v2.py').read_text()
|
||
128 | assert "elif scale_to_side == 'total_pixel(kilo pixel)':" in aspect
|
||
|
|
||
|
||
E501 Line too long (106 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:135:100
|
||
|
|
||
133 | assert fields['5','scale']['json_type']=='int' and fields['5','scale']['type']=='FLOAT'
|
||
134 | assert fields['7','round_to_multiple']['value']=='8'
|
||
135 | assert all('不' in fields[n,k]['effect'] for n,k in [('5','scale_by_length'),('7','scale_to_length')])
|
||
| ^^^^^^
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:141:42
|
||
|
|
||
139 | p='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
||
140 | old=json.loads(subprocess.check_output(['git','show','ce9502a:'+p],cwd=REPO))
|
||
141 | now=json.loads((REPO/p).read_bytes());now[PATH].pop('fixed_version_document')
|
||
| ^
|
||
142 | assert now==old and len(DEFINITIONS)==34
|
||
143 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> calliope-backend/tests/test_resize_compare_fixed_document.py:144:101
|
||
|
|
||
142 | assert now==old and len(DEFINITIONS)==34
|
||
143 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||
144 | assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
|
||
E501 Line too long (120 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:11:72
|
||
|
|
||
9 | OUT = Path(__file__).resolve().parent
|
||
10 | REF = OUT.parent / 'resize-compare-reference'
|
||
11 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json']
|
||
| ^^^^^^^^^^^^^^^^^^^^
|
||
|
||
E501 Line too long (130 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:26:101
|
||
|
|
||
24 | def ref(key, file, first, last, claim):
|
||
25 | e = next(e for e in entries if e['id'] == key and e['file'] == file)
|
||
26 | refs.append({**e, 'local_file': '../resize-compare-reference/' + e['local_file'], 'lines': [first, last], 'claim': claim})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
27 | return len(refs)-1
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:29:91
|
||
|
|
||
27 | return len(refs)-1
|
||
28 |
|
||
29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得')
|
||
| ^^^^^^^^^^^^^^^^
|
||
30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用')
|
||
31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符')
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:30:90
|
||
|
|
||
29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得')
|
||
30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用')
|
||
| ^^^^^^^^^^^^^^^^^^
|
||
31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符')
|
||
32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册')
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:31:89
|
||
|
|
||
29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得')
|
||
30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用')
|
||
31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符')
|
||
| ^^^^^^^^^^^^^^^^^
|
||
32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册')
|
||
33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本')
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:33:86
|
||
|
|
||
31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符')
|
||
32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册')
|
||
33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本')
|
||
| ^^^^
|
||
34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体')
|
||
35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留')
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:34:90
|
||
|
|
||
32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册')
|
||
33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本')
|
||
34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体')
|
||
| ^^^^^^^^^^
|
||
35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留')
|
||
36 | ref('kj','nodes/image_nodes.py',21,21,'KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知')
|
||
|
|
||
|
||
E501 Line too long (112 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:35:86
|
||
|
|
||
33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本')
|
||
34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体')
|
||
35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留')
|
||
| ^^^^^^^^^^^^
|
||
36 | ref('kj','nodes/image_nodes.py',21,21,'KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知')
|
||
37 | ref('kj','__init__.py',75,85,'准确KJ ImageResizeKJv2注册')
|
||
|
|
||
|
||
E501 Line too long (144 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:38:98
|
||
|
|
||
36 | …TION来自运行宿主nodes,宿主版本未知')
|
||
37 | …注册')
|
||
38 | …,7,127,'准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
39 | …_v2.py',8,186,'准确AspectRatio schema、original/custom、None长度不采用、对齐及返回')
|
||
40 | …ox居中填色、crop居中裁剪、fill直接伸缩')
|
||
|
|
||
|
||
E501 Line too long (140 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:39:98
|
||
|
|
||
37 | …v2注册')
|
||
38 | …y',7,127,'准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回')
|
||
39 | …io_v2.py',8,186,'准确AspectRatio schema、original/custom、None长度不采用、对齐及返回')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
40 | …rbox居中填色、crop居中裁剪、fill直接伸缩')
|
||
41 | …,'向上取整到倍数;不同于KJ向下取整')
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:43:91
|
||
|
|
||
41 | rounding = ref('layer','py/imagefunc.py',1967,1973,'向上取整到倍数;不同于KJ向下取整')
|
||
42 | ref('layer','__init__.py',29,48,'LayerStyle包逐模块合并注册,未执行')
|
||
43 | impact = ref('impact','modules/impact/logics.py',239,255,'准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
44 | ref('impact','__init__.py',48,48,'ImpactPack logics导入')
|
||
45 | ref('impact','__init__.py',259,259,'ImpactInt注册')
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:46:90
|
||
|
|
||
44 | ref('impact','__init__.py',48,48,'ImpactPack logics导入')
|
||
45 | ref('impact','__init__.py',259,259,'ImpactInt注册')
|
||
46 | display = ref('rgthree','py/display_any.py',6,50,'准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||
47 | displayjs = ref('rgthree','web/comfyui/display_any.js',1,35,'只读output控件;serializeValue返回空字符串/onExecuted更新')
|
||
48 | ref('rgthree','py/constants.py',2,5,'Display Any (rgthree)准确命名')
|
||
|
|
||
|
||
E501 Line too long (124 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:47:94
|
||
|
|
||
45 | ref('impact','__init__.py',259,259,'ImpactInt注册')
|
||
46 | display = ref('rgthree','py/display_any.py',6,50,'准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数')
|
||
47 | displayjs = ref('rgthree','web/comfyui/display_any.js',1,35,'只读output控件;serializeValue返回空字符串/onExecuted更新')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
48 | ref('rgthree','py/constants.py',2,5,'Display Any (rgthree)准确命名')
|
||
49 | ref('rgthree','__init__.py',47,54,'DisplayAny准确注册')
|
||
|
|
||
|
||
E501 Line too long (144 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:50:96
|
||
|
|
||
48 | …three)准确命名')
|
||
49 | … ')
|
||
50 | …Node.ts',917,925,'仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
51 | …,972,984,'仅参考假设位置序列化;不证明目标实际恢复')
|
||
52 | …mage.ts',10,40,'仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数')
|
||
|
|
||
|
||
E501 Line too long (137 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:52:93
|
||
|
|
||
50 | …raphNode.ts',917,925,'仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本')
|
||
51 | ….ts',972,984,'仅参考假设位置序列化;不证明目标实际恢复')
|
||
52 | …oadImage.ts',10,40,'仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
53 | …'仅参考假设IMAGEUPLOAD控件构造入口')
|
||
54 | …e['file'].endswith('useImageUploadWidget.ts'))
|
||
|
|
||
|
||
E501 Line too long (186 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:55:101
|
||
|
|
||
53 | … 构造入口')
|
||
54 | …ageUploadWidget.ts'))
|
||
55 | …s if e['file']==uploadfile)).read_text().splitlines()),'仅参考假设上传控件行为;源保存image原样保留,未上传')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
56 | …
|
||
57 | …])
|
||
|
|
||
|
||
E501 Line too long (200 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:68:77
|
||
|
|
||
66 | …
|
||
67 | … ','nearest-exact/bilinear/area/bicubic/lanczos','核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。',sc…
|
||
68 | … 算;两轴0直接返回','缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。',scale),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
69 | … 推算','缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。',scale),
|
||
70 | …ter','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale),
|
||
|
|
||
|
||
E501 Line too long (167 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:69:80
|
||
|
|
||
67 | …arest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos','核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超…
|
||
68 | …tep1;0按另一轴推算;两轴0直接返回','缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。',scale),
|
||
69 | … step1;0按另一轴推算','缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。',scale),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
70 | … ','disabled/center','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale),
|
||
71 | …
|
||
|
|
||
|
||
E501 Line too long (195 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:72:78
|
||
|
|
||
70 | …enter','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale),
|
||
71 | …
|
||
72 | …,step1;资源上限另受下游约束','保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。',impact)],
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
73 | …ze,step1;不是内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当…
|
||
74 | …
|
||
|
|
||
|
||
E501 Line too long (246 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:73:78
|
||
|
|
||
71 | …
|
||
72 | … 限另受下游约束','保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。',impact)],
|
||
73 | … 内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。',impact)],
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
74 | …
|
||
75 | …0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj),
|
||
|
|
||
|
||
E501 Line too long (193 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:75:85
|
||
|
|
||
73 | …size,step1;不是内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在…
|
||
74 | …
|
||
75 | …;宿主未知,core0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
76 | …1','缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。',kj),
|
||
77 | …枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载…
|
||
|
|
||
|
||
E501 Line too long (154 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:76:88
|
||
|
|
||
74 | …
|
||
75 | …X_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj),
|
||
76 | …AX_RESOLUTION,step1','缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。',kj),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
77 | … 项nearest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upscale的…
|
||
78 | … 枚举类型不一致);不改写为stretch','枚举','stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开','当前stretch直接按两轴伸缩…
|
||
|
|
||
|
||
E501 Line too long (144 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:79:85
|
||
|
|
||
77 | … 首选项nearest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upsca…
|
||
78 | …se(与枚举类型不一致);不改写为stretch','枚举','stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开','当前stretch直接按两…
|
||
79 | …,'STRING;仅pad/pad_edge路径调用填边','保存黑色0, 0, 0,当前stretch不采用该颜色。',kj),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
80 | …,'center/top/bottom/left/right;仅crop分支','保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。',kj),
|
||
81 | …'INT 0~512,step1;>1向下取整,0/1不对齐','保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。',kj),
|
||
|
|
||
|
||
E501 Line too long (185 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:81:82
|
||
|
|
||
79 | …_edge路径调用填边','保存黑色0, 0, 0,当前stretch不采用该颜色。',kj),
|
||
80 | …/left/right;仅crop分支','保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。',kj),
|
||
81 | …1向下取整,0/1不对齐','保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。',kj),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
82 | … 枚举','cpu/gpu;gpu+lanczos主动抛错','保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。',kj),
|
||
83 | …
|
||
|
|
||
|
||
E501 Line too long (193 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:85:86
|
||
|
|
||
83 | …
|
||
84 | …
|
||
85 | …N为int1','当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
86 | …/bicubic/hamming/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore),
|
||
87 | …_scale/longest/shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使…
|
||
|
|
||
|
||
E501 Line too long (180 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:86:84
|
||
|
|
||
84 | …
|
||
85 | … 源JSON为int1','当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore),
|
||
86 | …anczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
87 | … ','by_scale/longest/shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空…
|
||
88 | …l模式为千像素','INT 4~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称…
|
||
|
|
||
|
||
E501 Line too long (248 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:87:83
|
||
|
|
||
85 | …y_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore),
|
||
86 | …g/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore),
|
||
87 | …shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。',restore),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
88 | …~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。',restore),
|
||
89 | …
|
||
|
|
||
|
||
E501 Line too long (230 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:88:83
|
||
|
|
||
86 | …g/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore),
|
||
87 | …shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未…
|
||
88 | …~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。',restore),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
89 | …
|
||
90 | …
|
||
|
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:92:85
|
||
|
|
||
90 | …
|
||
91 | … 首项original','枚举','original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16','保存original从输入宽高取比例;不是custom的1:1。',aspect),
|
||
92 | … ','INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值计算目标比例。',aspect),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
93 | … ','INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect),
|
||
94 | …erbox','枚举','letterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit),
|
||
|
|
||
|
||
E501 Line too long (158 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:93:85
|
||
|
|
||
91 | … original','枚举','original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16','保存original从输入宽高取比例;不是custom的1:1。',aspect),
|
||
92 | …INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值计算目标比例。',aspect),
|
||
93 | …'INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
94 | …x','枚举','letterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit),
|
||
95 | …','枚举','lanczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect),
|
||
|
|
||
|
||
E501 Line too long (183 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:95:84
|
||
|
|
||
93 | … step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect),
|
||
94 | …etterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit),
|
||
95 | …nczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
96 | …','像素倍数枚举','8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',r…
|
||
97 | …','枚举','None/longest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随…
|
||
|
|
||
|
||
E501 Line too long (218 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:96:76
|
||
|
|
||
94 | …','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit),
|
||
95 | …ing/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect),
|
||
96 | …'8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
97 | …gest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及…
|
||
98 | … 4~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect),
|
||
|
|
||
|
||
E501 Line too long (247 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:97:80
|
||
|
|
||
95 | …g/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect),
|
||
96 | …/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding),
|
||
97 | …st/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。',aspect),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
98 | …~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect),
|
||
99 | …颜色创建背景','保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。',fit),
|
||
|
|
||
|
||
E501 Line too long (217 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:98:83
|
||
|
|
||
96 | …'8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding),
|
||
97 | …gest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐…
|
||
98 | … 4~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
99 | …IL颜色创建背景','保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。',fit),
|
||
100 | …
|
||
|
|
||
|
||
E501 Line too long (259 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:108:101
|
||
|
|
||
106 | …
|
||
107 | …
|
||
108 | …gets_values',effect='源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。',evidence=[preview]))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | …
|
||
110 | …
|
||
|
|
||
|
||
E501 Line too long (310 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:113:87
|
||
|
|
||
111 | …
|
||
112 | …
|
||
113 | … 出框;没有后端output输入','显示文本','只读前端STRING,序列化返回空字符串;不是实际宽高','节点'+str(n['id'])+'接'+src+'.'+dim+',当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。',displayjs)]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
114 | …
|
||
115 | …
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:117:101
|
||
|
|
||
115 | for k,(name,label,default,unit,limits,effect,ev) in enumerate(specs):
|
||
116 | ptr=f'/nodes/{i}/widgets_values/{k}'
|
||
117 | inp=next((j for j,x in enumerate(n['inputs']) if x.get('widget',{}).get('name')==name),None)
|
||
| ^^^^
|
||
118 | v=n['widgets_values'][k]
|
||
119 | field_type=n['inputs'][inp]['type'] if inp is not None else '前端STRING'
|
||
|
|
||
|
||
E501 Line too long (813 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:121:101
|
||
|
|
||
119 | …
|
||
120 | …
|
||
121 | …e,label=label,pointer=ptr,input_pointer=f'/nodes/{i}/inputs/{inp}' if inp is not None else ptr,value=v,json_type=type(v).__name__,type=field_type,role='frontend_control' if name in ['upload','output'] else 'linked_cache' if link is not None else 'scalar',schema_default=default,unit=unit,limits=limits,effect=effect,execution_note=f'节点{n["id"]}保存mode0;物理位置{ptr}。源无widgets_values_named,不制造具名保存值。'+(f'源输入边{link}覆盖该缓存;' if link is not None else '该控件无源输入边覆盖;')+'前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。',evidence=list(dict.fromkeys([ev,front]+([display] if name=='output' else [])+([util,maximum] if n['id'] in [2,4] else [])+([aspect] if n['id']==7 else [])))))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
122 | …
|
||
123 | … 节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。'
|
||
|
|
||
|
||
E501 Line too long (219 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:128:84
|
||
|
|
||
126 | …;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。',
|
||
127 | …t/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。',
|
||
128 | … 率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
129 | … 度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。',
|
||
130 | …rop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。',
|
||
|
|
||
|
||
E501 Line too long (190 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:134:86
|
||
|
|
||
132 | …显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。',
|
||
133 | … original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。',
|
||
134 | …s文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
135 | …与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVer…
|
||
136 | … 恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。',
|
||
|
|
||
|
||
E501 Line too long (120 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:143:90
|
||
|
|
||
141 | for key in ['impact','rgthree','frontend']:
|
||
142 | e=next(e for e in entries if e['id']==key)
|
||
143 | versions.append(key+'→'+e['commit']+(';Git绑定未知' if key!='frontend' else ';仅参考假设1.45.20,源前端未知'))
|
||
| ^^^^^^^^^^^^^^^^^^^^
|
||
144 | return dict(source_path=PATHS[index],source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),cano…
|
||
|
|
||
|
||
E501 Line too long (871 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:144:101
|
||
|
|
||
142 | …
|
||
143 | … 设1.45.20,源前端未知'))
|
||
144 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。',user_overview=overview,versions=versions,counts=dict(saved_fields=35,source_nodes=17,physical_edges=20,source_notes=0,history_objects=0,linked_saved_fields=6,frontend_only=7,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=refs,comments=[],flow=flow,flow_evidence=list(range(len(refs))),zero_saved_nodes=zero,boundaries=[],steps=[overview,'操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。','操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。','操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:11:49
|
||
|
|
||
10 | def main():
|
||
11 | j=json.loads((REF/'sources.json').read_bytes());j['sources']=[e for e in j['sources'] if e['id']!='frontend']
|
||
| ^
|
||
12 | old=json.loads((OLD/'sources.json').read_bytes())['sources']
|
||
13 | for e in old:
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:11:101
|
||
|
|
||
10 | def main():
|
||
11 | j=json.loads((REF/'sources.json').read_bytes());j['sources']=[e for e in j['sources'] if e['id']!='frontend']
|
||
| ^^^^^^^^^^
|
||
12 | old=json.loads((OLD/'sources.json').read_bytes())['sources']
|
||
13 | for e in old:
|
||
|
|
||
|
||
E501 Line too long (154 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:14:101
|
||
|
|
||
12 | …
|
||
13 | …
|
||
14 | …/src/LGraphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadImage.ts','LICENSE']:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
15 | …e/'+e['local_file'],'identity_binding':'reference hypothesis v1.45.20 only; source frontendVersion absent'})
|
||
16 | …mit=tree['sha']
|
||
|
|
||
|
||
E501 Line too long (169 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:15:101
|
||
|
|
||
13 | …
|
||
14 | …raphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadImage.ts','LICENSE']:
|
||
15 | …local_file'],'identity_binding':'reference hypothesis v1.45.20 only; source frontendVersion absent'})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
16 | …e['sha']
|
||
17 | …ImageUploadWidget.ts']:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:16:58
|
||
|
|
||
14 | if e['id']=='frontend' and e['file'] in ['src/lib/litegraph/src/LGraphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadI…
|
||
15 | j['sources'].append({**e,'local_file':'../seedvr2-reference/'+e['local_file'],'identity_binding':'reference hypothesis v1.45.20 onl…
|
||
16 | tree=json.loads((OLD/'frontend-tree.json').read_bytes());commit=tree['sha']
|
||
| ^
|
||
17 | for f in ['src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts']:
|
||
18 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:19:51
|
||
|
|
||
17 | for f in ['src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts']:
|
||
18 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}'
|
||
19 | with urllib.request.urlopen(url,timeout=30) as r: b=r.read()
|
||
| ^
|
||
20 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()
|
||
21 | assert blob==next(e['sha'] for e in tree['tree'] if e['path']==f)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:22:40
|
||
|
|
||
20 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()
|
||
21 | assert blob==next(e['sha'] for e in tree['tree'] if e['path']==f)
|
||
22 | name='frontend__'+f.replace('/','__');(REF/name).write_bytes(b)
|
||
| ^
|
||
23 | j['sources'].append(dict(id='frontend',file=f,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sh…
|
||
24 | (REF/'sources.json').write_text(json.dumps(j,ensure_ascii=False,indent=2)+'\n')
|
||
|
|
||
|
||
E501 Line too long (228 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:23:101
|
||
|
|
||
21 | …
|
||
22 | …
|
||
23 | …shlib.sha256(b).hexdigest(),git_blob_sha1=blob,identity_binding='reference hypothesis v1.45.20 only; source frontendVersion absent'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
24 | …
|
||
25 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:25:24
|
||
|
|
||
23 | j['sources'].append(dict(id='frontend',file=f,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sh…
|
||
24 | (REF/'sources.json').write_text(json.dumps(j,ensure_ascii=False,indent=2)+'\n')
|
||
25 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:16:67
|
||
|
|
||
14 | for key in ['impact','rgthree']:
|
||
15 | meta=json.loads((REF/f'{key}-registry.json').read_bytes())
|
||
16 | with urllib.request.urlopen(meta['downloadUrl'],timeout=40) as r: raw=r.read(15000001)
|
||
| ^
|
||
17 | assert len(raw)<15000000
|
||
18 | (REF/f'{key}-source.zip').write_bytes(raw)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:21:22
|
||
|
|
||
19 | sha=hashlib.sha256(raw).hexdigest()
|
||
20 | with zipfile.ZipFile(io.BytesIO(raw)) as z:
|
||
21 | names=z.namelist();(REF/f'{key}-members.json').write_text(json.dumps(names,indent=2)+'\n')
|
||
| ^
|
||
22 | wanted=(['__init__.py','modules/impact/logics.py','LICENSE.txt','LICENSE'] if key=='impact' else ['__init__.py','py/display_any.py'…
|
||
23 | for f in wanted:
|
||
|
|
||
|
||
E501 Line too long (207 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:22:101
|
||
|
|
||
20 | …
|
||
21 | …+'\n')
|
||
22 | …impact' else ['__init__.py','py/display_any.py','py/constants.py','web/comfyui/display_any.js','py/utils.py','LICENSE'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
23 | …
|
||
24 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:24:22
|
||
|
|
||
22 | wanted=(['__init__.py','modules/impact/logics.py','LICENSE.txt','LICENSE'] if key=='impact' else ['__init__.py','py/display_any.py'…
|
||
23 | for f in wanted:
|
||
24 | if f not in names: continue
|
||
| ^
|
||
25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b)
|
||
26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:25:16
|
||
|
|
||
23 | for f in wanted:
|
||
24 | if f not in names: continue
|
||
25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b)
|
||
| ^
|
||
26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',…
|
||
27 | print(key,'SHA256',sha,'selected',[e['file'] for e in entries if e['id']==key])
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:25:50
|
||
|
|
||
23 | for f in wanted:
|
||
24 | if f not in names: continue
|
||
25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b)
|
||
| ^
|
||
26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',…
|
||
27 | print(key,'SHA256',sha,'selected',[e['file'] for e in entries if e['id']==key])
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:30:24
|
||
|
|
||
28 | (REF/'sources.json').write_text(json.dumps(dict(sources=entries),ensure_ascii=False,indent=2)+'\n')
|
||
29 |
|
||
30 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
E501 Line too long (101 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:11:101
|
||
|
|
||
9 | SPECS = {
|
||
10 | 'load': ('Comfy-Org/ComfyUI', 'v0.3.50', ['nodes.py','folder_paths.py','LICENSE']),
|
||
11 | 'core': ('Comfy-Org/ComfyUI', 'v0.3.65', ['nodes.py','comfy/utils.py','folder_paths.py','LICENSE']),
|
||
| ^
|
||
12 | 'kj': ('kijai/ComfyUI-KJNodes','f7eb33abc80a2aded1b46dff0dd14d07856a7d50',['__init__.py','nodes/image_nodes.py','LICENSE']),
|
||
13 | 'layer': ('chflame163/ComfyUI_LayerStyle','89014d833d2ad0998d724090eff1456692692a1d',['__init__.py','py/image_scale_restore_v2.py','p…
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:12:101
|
||
|
|
||
10 | 'load': ('Comfy-Org/ComfyUI', 'v0.3.50', ['nodes.py','folder_paths.py','LICENSE']),
|
||
11 | 'core': ('Comfy-Org/ComfyUI', 'v0.3.65', ['nodes.py','comfy/utils.py','folder_paths.py','LICENSE']),
|
||
12 | 'kj': ('kijai/ComfyUI-KJNodes','f7eb33abc80a2aded1b46dff0dd14d07856a7d50',['__init__.py','nodes/image_nodes.py','LICENSE']),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
13 | 'layer': ('chflame163/ComfyUI_LayerStyle','89014d833d2ad0998d724090eff1456692692a1d',['__init__.py','py/image_scale_restore_v2.py','p…
|
||
14 | }
|
||
|
|
||
|
||
E501 Line too long (201 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:13:101
|
||
|
|
||
11 | ….py','LICENSE']),
|
||
12 | …_.py','nodes/image_nodes.py','LICENSE']),
|
||
13 | …',['__init__.py','py/image_scale_restore_v2.py','py/image_scale_by_aspect_ratio_v2.py','py/imagefunc.py','LICENSE']),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
14 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:29:21
|
||
|
|
||
27 | obj=json.loads(b)['object']
|
||
28 | if obj['type']=='tag':
|
||
29 | b=get(obj['url']);(REF/f'{key}-tag-object.json').write_bytes(b);obj=json.loads(b)['object']
|
||
| ^
|
||
30 | rev=obj['sha']
|
||
31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1')
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:29:67
|
||
|
|
||
27 | obj=json.loads(b)['object']
|
||
28 | if obj['type']=='tag':
|
||
29 | b=get(obj['url']);(REF/f'{key}-tag-object.json').write_bytes(b);obj=json.loads(b)['object']
|
||
| ^
|
||
30 | rev=obj['sha']
|
||
31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1')
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:33:17
|
||
|
|
||
31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1')
|
||
32 | (REF/f'{key}-tree.json').write_bytes(b)
|
||
33 | t=json.loads(b);assert t['sha']==rev and not t['truncated']
|
||
| ^
|
||
34 | entries=[]
|
||
35 | for file in files:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:38:13
|
||
|
|
||
36 | blob=next(x['sha'] for x in t['tree'] if x['path']==file)
|
||
37 | url=f'https://raw.githubusercontent.com/{repo}/{rev}/{file}'
|
||
38 | b=get(url); assert hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()==blob
|
||
| ^
|
||
39 | name=key+'__'+file.replace('/','__');(REF/name).write_bytes(b)
|
||
40 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=rev,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob))
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:39:39
|
||
|
|
||
37 | url=f'https://raw.githubusercontent.com/{repo}/{rev}/{file}'
|
||
38 | b=get(url); assert hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()==blob
|
||
39 | name=key+'__'+file.replace('/','__');(REF/name).write_bytes(b)
|
||
| ^
|
||
40 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=rev,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob))
|
||
41 | return dict(id=key,repo=repo,commit=rev),entries
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:44:48
|
||
|
|
||
43 | if __name__=='__main__':
|
||
44 | with ThreadPoolExecutor(max_workers=4) as pool: rows=list(pool.map(one,SPECS.items()))
|
||
| ^
|
||
45 | (REF/'identities.json').write_text(json.dumps([r[0] for r in rows],indent=2)+'\n')
|
||
46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n')
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:46:101
|
||
|
|
||
44 | with ThreadPoolExecutor(max_workers=4) as pool: rows=list(pool.map(one,SPECS.items()))
|
||
45 | (REF/'identities.json').write_text(json.dumps([r[0] for r in rows],indent=2)+'\n')
|
||
46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n')
|
||
| ^^^^^
|
||
47 | # Accurate registry release metadata; package Git bindings are not inferred.
|
||
48 | for key,node,version in [('impact','comfyui-impact-pack','8.25.1'),('rgthree','rgthree-comfy','1.0.2510052058')]:
|
||
|
|
||
|
||
E501 Line too long (114 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:48:101
|
||
|
|
||
46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n')
|
||
47 | # Accurate registry release metadata; package Git bindings are not inferred.
|
||
48 | for key,node,version in [('impact','comfyui-impact-pack','8.25.1'),('rgthree','rgthree-comfy','1.0.2510052058')]:
|
||
| ^^^^^^^^^^^^^^
|
||
49 | b=get(f'https://api.comfy.org/nodes/{node}/versions/{version}')
|
||
50 | (REF/f'{key}-registry.json').write_bytes(b)
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:20:47
|
||
|
|
||
18 | assert hashlib.sha256(archive.read_bytes()).hexdigest()==e['package_sha256']
|
||
19 | assert e['git_commit_binding']=='unknown'
|
||
20 | with zipfile.ZipFile(archive) as z: assert z.read(e['file'])==raw
|
||
| ^
|
||
21 | else:
|
||
22 | root=REF.parent/'seedvr2-reference' if e['id']=='frontend' else REF
|
||
|
|
||
|
||
E501 Line too long (168 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:25:101
|
||
|
|
||
23 | …())
|
||
24 | …]
|
||
25 | …'+raw).hexdigest()==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
26 | …
|
||
27 | …
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:31:101
|
||
|
|
||
29 | assert obj['type']=='commit' and obj['sha']==e['commit']
|
||
30 | g=json.loads((REPO/b['source_path']).read_bytes())
|
||
31 | expected=[f'/nodes/{i}/widgets_values/{j}' for i,n in enumerate(g['nodes']) for j in range(len(n['widgets_values']))]
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
32 | assert expected==[f['pointer'] for f in b['fields']] and len(expected)==35
|
||
33 | assert len(g['nodes'])==17 and len(g['links'])==20 and 'definitions' not in g
|
||
|
|
||
|
||
E501 Line too long (401 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:36:101
|
||
|
|
||
34 | …
|
||
35 | …
|
||
36 | …ions=len(b['sources']),texts=len({e['local_file'] …ted=False),ensure_ascii=False,indent=2)+'\n')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
37 | …nventory')
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:37:101
|
||
|
|
||
35 | assert 'frontendVersion' not in g['extra'] and not b['comments']
|
||
36 | (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=identities,citations=len(b['sources']),texts=len({e['lo…
|
||
37 | print('PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory')
|
||
| ^^^^^
|
||
38 |
|
||
39 | if __name__=='__main__': main()
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:39:24
|
||
|
|
||
37 | print('PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory')
|
||
38 |
|
||
39 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
Found 108 errors.
|