1100 lines
62 KiB
Plaintext
1100 lines
62 KiB
Plaintext
E501 Line too long (153 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:131:101
|
||
|
|
||
131 | …frontend", "ue", "swap", "unconnected_mask", "wrong_path", "seed", "image", "logo", "font"])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
132 | …
|
||
133 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:135:26
|
||
|
|
||
133 | s,r=copy.deepcopy(SOURCES[0]),copy.deepcopy(REVIEWS[0])
|
||
134 | nodes={n["id"]:n for n in s["nodes"]}
|
||
135 | if kind=="source_sha":r["source_sha"]="0"*40
|
||
| ^
|
||
136 | elif kind=="citation":r["fixed_version_document"]["sources"][0]["sha256"]="0"*64
|
||
137 | elif kind=="frontend":s["extra"]["frontendVersion"]="1.43.17"
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:136:26
|
||
|
|
||
134 | nodes={n["id"]:n for n in s["nodes"]}
|
||
135 | if kind=="source_sha":r["source_sha"]="0"*40
|
||
136 | elif kind=="citation":r["fixed_version_document"]["sources"][0]["sha256"]="0"*64
|
||
| ^
|
||
137 | elif kind=="frontend":s["extra"]["frontendVersion"]="1.43.17"
|
||
138 | elif kind=="ue":s["extra"]["links_added_by_ue"]=[1]
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:137:26
|
||
|
|
||
135 | if kind=="source_sha":r["source_sha"]="0"*40
|
||
136 | elif kind=="citation":r["fixed_version_document"]["sources"][0]["sha256"]="0"*64
|
||
137 | elif kind=="frontend":s["extra"]["frontendVersion"]="1.43.17"
|
||
| ^
|
||
138 | elif kind=="ue":s["extra"]["links_added_by_ue"]=[1]
|
||
139 | elif kind=="swap":
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:138:20
|
||
|
|
||
136 | elif kind=="citation":r["fixed_version_document"]["sources"][0]["sha256"]="0"*64
|
||
137 | elif kind=="frontend":s["extra"]["frontendVersion"]="1.43.17"
|
||
138 | elif kind=="ue":s["extra"]["links_added_by_ue"]=[1]
|
||
| ^
|
||
139 | elif kind=="swap":
|
||
140 | other=next(p for p in DEFINITIONS if p.endswith("/birefnet_图像移除背景.json"))
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:142:34
|
||
|
|
||
140 | other=next(p for p in DEFINITIONS if p.endswith("/birefnet_图像移除背景.json"))
|
||
141 | r=copy.deepcopy(review_for(other,hashlib.sha1((REPO/other).read_bytes()).hexdigest()))
|
||
142 | elif kind=="unconnected_mask":nodes[5]["outputs"][1]["links"]=[]
|
||
| ^
|
||
143 | elif kind=="wrong_path":r["fixed_version_document"]["source_path"]="forged"
|
||
144 | elif kind=="seed":nodes[20]["widgets_values"][5]="fixed"
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:143:28
|
||
|
|
||
141 | r=copy.deepcopy(review_for(other,hashlib.sha1((REPO/other).read_bytes()).hexdigest()))
|
||
142 | elif kind=="unconnected_mask":nodes[5]["outputs"][1]["links"]=[]
|
||
143 | elif kind=="wrong_path":r["fixed_version_document"]["source_path"]="forged"
|
||
| ^
|
||
144 | elif kind=="seed":nodes[20]["widgets_values"][5]="fixed"
|
||
145 | elif kind=="image":nodes[6]["widgets_values"][0]=nodes[5]["widgets_values"][0]
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:144:22
|
||
|
|
||
142 | elif kind=="unconnected_mask":nodes[5]["outputs"][1]["links"]=[]
|
||
143 | elif kind=="wrong_path":r["fixed_version_document"]["source_path"]="forged"
|
||
144 | elif kind=="seed":nodes[20]["widgets_values"][5]="fixed"
|
||
| ^
|
||
145 | elif kind=="image":nodes[6]["widgets_values"][0]=nodes[5]["widgets_values"][0]
|
||
146 | elif kind=="logo":nodes[20]["widgets_values"][13]="None"
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:145:23
|
||
|
|
||
143 | elif kind=="wrong_path":r["fixed_version_document"]["source_path"]="forged"
|
||
144 | elif kind=="seed":nodes[20]["widgets_values"][5]="fixed"
|
||
145 | elif kind=="image":nodes[6]["widgets_values"][0]=nodes[5]["widgets_values"][0]
|
||
| ^
|
||
146 | elif kind=="logo":nodes[20]["widgets_values"][13]="None"
|
||
147 | else:nodes[3]["widgets_values"][3]="forged.ttf"
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:146:22
|
||
|
|
||
144 | elif kind=="seed":nodes[20]["widgets_values"][5]="fixed"
|
||
145 | elif kind=="image":nodes[6]["widgets_values"][0]=nodes[5]["widgets_values"][0]
|
||
146 | elif kind=="logo":nodes[20]["widgets_values"][13]="None"
|
||
| ^
|
||
147 | else:nodes[3]["widgets_values"][3]="forged.ttf"
|
||
148 | r["fixed_version_document"]["canonical_sha256"]=hashlib.sha256(canonical(s)).hexdigest()
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:147:9
|
||
|
|
||
145 | elif kind=="image":nodes[6]["widgets_values"][0]=nodes[5]["widgets_values"][0]
|
||
146 | elif kind=="logo":nodes[20]["widgets_values"][13]="None"
|
||
147 | else:nodes[3]["widgets_values"][3]="forged.ttf"
|
||
| ^
|
||
148 | r["fixed_version_document"]["canonical_sha256"]=hashlib.sha256(canonical(s)).hexdigest()
|
||
149 | r["caller_digest"]=hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest()
|
||
|
|
||
|
||
E501 Line too long (227 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:169:101
|
||
|
|
||
167 | …
|
||
168 | …
|
||
169 | …urce_nodes=17,physical_edges=15,source_notes=0,linked_saved_fields=0,frontend_only=4,final_scalars=0,final_prompt_constructed=False)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
170 | …
|
||
171 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:170:17
|
||
|
|
||
168 | assert sum(len(b.get("comments",[])) for b in oldblocks)==15 # ASR source note independent
|
||
169 | assert block["counts"]==dict(saved_fields=56,scalar_saved_positions=56,history_objects=0,source_nodes=17,physical_edges=15,source…
|
||
170 | g=SOURCES[0];ns={n["id"]:n for n in g["nodes"]}
|
||
| ^
|
||
171 | assert len(ns)==17 and len(g["links"])==15 and all(n["mode"]==0 for n in ns.values())
|
||
172 | assert {i for i,n in ns.items() if "widgets_values" not in n}=={12,14}
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:175:101
|
||
|
|
||
173 | assert {i for i,n in ns.items() if n.get("widgets_values")==[]}=={1,8,16,7,9,11,13,15,17}
|
||
174 | assert sum(len(n.get("widgets_values",[])) for n in ns.values())==56
|
||
175 | assert "frontendVersion" not in g["extra"] and g["extra"]["ue_links"]==g["extra"]["links_added_by_ue"]==[]
|
||
| ^^^^^^^^^^
|
||
176 | assert len(block["zero_saved_nodes"])==9 and not block["comments"]
|
||
177 | assert len({f["pointer"] for f in block["fields"]})==56
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:179:101
|
||
|
|
||
177 | assert len({f["pointer"] for f in block["fields"]})==56
|
||
178 | assert ns[20]["widgets_values"][4:7]==[166434517983310,"randomize",True]
|
||
179 | assert [f["field"] for f in block["fields"] if f["node_id"]=="20"][4:7]==["seed","control_after_generate","use_exif"]
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
180 | assert g["links"]==[[4,1,0,7,0,"IMAGE"],[6,8,0,9,0,"IMAGE"],[8,1,0,8,0,"IMAGE"],[10,3,0,11,0,"IMAGE"],[11,5,0,12,0,"IMAGE"],[13,1…
|
||
181 | for eid,origin,slot,target,inp,typ in g["links"]:
|
||
|
|
||
|
||
E501 Line too long (352 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:180:101
|
||
|
|
||
178 | …
|
||
179 | …fter_generate","use_exif"]
|
||
180 | …0,"IMAGE"],[11,5,0,12,0,"IMAGE"],[13,12,0,3,0,"IMAGE"],[14,12,0,2,0,"IMAGE"],[16,2,0,13,0,"IMAGE"],[17,6,0,14,0,"IMAGE"],[22,10,0,16,0,"IMAGE"],[23,16,0,17,0,"IMAGE"],[28,12,0,20,0,"IMAGE"],[29,20,0,15,0,"IMAGE"],[30,12,0,1,0,"IMAGE"],[31,14,0,1,1,"IMAGE"]]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
181 | …
|
||
182 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:190:13
|
||
|
|
||
188 | assert next(i for i in ns[20]["inputs"] if i["name"]=="exif_data")["link"] is None
|
||
189 | assert next(i for i in ns[2]["inputs"] if i["name"]=="水印图像")["link"] is None
|
||
190 | d=doc(0);assert d["fixed_version"]["matched"]
|
||
| ^
|
||
191 | assert d["status"]==dict(imported=True,doc_done=False,exec_verified=False)
|
||
192 | assert d["dependencies"]["check_state"]=="unchecked"
|
||
|
|
||
|
||
E501 Line too long (206 > 100)
|
||
--> calliope-backend/tests/test_watermark_fixed_document.py:193:82
|
||
|
|
||
191 | …
|
||
192 | …
|
||
193 | …p PNG", "unknown", "没有frontendVersion", "compression_ratio=100", "YCbCr", "wm_size", "bar_width", "白", "randomize"]:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
194 | …
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:11:73
|
||
|
|
||
9 | OUT = Path(__file__).resolve().parent
|
||
10 | REF = OUT.parent / 'watermark-reference'
|
||
11 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json']
|
||
| ^^^^^^^^^^^^^^^^^
|
||
12 |
|
||
13 | def canonical(value):
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:22:41
|
||
|
|
||
21 | def build(index=0):
|
||
22 | raw=(REPO/PATHS[index]).read_bytes();g=json.loads(raw)
|
||
| ^
|
||
23 | binding=json.loads((OUT/'original-binding.json').read_bytes())
|
||
24 | assert hashlib.sha256(raw).hexdigest()==binding['raw_sha256']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:29:22
|
||
|
|
||
27 | pins=json.loads((REF/'pins.json').read_bytes())
|
||
28 | def cite(key,file,lines,claim):
|
||
29 | pin=pins[key];local=REF/(key+'__'+file.replace('/','__'));data=local.read_bytes()
|
||
| ^
|
||
30 | sources.append(dict(id=key,repository='https://github.com/'+pin['repository'],commit=pin['commit'],file=file,local_file='../wa…
|
||
31 | return len(sources)-1
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:29:66
|
||
|
|
||
27 | pins=json.loads((REF/'pins.json').read_bytes())
|
||
28 | def cite(key,file,lines,claim):
|
||
29 | pin=pins[key];local=REF/(key+'__'+file.replace('/','__'));data=local.read_bytes()
|
||
| ^
|
||
30 | sources.append(dict(id=key,repository='https://github.com/'+pin['repository'],commit=pin['commit'],file=file,local_file='../wa…
|
||
31 | return len(sources)-1
|
||
|
|
||
|
||
E501 Line too long (119 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:32:87
|
||
|
|
||
30 | sources.append(dict(id=key,repository='https://github.com/'+pin['repository'],commit=pin['commit'],file=file,local_file='../wa…
|
||
31 | return len(sources)-1
|
||
32 | core=cite('core','nodes.py',[1695,1770],'core0.25.0 LoadImage准确schema、输入目录枚举、双读取分支及IMAGE/MASK输出')
|
||
| ^^^^^^^^^^^^^^^^^^
|
||
33 | preview=cite('core','nodes.py',[1622,1693],'PreviewImage继承SaveImage,temp目录PNG与UI images,无执行返回槽')
|
||
34 | register=cite('core','nodes.py',[2023,2065],'LoadImage和PreviewImage旧式准确注册')
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:33:94
|
||
|
|
||
31 | return len(sources)-1
|
||
32 | core=cite('core','nodes.py',[1695,1770],'core0.25.0 LoadImage准确schema、输入目录枚举、双读取分支及IMAGE/MASK输出')
|
||
33 | preview=cite('core','nodes.py',[1622,1693],'PreviewImage继承SaveImage,temp目录PNG与UI images,无执行返回槽')
|
||
| ^^^^^^^^^^^^
|
||
34 | register=cite('core','nodes.py',[2023,2065],'LoadImage和PreviewImage旧式准确注册')
|
||
35 | cr=cite('cr','nodes/nodes_graphics_text.py',[356,448],'Comfyroll准确九字段schema、批次循环、位置、字体和合成')
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:53:30
|
||
|
|
||
51 | for e in old['sources']:
|
||
52 | if e['id']=='frontend':
|
||
53 | sources.append(e);front.append(len(sources)-1)
|
||
| ^
|
||
54 | frontend_pin = dict(repository='Comfy-Org/ComfyUI_frontend',commit='f754141537fecaae53d635d94615f588b0e39f95')
|
||
55 | seedlocal=OUT.parent/'birefnet-reference/frontend__src__scripts__widgets.ts'
|
||
|
|
||
|
||
E501 Line too long (114 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:54:101
|
||
|
|
||
52 | if e['id']=='frontend':
|
||
53 | sources.append(e);front.append(len(sources)-1)
|
||
54 | frontend_pin = dict(repository='Comfy-Org/ComfyUI_frontend',commit='f754141537fecaae53d635d94615f588b0e39f95')
|
||
| ^^^^^^^^^^^^^^
|
||
55 | seedlocal=OUT.parent/'birefnet-reference/frontend__src__scripts__widgets.ts'
|
||
56 | sources.append(dict(id='frontend-explicit-assumption',repository='https://github.com/'+frontend_pin['repository'],commit=frontend_…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:61:24
|
||
|
|
||
59 | note='源mode=0、UE7.8;源未声明frontendVersion。字段对应只作所列准确后端schema与显式前端1.43.17固定参考假设,不证明宿主控件布局/…
|
||
60 | def add(node,position,name,label,typ,default,unit,limits,effect,evidence,role='scalar'):
|
||
61 | i,n=nodes[node];value=n['widgets_values'][position]
|
||
| ^
|
||
62 | fields.append(dict(node_id=str(node),definition_node_id=str(node),class_type=n['type'],scope='root',pointer=f'/nodes/{i}/widge…
|
||
63 | for nid,purpose in [(5,'四路共用底图'),(6,'盲水印内容图'),(10,'独立提取支路的已加印图片引用')]:
|
||
|
|
||
|
||
E501 Line too long (416 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:64:79
|
||
|
|
||
62 | …scope='root',pointer=f'/nodes/{i}/widgets_values/{position}',field=name,label=label,type=typ,schema_default=default,unit=unit,limits=limits,effect=effect,evidence=evidence,role=role,execution_note=note,value=value,json_type=type(value).__name__))
|
||
63 | …)]:
|
||
64 | … 用','成员、文件/尺寸/格式和权限未知;本轮不读取图片',f'节点{nid}独立保存图片引用,不与其它LoadImage去重。固定core先经InputImpl.VideoFromFile.get_components尝试读取图像/alpha;空图像时回退Pillow处理animated webp、EXIF方向、RGB/255。返回IMAGE与MASK;本图三个MASK槽均未接。不是上传成功或真实图片可达证明。',[core,register])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
65 | … 位;非后台默认','前端状态','不是后台参数,也不是上传成功;源未声明前端,准确恢复未知',f'节点{nid}的第二保存位置image原样独立保留。显式frontend1.43.17假设中上传按钮options.serialize=false用于prompt排除,工作流widget.serialize另管持久化;不把该值映射成LoadImage后台upload输入。此图未声明宿主版本,不证明真实控件恢复/上传,未调…
|
||
66 | …
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:67:77
|
||
|
|
||
65 | add(nid,1,'upload','图片上传控件保存状态','IMAGEUPLOAD(前端)','固定前端参考image按钮占位;非后台默认','前端状态','不是后台…
|
||
66 | crrows=[
|
||
67 | ('text','水印文字','STRING','@ your name','文字','单行字符串','在每张输入图片上绘制保存的@ by Bright,不改写文本。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
68 | ('align','文字对齐','COMBO','未显式default,选项首项center','对齐枚举','center/top left/top center/top right/bottom left/bottom …
|
||
69 | ('opacity','文字不透明度','FLOAT','0.30','比例','0~1,step0.01','保存0.5使文字图层alpha经Brightness乘0.5,再Image.composite合…
|
||
|
|
||
|
||
E501 Line too long (219 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:68:85
|
||
|
|
||
66 | …
|
||
67 | … @ by Bright,不改写文本。'),
|
||
68 | …/top center/top right/bottom left/bottom center/bottom right','保存center使文字边界框居中;此分支不使用x_margin或y_margin。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
69 | …a经Brightness乘0.5,再Image.composite合成;不是保证最终视觉恰好50%。'),
|
||
70 | … ','目标动态成员/字形/许可未知','保存Caveat-VariableFont_wght.ttf。准确代码ImageFont.truetype加载插件fonts下引用,无此处加载异常回退…
|
||
|
|
||
|
||
E501 Line too long (136 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:71:85
|
||
|
|
||
69 | …,'0~1,step0.01','保存0.5使文字图层alpha经Brightness乘0.5,再Image.composite合成;不是保证最终视觉恰好50%。'),
|
||
70 | …目录.ttf列表,无显式default','字体文件引用','目标动态成员/字形/许可未知','保存Caveat-VariableFont_wght.ttf。准确代码ImageFont.truetyp…
|
||
71 | … 素','1~1024','保存150传给truetype size;不证明实际文字宽高,文字边界依赖字体。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
72 | …fault,列表首项custom','颜色枚举','准确config.COLORS列表','保存white按color_mapping为(255,255,255),不会读取font_color_hex。'),
|
||
73 | …4~1024','保存20在非居中左右支路参与位置;center保存态不使用它。'),
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:76:35
|
||
|
|
||
74 | ('y_margin','垂直边距','INT','20','像素','-1024~1024','保存20在顶部/底部支路参与位置;center保存态不使用它。'),
|
||
75 | ('font_color_hex','自定义文字HEX','STRING','#000000','RGB十六进制字符串','只有font_color=custom才解析;不保证任意字符串有效','…
|
||
76 | for j,row in enumerate(crrows):add(3,j,*row,[cr,crcolor,cropacity,crconfig,crreg])
|
||
| ^
|
||
77 | gurows=[
|
||
78 | ('水印文本','文字水印内容','STRING','水印','文字','字符串;当前无外部水印图输入','保存@ by Bright;可选水印图像未接,固定实现走…
|
||
|
|
||
|
||
E501 Line too long (146 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:78:71
|
||
|
|
||
76 | …or,cropacity,crconfig,crreg])
|
||
77 | …
|
||
78 | …字符串;当前无外部水印图输入','保存@ by Bright;可选水印图像未接,固定实现走文字支路。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
79 | … default','字体文件引用','.ttf/.otf/.ttc动态成员与实际文件未知','保存华文细黑.ttf;按插件fonts引用,truetype异常回退ImageFont.load_de…
|
||
80 | … 度百分比','0~100,step1;0在schema合法不保证绘制成功','保存15;文字字号int(原图高×15/100),不是文字宽度或图片水印比例。只有外部水…
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:91:35
|
||
|
|
||
89 | ('水印间距','平铺文字间距','INT','10','底图高度百分比','0~50,step1;仅平铺文字分支','保存22;只有平铺true才算int(原图高×22/100…
|
||
90 | ('输出透明通道','保留输出透明通道','BOOLEAN','false','布尔开关','true/false','当前false把RGBA结果转RGB再转tensor;true只是保留…
|
||
91 | for j,row in enumerate(gurows):add(2,j,*row,[gu,gure])
|
||
| ^
|
||
92 | camrows=[
|
||
93 | ('layout','相机水印版式','COMBO','无显式default,首项1. 底部留白 - 左右分布','版式枚举','固定LAYOUT_OPTIONS十项','保存第1版式:…
|
||
|
|
||
|
||
E501 Line too long (212 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:93:75
|
||
|
|
||
91 | …
|
||
92 | …
|
||
93 | … ','固定LAYOUT_OPTIONS十项','保存第1版式:底部加条,左右文本分布。不是四路叠加;当前bar_width/bar_height不参与此版式。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
94 | …e不以LAYOUT_PRESETS覆写保存参数。固定实现true时在随机版式选择后params.update预设;真实宿主回调/恢复未知。'),
|
||
95 | … 用random.seed/choice;保存seed不随机求值。与前端seed附加randomize控件是两件事。'),
|
||
|
|
||
|
||
E501 Line too long (101 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:102:101
|
||
|
|
||
100 | ]
|
||
101 | # Six independently saved strings, not real camera metadata.
|
||
102 | defaults=['iPhone 15 Pro Max','Main Camera','© KARAS','SONY','24mm | f/1.8 | 1/125s | ISO 50','']
|
||
| ^
|
||
103 | for j,(name,default) in enumerate(zip(['block_a_text_1','block_a_text_2','block_a_text_3','block_b_text_1','block_b_text_2','bloc…
|
||
104 | side='A' if j<3 else 'B';line=j%3+1
|
||
|
|
||
|
||
E501 Line too long (157 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:103:101
|
||
|
|
||
101 | ….
|
||
102 | …','24mm | f/1.8 | 1/125s | ISO 50','']
|
||
103 | …ock_a_text_2','block_a_text_3','block_b_text_1','block_b_text_2','block_b_text_3'],defaults)):
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
104 | …
|
||
105 | …,json.dumps(default,ensure_ascii=False),'文字','单行字符串;空字符串不绘制',f'保存手工{side}区第{line}行文案;本图EXIF外线未接,不…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:104:33
|
||
|
|
||
102 | defaults=['iPhone 15 Pro Max','Main Camera','© KARAS','SONY','24mm | f/1.8 | 1/125s | ISO 50','']
|
||
103 | for j,(name,default) in enumerate(zip(['block_a_text_1','block_a_text_2','block_a_text_3','block_b_text_1','block_b_text_2','bloc…
|
||
104 | side='A' if j<3 else 'B';line=j%3+1
|
||
| ^
|
||
105 | camrows.append((name,f'{side}区第{line}行文字','STRING',json.dumps(default,ensure_ascii=False),'文字','单行字符串;空字符串…
|
||
106 | camrows += [
|
||
|
|
||
|
||
E501 Line too long (270 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:107:76
|
||
|
|
||
105 | …=False),'文字','单行字符串;空字符串不绘制',f'保存手工{side}区第{line}行文案;本图EXIF外线未接,不能把机型/品牌/曝光描述当真实元数据。第1行用large_bold/title_color,第2行medium/sub…
|
||
106 | …
|
||
107 | …e加插件logos目录PNG名称;目标成员/许可未知','保存leica,仅引用;代码按目录名称大小写匹配、读取RGBA并裁透明边。只有选None才尝试从手工A1或EXIF Make匹配名称,不读取/下载logo。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
108 | … JSON int,与FLOAT默认分列);基准高=max(文本相关高度,信息条尺寸的一半),乘倍率后等比LANCZOS缩放。实际大小依赖布局/文字/图片。'),
|
||
109 | … 加int(200×scale_factor)高;scale_factor=min(1,图宽/1200),不是固定输出200像素。'),
|
||
|
|
||
|
||
E501 Line too long (225 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:108:84
|
||
|
|
||
106 | …
|
||
107 | …e加插件logos目录PNG名称;目标成员/许可未知','保存leica,仅引用;代码按目录名称大小写匹配、读取RGBA并裁透明边。只有选None才尝试从手工A1…
|
||
108 | … JSON int,与FLOAT默认分列);基准高=max(文本相关高度,信息条尺寸的一半),乘倍率后等比LANCZOS缩放。实际大小依赖布局/文字/图片。'),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | … 加int(200×scale_factor)高;scale_factor=min(1,图宽/1200),不是固定输出200像素。'),
|
||
110 | …lse使用','保存1894;当前第1版式不使用。准确代码10.也进入底部加条分支,不能因名称独立信息条就称使用bar_width。'),
|
||
|
|
||
|
||
E501 Line too long (130 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:125:101
|
||
|
|
||
123 | assert len(camrows)==28
|
||
124 | for j,row in enumerate(camrows):
|
||
125 | add(20,j,*row,[cam,camcontent,camdraw,camfonts,camfontload,camreg,seedcite],role='frontend_control' if j==5 else 'scalar')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
126 | assert len(fields)==56
|
||
127 | flow=[
|
||
|
|
||
|
||
E501 Line too long (176 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:132:79
|
||
|
|
||
130 | …k_image;1.image槽0以边4→Preview7.images,并边8→Show8.image;Show8.watermark_image槽0以边6→Preview9.images。',
|
||
131 | …images。不是刚由1生成的文件,不是本次写入/恢复成功的反向证明,也不保证盲水印鲁棒性。',
|
||
132 | … 助文本而非下载文件。孤海2.IMAGE槽0以边16→Preview13.images;Camera20.IMAGE槽0以边29→Preview15.images。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
133 | … 转;间距22仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。',
|
||
134 | …Phone/SONY或光圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按m…
|
||
|
|
||
|
||
E501 Line too long (199 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:133:61
|
||
|
|
||
131 | … 由1生成的文件,不是本次写入/恢复成功的反向证明,也不保证盲水印鲁棒性。',
|
||
132 | … 载文件。孤海2.IMAGE槽0以边16→Preview13.images;Camera20.IMAGE槽0以边29→Preview15.images。',
|
||
133 | …仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
134 | … 圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按min(1,图宽/120…
|
||
135 | …age保存逻辑但写temp PNG、返回UI images,无执行数据槽;源没有SaveImage,预览不是永久导出,目录/权限/产物未知。',
|
||
|
|
||
|
||
E501 Line too long (195 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:135:81
|
||
|
|
||
133 | …2仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。',
|
||
134 | …或光圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按min(1,图宽/…
|
||
135 | …Image保存逻辑但写temp PNG、返回UI images,无执行数据槽;源没有SaveImage,预览不是永久导出,目录/权限/产物未知。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
136 | … 局/恢复与回调次序全部保留;显式frontend1.43.17只是固定参考假设,不以core版本填前端身份。没有模型节点,不编模型依赖或触发下载。',
|
||
137 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:140:24
|
||
|
|
||
138 | # Layer semantics inserted only after exact package text is reviewed.
|
||
139 | layer=json.loads((OUT/'layer-editorial.json').read_bytes())
|
||
140 | offset=len(sources);sources.extend(layer['sources']);flow.extend(layer['flow'])
|
||
| ^
|
||
141 | for e in g['links']:flow.append('源物理边:'+json.dumps(e,ensure_ascii=False))
|
||
142 | for n in g['nodes']:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:140:57
|
||
|
|
||
138 | # Layer semantics inserted only after exact package text is reviewed.
|
||
139 | layer=json.loads((OUT/'layer-editorial.json').read_bytes())
|
||
140 | offset=len(sources);sources.extend(layer['sources']);flow.extend(layer['flow'])
|
||
| ^
|
||
141 | for e in g['links']:flow.append('源物理边:'+json.dumps(e,ensure_ascii=False))
|
||
142 | for n in g['nodes']:
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:141:24
|
||
|
|
||
139 | layer=json.loads((OUT/'layer-editorial.json').read_bytes())
|
||
140 | offset=len(sources);sources.extend(layer['sources']);flow.extend(layer['flow'])
|
||
141 | for e in g['links']:flow.append('源物理边:'+json.dumps(e,ensure_ascii=False))
|
||
| ^
|
||
142 | for n in g['nodes']:
|
||
143 | flow.append(f"节点{n['id']} {n['type']} mode={n['mode']};widgets_values="+('缺键' if 'widgets_values' not in n else json.dum…
|
||
|
|
||
|
||
E501 Line too long (366 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:143:96
|
||
|
|
||
141 | …
|
||
142 | …
|
||
143 | …widgets_values' not in n else json.dumps(n['widgets_values'],ensure_ascii=False))+';原inputs='+json.dumps(n.get('inputs'),ensure_ascii=False)+';原outputs='+json.dumps(n.get('outputs'),ensure_ascii=False)+';原properties='+json.dumps(n['properties'],ensure_ascii=False))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
144 | …
|
||
145 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:146:39
|
||
|
|
||
144 | zeros=[]
|
||
145 | for n in g['nodes']:
|
||
146 | if n.get('widgets_values')!=[]:continue
|
||
| ^
|
||
147 | if n['type']=='PreviewImage':effect='原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导…
|
||
148 | else:effect=layer['zero_effects'][n['type']];ev=list(range(offset,len(sources)))
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:147:37
|
||
|
|
||
145 | for n in g['nodes']:
|
||
146 | if n.get('widgets_values')!=[]:continue
|
||
147 | if n['type']=='PreviewImage':effect='原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导…
|
||
| ^
|
||
148 | else:effect=layer['zero_effects'][n['type']];ev=list(range(offset,len(sources)))
|
||
149 | zeros.append(dict(node_id=str(n['id']),class_type=n['type'],effect=effect,evidence=ev))
|
||
|
|
||
|
||
E501 Line too long (158 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:147:83
|
||
|
|
||
145 | …
|
||
146 | …
|
||
147 | … 入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导出。';ev=[preview,register]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
148 | …ge(offset,len(sources)))
|
||
149 | …e'],effect=effect,evidence=ev))
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:147:110
|
||
|
|
||
145 | …
|
||
146 | …
|
||
147 | … 行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导出。';ev=[preview,register]
|
||
| ^
|
||
148 | …et,len(sources)))
|
||
149 | …ect=effect,evidence=ev))
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:148:13
|
||
|
|
||
146 | if n.get('widgets_values')!=[]:continue
|
||
147 | if n['type']=='PreviewImage':effect='原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导…
|
||
148 | else:effect=layer['zero_effects'][n['type']];ev=list(range(offset,len(sources)))
|
||
| ^
|
||
149 | zeros.append(dict(node_id=str(n['id']),class_type=n['type'],effect=effect,evidence=ev))
|
||
150 | overview='这张图把同一底图分成盲水印、居中文字、孤海文字水印和相机信息条四路,分别预览;另外可以从另一张已加印图片独立提取盲水印…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:148:53
|
||
|
|
||
146 | if n.get('widgets_values')!=[]:continue
|
||
147 | if n['type']=='PreviewImage':effect='原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导…
|
||
148 | else:effect=layer['zero_effects'][n['type']];ev=list(range(offset,len(sources)))
|
||
| ^
|
||
149 | zeros.append(dict(node_id=str(n['id']),class_type=n['type'],effect=effect,evidence=ev))
|
||
150 | overview='这张图把同一底图分成盲水印、居中文字、孤海文字水印和相机信息条四路,分别预览;另外可以从另一张已加印图片独立提取盲水印…
|
||
|
|
||
|
||
E501 Line too long (129 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:151:81
|
||
|
|
||
149 | …ass_type=n['type'],effect=effect,evidence=ev))
|
||
150 | … 、孤海文字水印和相机信息条四路,分别预览;另外可以从另一张已加印图片独立提取盲水印。四路没有依次叠加。字体、标志、图片和真实效果尚…
|
||
151 | …]}→{pin['commit']},只读静态文本,不证明目标安装。" for key,pin in pins.items()]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
152 | …tend1.43.17→f754141537fecaae53d635d94615f588b0e39f95仅固定参考假设,不能由core0.25.0推断。上传/seed控件真实布局、恢复与UE7.8次序未…
|
||
153 | … 立提取图10三个独立图片引用;文字字体、相机字体和logo只保留引用,不读取/下载。没有模型节点。','操作1:未来获准执行时先核准确节点包…
|
||
|
|
||
|
||
E501 Line too long (348 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:152:95
|
||
|
|
||
150 | … 可以从另一张已加印图片独立提取盲水印。四路没有依次叠加。字体、标志、图片和真实效果尚未核对;没有正式保存节点,预览不等于永久导出。未实跑,转换保持关闭。'
|
||
151 | … 。" for key,pin in pins.items()]
|
||
152 | …e39f95仅固定参考假设,不能由core0.25.0推断。上传/seed控件真实布局、恢复与UE7.8次序未知。','core许可GPL-3.0;Comfyroll入口MIT许可全文保留;Camera与孤海准确树没有单独LICENSE文件,许可未知,不借其它版本。字体/logo许可与目标成员均未知。',*layer['versions']]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
153 | … 和logo只保留引用,不读取/下载。没有模型节点。','操作1:未来获准执行时先核准确节点包、源未声明的宿主前端、UE行为、图片/字体/logo成员及权限;本轮不构造prompt,不调整机器。','操作2:分别检查CR居中文本、孤海60度单一文字、相机底部信息条和盲水印支路;不要把四个Pr…
|
||
154 | …hlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='固定版本仅作参考;源前端/UE恢复、动态文件/字体/logo、元数据和实际效果未知,未实跑,转换保持关闭。',user_overview=overview,versions=versions,counts=dict(saved_field…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:156:48
|
||
|
|
||
154 | b=dict(source_path=PATHS[index],source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical…
|
||
155 | for e in sources:
|
||
156 | data=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(data).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['line…
|
||
| ^
|
||
157 | return b
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:156:101
|
||
|
|
||
154 | b=dict(source_path=PATHS[index],source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical…
|
||
155 | for e in sources:
|
||
156 | data=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(data).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['line…
|
||
| ^
|
||
157 | return b
|
||
|
|
||
|
||
E501 Line too long (172 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_definition.py:156:101
|
||
|
|
||
154 | …igest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='固定版本仅…
|
||
155 | …
|
||
156 | …data).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines'][1]<=len(data.decode().splitlines())
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
157 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:12:49
|
||
|
|
||
10 | sources=[]
|
||
11 | def cite(file,lines,claim):
|
||
12 | p=REF/('layer__'+file.replace('/','__'));raw=p.read_bytes()
|
||
| ^
|
||
13 | sources.append(dict(id='layer-registry-2.0.38',repository='https://github.com/chflame163/ComfyUI_LayerStyle_Advance',commit='u…
|
||
14 | for file,lines,claim in [
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:25:81
|
||
|
|
||
23 | ('LICENSE',[1,len((REF/'layer__LICENSE').read_text().splitlines())],'准确包MIT许可全文')]:
|
||
24 | # Range bounded by exact file, not a nearby release.
|
||
25 | n=len((REF/('layer__'+file.replace('/','__'))).read_text().splitlines());lines[1]=min(lines[1],n);cite(file,lines,claim)
|
||
| ^
|
||
26 | flow=[
|
||
27 | '盲水印准确来源为Registry comfyui_layerstyle_advance 2.0.38发行包(发布ID db305def-250b-448d-88b6-e43acbeb03af),包pyproject确…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:25:106
|
||
|
|
||
23 | ('LICENSE',[1,len((REF/'layer__LICENSE').read_text().splitlines())],'准确包MIT许可全文')]:
|
||
24 | # Range bounded by exact file, not a nearby release.
|
||
25 | n=len((REF/('layer__'+file.replace('/','__'))).read_text().splitlines());lines[1]=min(lines[1],n);cite(file,lines,claim)
|
||
| ^
|
||
26 | flow=[
|
||
27 | '盲水印准确来源为Registry comfyui_layerstyle_advance 2.0.38发行包(发布ID db305def-250b-448d-88b6-e43acbeb03af),包pyproject确…
|
||
|
|
||
|
||
E501 Line too long (294 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:27:87
|
||
|
|
||
25 | …ines[1],n);cite(file,lines,claim)
|
||
26 | …
|
||
27 | …48d-88b6-e43acbeb03af),包pyproject确认仓库与版本;未提供Git完整commit绑定,commit明确unknown,不借其它LayerStyle或最新版。只以HTTP Range读取目录与必要Python/许可文本,没有下载包内图片/字体/权重。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
28 | …t(sqrt(width×height×0.015625)×0.9),内容图缩至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alpha。极小/异常尺寸、空批次/实际媒体支持和效果未知,不执行算法。',
|
||
29 | …img/read_wm后embed(compression_ratio=100)。依赖只写blind-watermark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失败分支并非已验证正常输出,未知明确保留。',
|
||
|
|
||
|
||
E501 Line too long (246 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:30:82
|
||
|
|
||
28 | …t(sqrt(width×height×0.015625)×0.9),内容图缩至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alpha。极小/异常尺寸、空批次/实际媒体支持和效…
|
||
29 | …img/read_wm后embed(compression_ratio=100)。依赖只写blind-watermark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失败分支并非已验证正…
|
||
30 | …m_size,wm_size))再灰度拉伸,缩至512×512、再normalize_gray、转RGB tensor。extract异常代码先回退黑色64×64再后处理;看见预览不证明提取成功,当前未运行。',
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
31 | …
|
||
32 | … 方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。'
|
||
|
|
||
|
||
E501 Line too long (174 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:32:75
|
||
|
|
||
30 | …Mark.extract(wm_shape=(wm_size,wm_size))再灰度拉伸,缩至512×512、再normalize_gray、转RGB tensor。extract异常代码先回退黑色64×64再后…
|
||
31 | …
|
||
32 | …mage槽0;准确2.0.38代码缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。'
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
33 | …;准确2.0.38按尺寸提取U通道水印、512方形RGB结果与异常回退,不证明成功。'
|
||
34 | …indWaterMark':add,'LayerUtility: ShowBlindWaterMark':show},versions=['LayerStyle Advance按准确Registry2.0.38包固定,Git commit绑定unk…
|
||
|
|
||
|
||
E501 Line too long (292 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:34:101
|
||
|
|
||
32 | … 方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。'
|
||
33 | …通道水印、512方形RGB结果与异常回退,不证明成功。'
|
||
34 | …Utility: ShowBlindWaterMark':show},versions=['LayerStyle Advance按准确Registry2.0.38包固定,Git commit绑定unknown;包MIT许可原文保留。blind-watermark依赖版本未锁、算法内部/实际安装与鲁棒性未知。'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
35 | …
|
||
36 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:36:24
|
||
|
|
||
34 | b=dict(sources=sources,flow=flow,zero_effects={'LayerUtility: AddBlindWaterMark':add,'LayerUtility: ShowBlindWaterMark':show},vers…
|
||
35 | (OUT/'layer-editorial.json').write_text(json.dumps(b,ensure_ascii=False,indent=2)+'\n')
|
||
36 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
E501 Line too long (159 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:11:101
|
||
|
|
||
10 | …
|
||
11 | …arse.quote(url, safe=':/?=&'), headers={'User-Agent':'static-source-review'}), timeout=30) as r:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
12 | …
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:31:101
|
||
|
|
||
29 | for e in tree['tree']:
|
||
30 | p=e['path']
|
||
31 | if e['type']=='blob' and (p.endswith('.py') or 'license' in p.lower() or p.endswith('.js')):
|
||
| ^^^^
|
||
32 | if key=='core' and p not in ['nodes.py','LICENSE.txt','LICENSE']: continue
|
||
33 | if key=='guhai' and not ('水印' in p or p=='__init__.py' or 'license' in p.lower()): continue
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:32:81
|
||
|
|
||
30 | … p=e['path']
|
||
31 | … if e['type']=='blob' and (p.endswith('.py') or 'license' in p.lower() or p.endswith('.js')):
|
||
32 | … if key=='core' and p not in ['nodes.py','LICENSE.txt','LICENSE']: continue
|
||
| ^
|
||
33 | … if key=='guhai' and not ('水印' in p or p=='__init__.py' or 'license' in p.lower()): continue
|
||
34 | … if key=='cr' and not (any(t in p for t in ['__init__.py','nodes_graphics_text','functions_graphics','categories','config']) …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:33:98
|
||
|
|
||
31 | … if e['type']=='blob' and (p.endswith('.py') or 'license' in p.lower() or p.endswith('.js')):
|
||
32 | … if key=='core' and p not in ['nodes.py','LICENSE.txt','LICENSE']: continue
|
||
33 | … if key=='guhai' and not ('水印' in p or p=='__init__.py' or 'license' in p.lower()): continue
|
||
| ^
|
||
34 | … if key=='cr' and not (any(t in p for t in ['__init__.py','nodes_graphics_text','functions_graphics','categories','config']) …
|
||
35 | … local=REF / (key+'__'+p.replace('/','__'))
|
||
|
|
||
|
||
E501 Line too long (109 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:33:99
|
||
|
|
||
31 | … if e['type']=='blob' and (p.endswith('.py') or 'license' in p.lower() or p.endswith('.js')):
|
||
32 | … if key=='core' and p not in ['nodes.py','LICENSE.txt','LICENSE']: continue
|
||
33 | … if key=='guhai' and not ('水印' in p or p=='__init__.py' or 'license' in p.lower()): continue
|
||
| ^^^^^^^^^
|
||
34 | … if key=='cr' and not (any(t in p for t in ['__init__.py','nodes_graphics_text','functions_graphics','categories','config']) …
|
||
35 | … local=REF / (key+'__'+p.replace('/','__'))
|
||
|
|
||
|
||
E501 Line too long (176 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:34:101
|
||
|
|
||
32 | …ICENSE']: continue
|
||
33 | … or 'license' in p.lower()): continue
|
||
34 | …,'nodes_graphics_text','functions_graphics','categories','config']) or 'license' in p.lower()): continue
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
35 | …
|
||
36 | …s://raw.githubusercontent.com/{repo}/{commit}/{p}')
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:34:167
|
||
|
|
||
32 | …
|
||
33 | … continue
|
||
34 | …tions_graphics','categories','config']) or 'license' in p.lower()): continue
|
||
| ^
|
||
35 | …
|
||
36 | …m/{repo}/{commit}/{p}')
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:41:21
|
||
|
|
||
39 | url='https://api.comfy.org/nodes/comfyui_layerstyle_advance/versions/2.0.38'
|
||
40 | try:
|
||
41 | raw=get(url);(REF/'layer-registry-2.0.38.json').write_bytes(raw);print(raw.decode()[:1800])
|
||
| ^
|
||
42 | except Exception as exc:
|
||
43 | (REF/'layer-registry-error.txt').write_text(str(exc))
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:41:73
|
||
|
|
||
39 | url='https://api.comfy.org/nodes/comfyui_layerstyle_advance/versions/2.0.38'
|
||
40 | try:
|
||
41 | raw=get(url);(REF/'layer-registry-2.0.38.json').write_bytes(raw);print(raw.decode()[:1800])
|
||
| ^
|
||
42 | except Exception as exc:
|
||
43 | (REF/'layer-registry-error.txt').write_text(str(exc))
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/discover_sources.py:46:24
|
||
|
|
||
44 | (REF/'pins.json').write_text(json.dumps(pins,indent=2)+'\n')
|
||
45 |
|
||
46 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:12:86
|
||
|
|
||
11 | def get(url):
|
||
12 | with urllib.request.urlopen(urllib.parse.quote(url,safe=':/?=&'),timeout=30) as r: return r.read()
|
||
| ^
|
||
13 |
|
||
14 | class RemoteZip(io.RawIOBase):
|
||
|
|
||
|
||
E501 Line too long (102 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:12:101
|
||
|
|
||
11 | def get(url):
|
||
12 | with urllib.request.urlopen(urllib.parse.quote(url,safe=':/?=&'),timeout=30) as r: return r.read()
|
||
| ^^
|
||
13 |
|
||
14 | class RemoteZip(io.RawIOBase):
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:16:21
|
||
|
|
||
14 | class RemoteZip(io.RawIOBase):
|
||
15 | def __init__(self,url):
|
||
16 | self.url=url;self.pos=0
|
||
| ^
|
||
17 | with urllib.request.urlopen(urllib.request.Request(url,method='HEAD'),timeout=30) as r: self.size=int(r.headers['Content-Lengt…
|
||
18 | def seekable(self): return True
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:17:95
|
||
|
|
||
15 | def __init__(self,url):
|
||
16 | self.url=url;self.pos=0
|
||
17 | with urllib.request.urlopen(urllib.request.Request(url,method='HEAD'),timeout=30) as r: self.size=int(r.headers['Content-Lengt…
|
||
| ^
|
||
18 | def seekable(self): return True
|
||
19 | def seek(self,offset,whence=0):
|
||
|
|
||
|
||
E501 Line too long (138 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:17:101
|
||
|
|
||
15 | …
|
||
16 | …
|
||
17 | …quest(url,method='HEAD'),timeout=30) as r: self.size=int(r.headers['Content-Length'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | …
|
||
19 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:20:83
|
||
|
|
||
18 | def seekable(self): return True
|
||
19 | def seek(self,offset,whence=0):
|
||
20 | self.pos=offset+(self.pos if whence==1 else self.size if whence==2 else 0);return self.pos
|
||
| ^
|
||
21 | def tell(self): return self.pos
|
||
22 | def read(self,size=-1):
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:24:24
|
||
|
|
||
22 | def read(self,size=-1):
|
||
23 | end=self.size-1 if size<0 else min(self.size-1,self.pos+size-1)
|
||
24 | if end<self.pos:return b''
|
||
| ^
|
||
25 | req=urllib.request.Request(self.url,headers={'Range':f'bytes={self.pos}-{end}'})
|
||
26 | with urllib.request.urlopen(req,timeout=30) as r:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:28:25
|
||
|
|
||
26 | with urllib.request.urlopen(req,timeout=30) as r:
|
||
27 | assert r.status==206,'Refuse full package fetch'
|
||
28 | raw=r.read();assert len(raw)==end-self.pos+1
|
||
| ^
|
||
29 | self.pos+=len(raw);return raw
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:29:27
|
||
|
|
||
27 | assert r.status==206,'Refuse full package fetch'
|
||
28 | raw=r.read();assert len(raw)==end-self.pos+1
|
||
29 | self.pos+=len(raw);return raw
|
||
| ^
|
||
30 |
|
||
31 | def main():
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:33:101
|
||
|
|
||
31 | def main():
|
||
32 | pins=json.loads((REF/'pins.json').read_bytes())
|
||
33 | extras={'cr':['node_mappings.py'],'camera':['js/camera_watermark.js'], 'core':['comfy_api/input_impl/video_types.py']}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
34 | for key, paths in extras.items():
|
||
35 | tree=json.loads((REF/(key+'-tree.json')).read_bytes())
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:36:25
|
||
|
|
||
34 | for key, paths in extras.items():
|
||
35 | tree=json.loads((REF/(key+'-tree.json')).read_bytes())
|
||
36 | if key=='camera': paths=[e['path'] for e in tree['tree'] if e['path'].endswith('.js')]
|
||
| ^
|
||
37 | for p in paths:
|
||
38 | if not any(e['path']==p for e in tree['tree']):continue
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:38:59
|
||
|
|
||
36 | if key=='camera': paths=[e['path'] for e in tree['tree'] if e['path'].endswith('.js')]
|
||
37 | for p in paths:
|
||
38 | if not any(e['path']==p for e in tree['tree']):continue
|
||
| ^
|
||
39 | pin=pins[key];raw=get(f"https://raw.githubusercontent.com/{pin['repository']}/{pin['commit']}/{p}")
|
||
40 | (REF/(key+'__'+p.replace('/','__'))).write_bytes(raw)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:39:26
|
||
|
|
||
37 | for p in paths:
|
||
38 | if not any(e['path']==p for e in tree['tree']):continue
|
||
39 | pin=pins[key];raw=get(f"https://raw.githubusercontent.com/{pin['repository']}/{pin['commit']}/{p}")
|
||
| ^
|
||
40 | (REF/(key+'__'+p.replace('/','__'))).write_bytes(raw)
|
||
41 | release=json.loads((REF/'layer-registry-2.0.38.json').read_bytes())
|
||
|
|
||
|
||
E501 Line too long (165 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:46:101
|
||
|
|
||
44 | …
|
||
45 | …s,ensure_ascii=False,indent=2)+'\n')
|
||
46 | …ct.toml','LICENSE','LICENSE.txt','requirements.txt'] or p in ['py/watermark.py','py/imagefunc.py']]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
47 | …
|
||
48 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:49:34
|
||
|
|
||
47 | for p in selected:
|
||
48 | local=REF/('layer__'+p.replace('/','__'))
|
||
49 | if not local.exists():local.write_bytes(z.read(p))
|
||
| ^
|
||
50 | print('Range-read textual entries only:',selected)
|
||
51 | if __name__=='__main__':main()
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/fetch_extra_sources.py:51:24
|
||
|
|
||
49 | if not local.exists():local.write_bytes(z.read(p))
|
||
50 | print('Range-read textual entries only:',selected)
|
||
51 | if __name__=='__main__':main()
|
||
| ^
|
||
|
||
E501 Line too long (109 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/recompute.py:52:101
|
||
|
|
||
50 | rebuilt, previous = build_all()
|
||
51 | assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
|
||
52 | old_blocks = {p:r["fixed_version_document"] for p,r in previous.items() if "fixed_version_document" in r}
|
||
| ^^^^^^^^^
|
||
53 | assert len(old_blocks)==24
|
||
54 | assert all(rebuilt[p]["fixed_version_document"]==b for p,b in old_blocks.items())
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:12:63
|
||
|
|
||
10 | entries=[]
|
||
11 | for key,pin in pins.items():
|
||
12 | tree=json.loads((REF/(key+'-tree.json')).read_bytes());assert tree['sha']==pin['commit'] and not tree['truncated']
|
||
| ^
|
||
13 | by_name={e['path']:e for e in tree['tree']}
|
||
14 | for local in sorted(REF.glob(key+'__*')):
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:12:101
|
||
|
|
||
10 | entries=[]
|
||
11 | for key,pin in pins.items():
|
||
12 | tree=json.loads((REF/(key+'-tree.json')).read_bytes());assert tree['sha']==pin['commit'] and not tree['truncated']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
13 | by_name={e['path']:e for e in tree['tree']}
|
||
14 | for local in sorted(REF.glob(key+'__*')):
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:16:35
|
||
|
|
||
14 | … for local in sorted(REF.glob(key+'__*')):
|
||
15 | … path=local.name[len(key)+2:].replace('__','/')
|
||
16 | … raw=local.read_bytes();blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest()
|
||
| ^
|
||
17 | … assert blob==by_name[path]['sha']
|
||
18 | … entries.append(dict(local_file=local.name,path=path,commit=pin['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha…
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:16:101
|
||
|
|
||
14 | … for local in sorted(REF.glob(key+'__*')):
|
||
15 | … path=local.name[len(key)+2:].replace('__','/')
|
||
16 | … raw=local.read_bytes();blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest()
|
||
| ^^^^^^^
|
||
17 | … assert blob==by_name[path]['sha']
|
||
18 | … entries.append(dict(local_file=local.name,path=path,commit=pin['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:23:31
|
||
|
|
||
21 | assert 'version = "2.0.38"' in (REF/'layer__pyproject.toml').read_text()
|
||
22 | for local in sorted(REF.glob('layer__*')):
|
||
23 | raw=local.read_bytes();entries.append(dict(local_file=local.name,registry_version='2.0.38',git_commit_binding='unknown',sha256…
|
||
| ^
|
||
24 | block=build()
|
||
25 | for e in block['sources']:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:26:47
|
||
|
|
||
24 | block=build()
|
||
25 | for e in block['sources']:
|
||
26 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
| ^
|
||
27 | (OUT/'source-check.json').write_text(json.dumps(dict(local_file_base='docs/hel-892/watermark-reference',files=entries,citations=le…
|
||
28 | print(f'PASS {len(entries)} exact local originals and {len(block["sources"])} citations; no upstream import')
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:28:101
|
||
|
|
||
26 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
27 | (OUT/'source-check.json').write_text(json.dumps(dict(local_file_base='docs/hel-892/watermark-reference',files=entries,citations=le…
|
||
28 | print(f'PASS {len(entries)} exact local originals and {len(block["sources"])} citations; no upstream import')
|
||
| ^^^^^^^^^^^^^
|
||
29 |
|
||
30 | if __name__=='__main__': main()
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/watermark-document-evidence/verify_sources.py:30:24
|
||
|
|
||
28 | print(f'PASS {len(entries)} exact local originals and {len(block["sources"])} citations; no upstream import')
|
||
29 |
|
||
30 | if __name__=='__main__': main()
|
||
| ^
|
||
|
||
Found 107 errors (5 fixed, 102 remaining).
|