E501 Line too long (104 > 100) --> calliope-backend/tests/test_director_replace_fixed_document.py:179:101 | 177 | @pytest.mark.parametrize("n",BLOCK["comments"],ids=lambda n:n["node_id"]) 178 | def test_complete_note_and_named_text(n): 179 | assert pointer(SOURCE,n["pointer"])==n["text"]==pointer(SOURCE,n["named_pointer"])==n["named_value"] | ^^^^ 180 | assert n["meaning"] | E501 Line too long (1112 > 100) --> docs/hel-892/director-replace-document-evidence/build_definition.py:14:101 | 12 | … 13 | … 14 | …idth', 'height', 'upscale_method', 'keep_proportio…ModelOnly': ['lora_name', 'strength_model']} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | … 16 | … | E501 Line too long (520 > 100) --> docs/hel-892/director-replace-document-evidence/build_definition.py:164:101 | 162 | … 163 | … 164 | …7758ccf1e': 'kjpatch', 'eb356e6cd5dedac54bb84bc54…4533032f': 'media85'}.get(version,"unknown") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165 | … 166 | … | E501 Line too long (174 > 100) --> docs/hel-892/director-replace-document-evidence/build_definition.py:526:72 | 524 | … 525 | … 526 | …3参考7231位置/216标准注释仅参考。local_file以docs/hel-892/director-replace-document-evidence为基准。"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 527 | …_fields=0, 528 | …f in fields), | E501 Line too long (107 > 100) --> docs/hel-892/director-replace-document-evidence/build_definition.py:529:101 | 527 | counts=dict(saved_fields=53,root_saved_fields=53,internal_saved_fields=0, 528 | linked_saved_fields=sum(f["role"]=="linked_saved_cache"for f in fields), 529 | boundary_saved_fields=0,frontend_only=sum(f["role"]=="frontend_reference_only"for f in fields), | ^^^^^^^ 530 | source_nodes=27,root_nodes=27,internal_nodes=0,physical_edges=42,source_notes=2, 531 | saved_objects=0,history_objects=0,final_scalars=0,final_prompt_constructed=False), | E501 Line too long (118 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:99:101 | 97 | assert (sc["nodes"],sc["edges"],sc["named_nodes"])==(27,42,22) 98 | assert sc["modes"].count(0)==26 and sc["modes"].count(4)==1 99 | assert {e["node"]for e in inv["empty"]}=={182,181,232,214,230} and all(e["state"]=="missing"for e in inv["empty"]) | ^^^^^^^^^^^^^^^^^^ 100 | for f,x in zip(block["fields"],inv["fields"],strict=True): 101 | assert f["pointer"]==x["pointer"] and f["json_type"]==x["json_type"] and f["scope"]=="root" | E702 Multiple statements on one line (semicolon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:105:47 | 103 | types=collections.Counter(x["json_type"]for x in inv["fields"]) 104 | assert types==dict(str=30,int=17,bool=4,NoneType=1,float=1) 105 | g=json.loads((REPO/PATHS[0]).read_bytes());ns={n["id"]:n for n in g["nodes"]} | ^ 106 | assert not g.get("definitions",{}).get("subgraphs") and g["extra"]["frontendVersion"]=="1.23.0" 107 | for eid,src,si,dst,di,typ in g["links"]: | E501 Line too long (803 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:109:101 | 107 | … 108 | … 109 | …1,0],486:[181,0,191,1],487:[214,3,191,2],510:[182…,203,5],596:[212,6,234,0],600:[212,0,203,6]} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 110 | … 111 | …[0]["links"]==[] | E501 Line too long (111 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:111:101 | 109 | assert {e[0]:e[1:5]for e in g["links"]}=={479:[186,0,181,1],481:[187,0,182,1],485:[199,0,191,0],486:[181,0,191,1],487:[214,3,191,… 110 | assert ns[212]["outputs"][0]["links"]==[600] and ns[212]["outputs"][1]["links"]==[] 111 | assert ns[211]["widgets_values"]==ns[210]["widgets_values"]==[False] and ns[211]["outputs"][0]["links"]==[] | ^^^^^^^^^^^ 112 | assert "links"not in ns[230]["outputs"][0] and ns[230]["outputs"][1]["links"]==[581,582] 113 | assert ns[233]["widgets_values"]==[8,"fixed"] and ns[233]["widgets_values_named"]==dict(value=8,fixed="fixed") | E501 Line too long (114 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:113:101 | 111 | assert ns[211]["widgets_values"]==ns[210]["widgets_values"]==[False] and ns[211]["outputs"][0]["links"]==[] 112 | assert "links"not in ns[230]["outputs"][0] and ns[230]["outputs"][1]["links"]==[581,582] 113 | assert ns[233]["widgets_values"]==[8,"fixed"] and ns[233]["widgets_values_named"]==dict(value=8,fixed="fixed") | ^^^^^^^^^^^^^^ 114 | assert ns[204]["widgets_values"]==[596023196572720,"fixed",None] and ns[229]["widgets_values"]==[0,"fixed"] 115 | assert ns[231]["widgets_values"]==[6,12,3,"dual_clock_euler","native_flow"] | E501 Line too long (111 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:114:101 | 112 | assert "links"not in ns[230]["outputs"][0] and ns[230]["outputs"][1]["links"]==[581,582] 113 | assert ns[233]["widgets_values"]==[8,"fixed"] and ns[233]["widgets_values_named"]==dict(value=8,fixed="fixed") 114 | assert ns[204]["widgets_values"]==[596023196572720,"fixed",None] and ns[229]["widgets_values"]==[0,"fixed"] | ^^^^^^^^^^^ 115 | assert ns[231]["widgets_values"]==[6,12,3,"dual_clock_euler","native_flow"] 116 | assert ns[199]["mode"]==4 and ns[199]["widgets_values"]==[1920,1920,"nvidia_rtx_vsr","resize","0, 0, 0","center",32,"cpu"] | E501 Line too long (126 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:116:101 | 114 | assert ns[204]["widgets_values"]==[596023196572720,"fixed",None] and ns[229]["widgets_values"]==[0,"fixed"] 115 | assert ns[231]["widgets_values"]==[6,12,3,"dual_clock_euler","native_flow"] 116 | assert ns[199]["mode"]==4 and ns[199]["widgets_values"]==[1920,1920,"nvidia_rtx_vsr","resize","0, 0, 0","center",32,"cpu"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 | raw=ns[213]["widgets_values"][-1];state=json.loads(raw) 118 | assert raw==ns[213]["widgets_values_named"]["track_data"] | E702 Multiple statements on one line (semicolon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:117:38 | 115 | assert ns[231]["widgets_values"]==[6,12,3,"dual_clock_euler","native_flow"] 116 | assert ns[199]["mode"]==4 and ns[199]["widgets_values"]==[1920,1920,"nvidia_rtx_vsr","resize","0, 0, 0","center",32,"cpu"] 117 | raw=ns[213]["widgets_values"][-1];state=json.loads(raw) | ^ 118 | assert raw==ns[213]["widgets_values_named"]["track_data"] 119 | assert (len(raw),raw.count("\r"),raw.count("\n"),raw.count("\\n"),raw.endswith("\n"),hashlib.sha256(raw.encode()).hexdigest())==(… | E501 Line too long (220 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:119:101 | 117 | … 118 | … 119 | …ib.sha256(raw.encode()).hexdigest())==(36884,0,0,415,False,"5f12646222dce32f28a62b9f9c2e7f739c49cbf5934bf4d051c3714f20f61480") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 120 | … 121 | … | E501 Line too long (144 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:124:101 | 122 | … 123 | … 124 | …,"apikey","authorization","access_token","password","secret"])and x:keys.append(p+"/"+k) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 125 | … 126 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:124:124 | 122 | … if isinstance(v,dict): 123 | … for k,x in v.items(): 124 | … if any(t in k.lower()for t in ["api_key","apikey","authorization","access_token","password","secret"])and x:keys.append… | ^ 125 | … scan(x,p+"/"+k) 126 | … elif isinstance(v,list): | E701 Multiple statements on one line (colon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:127:36 | 125 | scan(x,p+"/"+k) 126 | elif isinstance(v,list): 127 | for i,x in enumerate(v):scan(x,p+"/"+str(i)) | ^ 128 | scan(state);assert not keys 129 | assert state["muted"]is False and state["volume_db"]==0 and type(state["volume_db"])is int | E702 Multiple statements on one line (semicolon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:128:16 | 126 | elif isinstance(v,list): 127 | for i,x in enumerate(v):scan(x,p+"/"+str(i)) 128 | scan(state);assert not keys | ^ 129 | assert state["muted"]is False and state["volume_db"]==0 and type(state["volume_db"])is int 130 | assert len(state["task_markers"])==1 and state["task_markers"][0]["frame"]==192 | E501 Line too long (198 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:132:101 | 130 | … 131 | …"frame_rate"]==24 132 | …ments"])==1 and t["segments"][0]["start_frame"]==0 and t["segments"][0]["end_frame"]==360 for t in state["tracks"]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 133 | …47444ef"),238:(6,"a57b98fb2989a851996b90c93212e161c1c3de55af052f95d14d370e57578ef0")} 134 | … | E501 Line too long (133 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:137:101 | 135 | text=ns[nid]["widgets_values"][0] 136 | assert len(text)==length and hashlib.sha256(text.encode()).hexdigest()==digest 137 | assert text==ns[nid]["widgets_values_named"]["text"] and "\n"not in text and not ns[nid]["inputs"] and not ns[nid]["outputs"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 138 | compare=ns[234]["widgets_values"][0] 139 | assert type(compare)is str and len(compare)==57 and compare==ns[234]["widgets_values_named"]["compare_video"] | E501 Line too long (113 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:139:101 | 137 | assert text==ns[nid]["widgets_values_named"]["text"] and "\n"not in text and not ns[nid]["inputs"] and not ns[nid]["outputs"] 138 | compare=ns[234]["widgets_values"][0] 139 | assert type(compare)is str and len(compare)==57 and compare==ns[234]["widgets_values_named"]["compare_video"] | ^^^^^^^^^^^^^ 140 | assert json.loads(compare)==dict(save_output=False,filename_prefix="MiniMax/ComfyUI") and not ns[234]["outputs"] 141 | binds=block["node_bindings"] | E501 Line too long (116 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:140:101 | 138 | compare=ns[234]["widgets_values"][0] 139 | assert type(compare)is str and len(compare)==57 and compare==ns[234]["widgets_values_named"]["compare_video"] 140 | assert json.loads(compare)==dict(save_output=False,filename_prefix="MiniMax/ComfyUI") and not ns[234]["outputs"] | ^^^^^^^^^^^^^^^^ 141 | binds=block["node_bindings"] 142 | assert len(binds)==25 and all(len(e["candidates"])==1 for e in binds) | E501 Line too long (118 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:143:101 | 141 | binds=block["node_bindings"] 142 | assert len(binds)==25 and all(len(e["candidates"])==1 for e in binds) 143 | def text(key,file):return (REF/next(e["local_file"]for e in rows if e["id"]==key and e["file"]==file)).read_text() | ^^^^^^^^^^^^^^^^^^ 144 | t8=text("t8","nodes.py");cl=t8.split("class MiniMaxH3DualClockSamplerT8")[1].split("class MiniMaxH3AudioT8Extension")[0] 145 | assert 'sampler_name'not in cl and 'scheduler'not in cl and 'setup_dual_clock_sampling'in cl | E702 Multiple statements on one line (semicolon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:144:29 | 142 | assert len(binds)==25 and all(len(e["candidates"])==1 for e in binds) 143 | def text(key,file):return (REF/next(e["local_file"]for e in rows if e["id"]==key and e["file"]==file)).read_text() 144 | t8=text("t8","nodes.py");cl=t8.split("class MiniMaxH3DualClockSamplerT8")[1].split("class MiniMaxH3AudioT8Extension")[0] | ^ 145 | assert 'sampler_name'not in cl and 'scheduler'not in cl and 'setup_dual_clock_sampling'in cl 146 | assert 'MiniMaxH3DualClockSamplerT8,'in t8.split('class MiniMaxH3AudioT8Extension')[1] | E501 Line too long (124 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:144:101 | 142 | assert len(binds)==25 and all(len(e["candidates"])==1 for e in binds) 143 | def text(key,file):return (REF/next(e["local_file"]for e in rows if e["id"]==key and e["file"]==file)).read_text() 144 | t8=text("t8","nodes.py");cl=t8.split("class MiniMaxH3DualClockSamplerT8")[1].split("class MiniMaxH3AudioT8Extension")[0] | ^^^^^^^^^^^^^^^^^^^^^^^^ 145 | assert 'sampler_name'not in cl and 'scheduler'not in cl and 'setup_dual_clock_sampling'in cl 146 | assert 'MiniMaxH3DualClockSamplerT8,'in t8.split('class MiniMaxH3AudioT8Extension')[1] | E501 Line too long (160 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:149:101 | 147 | …sampling.py") 148 | … 149 | …anup, _dit_swap_names, _dit_all_swls = install_block_swap'in text("swap","uniblockswap_node.py") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 150 | … 151 | …})'in cmp and 'settings.get("save_output") is True'in cmp | E501 Line too long (121 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:151:101 | 149 | assert 'return None, lambda: None, set()'in sw and 'mgr, cleanup, _dit_swap_names, _dit_all_swls = install_block_swap'in text("sw… 150 | cmp=text("mediaeditor","nodes/video.py") 151 | assert 'return io.NodeOutput(ui={"compare_videos": [payload]})'in cmp and 'settings.get("save_output") is True'in cmp | ^^^^^^^^^^^^^^^^^^^^^ 152 | front=text("mediaeditor","frontend/src/index.ts");comp=text("mediaeditor","frontend/src/components/widgets/compareVideoWidget.tsx… 153 | assert 'save_output: true'in front and 'save_output: false'in comp | E702 Multiple statements on one line (semicolon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:152:54 | 150 | cmp=text("mediaeditor","nodes/video.py") 151 | assert 'return io.NodeOutput(ui={"compare_videos": [payload]})'in cmp and 'settings.get("save_output") is True'in cmp 152 | front=text("mediaeditor","frontend/src/index.ts");comp=text("mediaeditor","frontend/src/components/widgets/compareVideoWidget.tsx… | ^ 153 | assert 'save_output: true'in front and 'save_output: false'in comp 154 | assert 'widget.serializeValue = () => currentValue'in text("mediaeditor","frontend/src/lib/create-react-widget.ts") | E501 Line too long (119 > 100) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:154:101 | 152 | front=text("mediaeditor","frontend/src/index.ts");comp=text("mediaeditor","frontend/src/components/widgets/compareVideoWidget.tsx… 153 | assert 'save_output: true'in front and 'save_output: false'in comp 154 | assert 'widget.serializeValue = () => currentValue'in text("mediaeditor","frontend/src/lib/create-react-widget.ts") | ^^^^^^^^^^^^^^^^^^^ 155 | prim=text("core0300","comfy_extras/nodes_primitive.py") 156 | assert 'control_after_generate=io.ControlAfterGenerate.fixed'in prim | E701 Multiple statements on one line (colon) --> docs/hel-892/director-replace-document-evidence/verify_sources.py:165:24 | 163 | print("PASS53 positions/named,2Note,42edges,25exact,36884state/57compare; static only") 164 | 165 | if __name__=="__main__":main() | ^ Found 31 errors (1 fixed, 30 remaining).