350 lines
19 KiB
Plaintext
350 lines
19 KiB
Plaintext
E501 Line too long (117 > 100)
|
||
--> calliope-backend/tests/test_qwen21_control_fixed_document.py:165:101
|
||
|
|
||
163 | def test_current_four_boundaries_and_active_chain():
|
||
164 | assert [b["host_node_id"] for b in BLOCK["boundaries"]] == ["504", "677", "683", "696"]
|
||
165 | assert [(len(b["inputs"]), len(b["links"])) for b in BLOCK["boundaries"]] == [(5, 8), (14, 16), (5, 8), (28, 58)]
|
||
| ^^^^^^^^^^^^^^^^^
|
||
166 | assert BLOCK["counts"]["root_saved_fields"] == 53 and BLOCK["counts"]["internal_saved_fields"] == 69
|
||
167 | assert all(not b["proxy_widgets_present"] and b["definition_widgets"] == [] for b in BLOCK["boundaries"])
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> calliope-backend/tests/test_qwen21_control_fixed_document.py:166:101
|
||
|
|
||
164 | assert [b["host_node_id"] for b in BLOCK["boundaries"]] == ["504", "677", "683", "696"]
|
||
165 | assert [(len(b["inputs"]), len(b["links"])) for b in BLOCK["boundaries"]] == [(5, 8), (14, 16), (5, 8), (28, 58)]
|
||
166 | assert BLOCK["counts"]["root_saved_fields"] == 53 and BLOCK["counts"]["internal_saved_fields"] == 69
|
||
| ^^^^
|
||
167 | assert all(not b["proxy_widgets_present"] and b["definition_widgets"] == [] for b in BLOCK["boundaries"])
|
||
168 | assert any("1799是中转数据链" in v for v in BLOCK["steps"])
|
||
|
|
||
|
||
E501 Line too long (109 > 100)
|
||
--> calliope-backend/tests/test_qwen21_control_fixed_document.py:167:101
|
||
|
|
||
165 | assert [(len(b["inputs"]), len(b["links"])) for b in BLOCK["boundaries"]] == [(5, 8), (14, 16), (5, 8), (28, 58)]
|
||
166 | assert BLOCK["counts"]["root_saved_fields"] == 53 and BLOCK["counts"]["internal_saved_fields"] == 69
|
||
167 | assert all(not b["proxy_widgets_present"] and b["definition_widgets"] == [] for b in BLOCK["boundaries"])
|
||
| ^^^^^^^^^
|
||
168 | assert any("1799是中转数据链" in v for v in BLOCK["steps"])
|
||
169 | assert any("slots24..27" in v and "有效" in v for v in BLOCK["steps"])
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> calliope-backend/tests/test_qwen21_control_fixed_document.py:175:101
|
||
|
|
||
173 | assert fields["696:500", "use_default_template"]["value"] is False
|
||
174 | assert fields["504:5", "output"]["value"] == fields["683:682", "output"]["value"] == "mask"
|
||
175 | assert fields["504", "output"]["value"] == "depth" and fields["683", "output"]["value"] == "normal_opengl"
|
||
| ^^^^^^^^^^
|
||
176 | assert len(fields["505", "rgthree_comparer"]["value"]) == 2
|
||
177 | assert fields["505", "rgthree_comparer"]["named_value"]["img"] == {}
|
||
|
|
||
|
||
E501 Line too long (2326 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:313:101
|
||
|
|
||
313 | …input_color_space'], 'LoadImage': ['image', 'uplo…'thinking', 'use_default_template', 'mtp']})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
314 | …
|
||
315 | …
|
||
|
|
||
|
||
E501 Line too long (127 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:323:101
|
||
|
|
||
321 | g = json.loads(raw)
|
||
322 | editorial = json.loads((OUT / "editorial.json").read_bytes())
|
||
323 | host_ids = {d["id"]: str(next(n["id"] for n in g["nodes"] if n["type"] == d["id"])) for d in g["definitions"]["subgraphs"]}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
324 | scopes = [("", "", g)] + [(host_ids[d["id"]], f"/definitions/subgraphs/{i}", d) for i, d in enumerate(g["definitions"]["subgraphs…
|
||
325 | nodes = [
|
||
|
|
||
|
||
E501 Line too long (137 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:324:101
|
||
|
|
||
322 | …ead_bytes())
|
||
323 | …"nodes"] if n["type"] == d["id"])) for d in g["definitions"]["subgraphs"]}
|
||
324 | …definitions/subgraphs/{i}", d) for i, d in enumerate(g["definitions"]["subgraphs"])]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
325 | …
|
||
326 | …tr + f"/nodes/{i}", pre or "root", n)
|
||
|
|
||
|
||
E501 Line too long (132 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:397:101
|
||
|
|
||
395 | p
|
||
396 | for p in trees[e["local_file"]].body
|
||
397 | if isinstance(p, ast.ClassDef) and p.name == ("LoraLoader" if cls == "LoraLoaderModelOnly" else "SaveImage")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
398 | )
|
||
399 | sources.append(
|
||
|
|
||
|
||
E501 Line too long (135 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:408:101
|
||
|
|
||
406 | … rs.append(len(sources) - 1)
|
||
407 | … for call in ast.walk(c):
|
||
408 | … if isinstance(call, ast.Call) and isinstance(call.func, ast.Name) and call.func.id == "define_preprocessor_inputs":
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
409 | … for kw in call.keywords:
|
||
410 | … if isinstance(kw.value, ast.Call):
|
||
|
|
||
|
||
E501 Line too long (147 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:411:101
|
||
|
|
||
409 | …
|
||
410 | …ll):
|
||
411 | …e(k.value) for k in kw.value.keywords if k.arg == "default"), "准确helper缺省见utils.py")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
412 | …fault, ast.unparse(kw.value))
|
||
413 | …
|
||
|
|
||
|
||
E501 Line too long (139 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:689:83
|
||
|
|
||
687 | … 单位或实际效果"
|
||
688 | …== "MoGeInference":
|
||
689 | … name == "fov_x_degrees" else "接口计数/布尔;范围与条件按准确schema,不执行几何推理"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
690 | …
|
||
691 | …n0/max16384/step1,FLOAT默认0/min0/max1/step0.01,RESOLUTION默认512/min64/max16384/step64;显式参数覆盖helper缺省;不执行预处理。"
|
||
|
|
||
|
||
E501 Line too long (184 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:691:94
|
||
|
|
||
689 | …s" else "接口计数/布尔;范围与条件按准确schema,不执行几何推理"
|
||
690 | …
|
||
691 | …AT默认0/min0/max1/step0.01,RESOLUTION默认512/min64/max16384/step64;显式参数覆盖helper缺省;不执行预处理。"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
692 | …
|
||
693 | …
|
||
|
|
||
|
||
E501 Line too long (149 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:694:79
|
||
|
|
||
692 | …esolution":
|
||
693 | …
|
||
694 | …name == "resolution" else "预处理接口选择/阈值/数量,按准确helper及类定义,不保证图像效果"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
695 | … "seed_control_candidate" else name
|
||
696 | …
|
||
|
|
||
|
||
E501 Line too long (386 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:760:101
|
||
|
|
||
758 | …
|
||
759 | …
|
||
760 | …idgets"], proxy_widgets_present="proxyWidgets" in…in scopes[1:]]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
761 | …
|
||
762 | …
|
||
|
|
||
|
||
E501 Line too long (162 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/build_definition.py:772:66
|
||
|
|
||
770 | …
|
||
771 | …,
|
||
772 | … 704 mode4未接。准确版本逐节点核准,缺类不借后版;目标环境、宿主恢复与真实效果未核,资格不变。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
773 | …
|
||
774 | …
|
||
|
|
||
|
||
E501 Line too long (364 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/fetch_release.py:54:101
|
||
|
|
||
52 | …
|
||
53 | …
|
||
54 | …"node_wrappers/canny.py", "src/custom_controlnet_aux/teed/__init__.py", "src/custom_controlnet_aux/teed/LICENSE.txt", "src/custom_controlnet_aux/lineart_standard/__init__.py", "src/custom_controlnet_aux/canny/__init__.py", "LICENSE.txt", "pyproject.toml", "utils.py"]),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
55 | …
|
||
56 | …
|
||
|
|
||
|
||
E501 Line too long (144 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:105:101
|
||
|
|
||
103 | …1d046907525b8cb01758fb804b5f4aa11275e"
|
||
104 | …]) == 3
|
||
105 | …or v in inv["scopes"]] == [(17, 15, 14), (3, 8, 3), (4, 16, 4), (3, 8, 3), (15, 58, 13)]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
106 | …
|
||
107 | …es"][1:])
|
||
|
|
||
|
||
E501 Line too long (178 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:108:101
|
||
|
|
||
106 | …
|
||
107 | …
|
||
108 | …"ends_with_lf"]) for n in inv["notes"]] == [(1248, 22, 0, False), (2569, 51, 0, True), (36, 0, 0, False)]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | …
|
||
110 | …
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:119:101
|
||
|
|
||
118 | for a, f in zip(inv["fields"], block["fields"], strict=True):
|
||
119 | assert (a["pointer"], a["json_type"], canonical(a["value"])) == (f["pointer"], f["json_type"], canonical(f["value"]))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
120 | assert canonical(pointer(g, f["named_pointer"])) == canonical(f["named_value"])
|
||
121 | if f["node_id"] != "505":
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:130:101
|
||
|
|
||
128 | eid, a, ao, z, zi, _ = edge
|
||
129 | else:
|
||
130 | eid, a, ao, z, zi = [edge[k] for k in ["id", "origin_id", "origin_slot", "target_id", "target_slot"]]
|
||
| ^^^^^^^^^^^^^^^^^
|
||
131 | if a >= 0:
|
||
132 | assert eid in ns[a]["outputs"][ao]["links"]
|
||
|
|
||
|
||
E501 Line too long (134 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:139:101
|
||
|
|
||
137 | else:
|
||
138 | assert eid in graph["outputs"][zi]["linkIds"]
|
||
139 | assert [sum(f["scope"] == scope for f in block["fields"]) for scope in ["root", "504", "677", "683", "696"]] == [53, 8, 13, 8, 40]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
140 | ns = {n["id"]: n for n in g["nodes"]}
|
||
141 | for nid in [504, 677, 683, 689]:
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:149:101
|
||
|
|
||
147 | assert ns[690]["outputs"][0]["links"] == [1782] and ns[690]["outputs"][1]["links"] == [1783]
|
||
148 | main = g["definitions"]["subgraphs"][3]
|
||
149 | assert len(main["inputs"]) == len(ns[696]["inputs"]) == 28 and len(ns[696]["widgets_values"]) == 18
|
||
| ^^^
|
||
150 | assert "proxyWidgets" not in ns[696] and main["widgets"] == []
|
||
151 | assert [e["origin_slot"] for e in main["links"] if e["id"] in [784, 785, 786, 787]] == [24, 25, 26, 27]
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:151:101
|
||
|
|
||
149 | assert len(main["inputs"]) == len(ns[696]["inputs"]) == 28 and len(ns[696]["widgets_values"]) == 18
|
||
150 | assert "proxyWidgets" not in ns[696] and main["widgets"] == []
|
||
151 | assert [e["origin_slot"] for e in main["links"] if e["id"] in [784, 785, 786, 787]] == [24, 25, 26, 27]
|
||
| ^^^^^^^
|
||
152 | fields = {(f["node_id"], f["field"]): f for f in block["fields"]}
|
||
153 | text = fields["696:479", "value"]["value"]
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:154:101
|
||
|
|
||
152 | fields = {(f["node_id"], f["field"]): f for f in block["fields"]}
|
||
153 | text = fields["696:479", "value"]["value"]
|
||
154 | assert (len(text), text.count("\n"), text.count("\\n"), text.endswith("\n")) == (10494, 77, 0, False)
|
||
| ^^^^^
|
||
155 | assert hashlib.sha256(text.encode()).hexdigest() == "eaff356cd2bdbcfd1aaf20502b5ccd8cbad16fa6e9afe41e3166eeee299c8e59"
|
||
156 | assert fields["696:500", "thinking"]["value"] is True and fields["696:500", "use_default_template"]["value"] is False
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:155:101
|
||
|
|
||
153 | text = fields["696:479", "value"]["value"]
|
||
154 | assert (len(text), text.count("\n"), text.count("\\n"), text.endswith("\n")) == (10494, 77, 0, False)
|
||
155 | assert hashlib.sha256(text.encode()).hexdigest() == "eaff356cd2bdbcfd1aaf20502b5ccd8cbad16fa6e9afe41e3166eeee299c8e59"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
156 | assert fields["696:500", "thinking"]["value"] is True and fields["696:500", "use_default_template"]["value"] is False
|
||
157 | assert type(fields["696:500", "sampling_mode.temperature"]["value"]) is int
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:156:101
|
||
|
|
||
154 | assert (len(text), text.count("\n"), text.count("\\n"), text.endswith("\n")) == (10494, 77, 0, False)
|
||
155 | assert hashlib.sha256(text.encode()).hexdigest() == "eaff356cd2bdbcfd1aaf20502b5ccd8cbad16fa6e9afe41e3166eeee299c8e59"
|
||
156 | assert fields["696:500", "thinking"]["value"] is True and fields["696:500", "use_default_template"]["value"] is False
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
157 | assert type(fields["696:500", "sampling_mode.temperature"]["value"]) is int
|
||
158 | binds = {n["node_id"]: n for n in block["node_bindings"]}
|
||
|
|
||
|
||
E501 Line too long (108 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:161:101
|
||
|
|
||
159 | assert binds["677"]["source_version"] == "0.15.1"
|
||
160 | for nid in ["677:671", "677:674", "677:672"]:
|
||
161 | assert binds[nid]["source_version"] == "0.15.0" and binds[nid]["source_id"] == "unresolved-core0150"
|
||
| ^^^^^^^^
|
||
162 | assert all("未知" in f["schema_default"] and "未知" in f["unit"] for f in block["fields"] if f["node_id"] == nid)
|
||
163 | assert binds["677:673"]["source_id"] == "core0150"
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:162:97
|
||
|
|
||
160 | for nid in ["677:671", "677:674", "677:672"]:
|
||
161 | assert binds[nid]["source_version"] == "0.15.0" and binds[nid]["source_id"] == "unresolved-core0150"
|
||
162 | assert all("未知" in f["schema_default"] and "未知" in f["unit"] for f in block["fields"] if f["node_id"] == nid)
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
163 | assert binds["677:673"]["source_id"] == "core0150"
|
||
164 | assert all(binds[n]["source_id"] == "core0380" for n in ["504:1", "504:2", "504:5", "683:680", "683:681", "683:682", "698", "696:…
|
||
|
|
||
|
||
E501 Line too long (168 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:164:101
|
||
|
|
||
162 | …it"] for f in block["fields"] if f["node_id"] == nid)
|
||
163 | …
|
||
164 | …, "504:2", "504:5", "683:680", "683:681", "683:682", "698", "696:474", "696:469", "696:485", "461"])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
165 | …source_id"] == binds["689"]["source_id"] == "aux"
|
||
166 | …cks, positions=122, standard_notes=3, scopes=inv["scopes"], source_edges_verified=105, upstream_executed=False), ensure_ascii=False,…
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:165:101
|
||
|
|
||
163 | assert binds["677:673"]["source_id"] == "core0150"
|
||
164 | assert all(binds[n]["source_id"] == "core0380" for n in ["504:1", "504:2", "504:5", "683:680", "683:681", "683:682", "698", "696:…
|
||
165 | assert binds["505"]["source_id"] == "rgthree" and binds["701"]["source_id"] == binds["689"]["source_id"] == "aux"
|
||
| ^^^^^^^^^^^^^^^^^
|
||
166 | (OUT / "source-check.json").write_text(json.dumps(dict(files=checks, positions=122, standard_notes=3, scopes=inv["scopes"], sourc…
|
||
167 | (OUT / "node-version-bindings.json").write_text(json.dumps(block["node_bindings"], ensure_ascii=False, indent=2) + "\n")
|
||
|
|
||
|
||
E501 Line too long (218 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:166:101
|
||
|
|
||
164 | …680", "683:681", "683:682", "698", "696:474", "696:469", "696:485", "461"])
|
||
165 | …"]["source_id"] == "aux"
|
||
166 | …ard_notes=3, scopes=inv["scopes"], source_edges_verified=105, upstream_executed=False), ensure_ascii=False, indent=2) + "\n")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
167 | …_ascii=False, indent=2) + "\n")
|
||
168 | …
|
||
|
|
||
|
||
E501 Line too long (124 > 100)
|
||
--> docs/hel-892/qwen21-control-document-evidence/verify_sources.py:167:101
|
||
|
|
||
165 | assert binds["505"]["source_id"] == "rgthree" and binds["701"]["source_id"] == binds["689"]["source_id"] == "aux"
|
||
166 | (OUT / "source-check.json").write_text(json.dumps(dict(files=checks, positions=122, standard_notes=3, scopes=inv["scopes"], sourc…
|
||
167 | (OUT / "node-version-bindings.json").write_text(json.dumps(block["node_bindings"], ensure_ascii=False, indent=2) + "\n")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||
168 | print("PASS exact sources,122 positions/dual named,3 notes,105 edges/four boundaries")
|
||
|
|
||
|
||
Found 32 errors.
|