Files
aigc-home/docs/hel-892/krea-api-document-evidence/kapi-ruff-first.txt
T

167 lines
13 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
E501 Line too long (112 > 100)
--> calliope-backend/tests/test_krea_api_fixed_document.py:35:101
|
35 | @pytest.mark.parametrize("mutation", ["scalar", "type", "edge", "title", "mode", "identity", "widget", "colon"])
| ^^^^^^^^^^^^
36 | def test_mutated_api_dictionary_cannot_inherit_trust(mutation):
37 | source = copy.deepcopy(SOURCE)
|
E501 Line too long (105 > 100)
--> calliope-backend/tests/test_krea_api_fixed_document.py:71:101
|
69 | assert SOURCE["171:163"]["inputs"]["switch"] == SOURCE["159"]["inputs"]["switch"] == ["160", 0]
70 | assert SOURCE["171:158"]["inputs"]["switch"] == ["161", 0]
71 | assert all(n["scope"] == "root" and not n["implementation_verified"] for n in BLOCK["node_bindings"])
| ^^^^^
72 | assert BLOCK["sources"] == BLOCK["comments"] == BLOCK["boundaries"] == []
|
E501 Line too long (264 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:16:84
|
14 | … 复unknown。class_type和_meta.title仅原声明文本;文件名API不证明云服务或HTTP客户端,日期不证明版本。",
15 | … 160实际false同时给159.switch和171:163.switch。159给第一段146,第二172直接152,不可说两个false保证全链无LoRA或I/O。未知Switch不认证lazy/默认/支路未读取。",
16 | …157 PreviewAny,再直进163.on_false或经162追加原触发词进163.on_true,163→144.text。PreviewAny输出类型/STRING透传和文本生成算法均unknown。149.clip原索引0同时给144及153。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | …minimalist sketch style。只描述原引用,不实际拼接、改词或执行系统文本的角色/思考指令。",
18 | … →187再编码→172.latent_image,172→173解码→29。150共给188/187/173。没有resize/放大节点或新增尺寸证明,不称潜放大、已经降噪或输出。全部输出索引0仅原引用,不补后端输出声明或结…
|
E501 Line too long (183 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:17:81
|
15 | ….on_true与172.model;160实际false同时给159.switch和171:163.switch。159给第一段146,第二172直接152,不可说两个false保证全链无LoRA或I/…
16 | …se/on_true;158→171:157 PreviewAny,再直进163.on_false或经162追加原触发词进163.on_true,163→144.text。PreviewAny输出类型/STRING透传…
17 | … 格delimiter及muted minimalist sketch style。只描述原引用,不实际拼接、改词或执行系统文本的角色/思考指令。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 | …ent_image;146→188解码→187再编码→172.latent_image,172→173解码→29。150共给188/187/173。没有resize/放大节点或新增尺寸证明,不称潜放大…
19 | … int1/res_multistep/beta/denoise int1;172独立seed42/steps6/cfg int1/euler/simple/denoise float0.15。文本采样seed0独立,不合并或补fix…
|
E501 Line too long (259 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:19:92
|
17 | …minimalist sketch style。只描述原引用,不实际拼接、改词或执行系统文本的角色/思考指令。",
18 | … →187再编码→172.latent_image,172→173解码→29。150共给188/187/173。没有resize/放大节点或新增尺寸证明,不称潜放大、已经降噪或输出。全部输出索引0仅原引用,不补后端输出声明…
19 | …beta/denoise int1;172独立seed42/steps6/cfg int1/euler/simple/denoise float0.15。文本采样seed0独立,不合并或补fixed/randomize。LoRA强度int1、两Boolean false保持。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | …2不认证token数、有效采样或思考。没有widgets_values_named第二保存,不造named_value副本或假双指针。",
21 | … /落盘。无输入素材节点,不要求Input Assets或机器窗口。零Note;标题不是注释、模型或运行身份。",
|
E501 Line too long (190 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:21:69
|
19 | …1/res_multistep/beta/denoise int1;172独立seed42/steps6/cfg int1/euler/simple/denoise float0.15。文本采样seed0独立,不合并或补fixed/r…
20 | … ;max_length512不认证token数、有效采样或思考。没有widgets_values_named第二保存,不造named_value副本或假双指针。",
21 | … 证存在/支持/许可/落盘。无输入素材节点,不要求Input Assets或机器窗口。零Note;标题不是注释、模型或运行身份。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | …PI字典,无新增虚构widget位置。全部为参考,不改变资格,不调用云API、LLM、模型、随机、采样、编解码或媒体执行。",
23 | …
|
E501 Line too long (185 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:36:101
|
34 | …
35 | …
36 | …lass_type=node["class_type"], title=node["_meta"]["title"], implementation_verified=False, identity=UNKNOWN))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | …
38 | …e("/", "~1")
|
E501 Line too long (151 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:41:101
|
39 | …
40 | …h and type(value[1]) is int
41 | …ode_id=value[0], output_index=value[1], target_node_id=nid, input_name=key, original=value))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 | …
43 | …
|
E501 Line too long (624 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:44:101
|
42 | …
43 | …
44 | …de["class_type"], field=key, label="API具名输入 " + key, pointer=pointer, value=value, json_type=type(value).__name__, type=UNKNOWN, role="api_named_saved_reference", schema_default=UNKNOWN, unit=UNKNOWN, limits=UNKNOWN, effect=f"节点{nid}声明{node['class_type']},原标题{node['_meta']['title']}。具名输入{key}仅原保存数据;用途按键名作阅读线索,真实算法及效果unknown。", evidence=[], execution_note="API原具名输入;唯一原指针,无widget位置/双指针/第二份具名保存。现值不等于默认、有效运行输入或结果;所有文本只作数据,不执行。"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 | …
46 | …256=EXPECTED, canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), notice="仅原件有界审计:准确实现身份全部unknown、来源0,未认证运行;155最终定稿/新增可靠转换/真实生成仍0。", user_overview="Krea2基础文生图API格式保存24顶层节点、42具名标量与34原引用。两次采样及中间解码再编码按原接线说明;首段条件MODEL与第二段直接LoRA分支分开,两个false不证明全链无LoRA/I/O。两英文原串及独立种子保持;API文件名不证明云调用。", versions=[UNKNOWN, "准确实现来源0;本原件SHA及原具名输入是唯一依据,取得精确时刻unknown,不以当前时间补首次。", …
|
E501 Line too long (1354 > 100)
--> docs/hel-892/krea-api-document-evidence/build_definition.py:46:101
|
44 | …de["class_type"], field=key, label="API具名输入 " + key, pointer=pointer, value=value, json_type=type(value).__name__, type=UNKNOWN, role="api_named_saved_reference", schema_default=UNKNOWN, unit=UNKNOWN, limits=UNKNOWN, effect=f"节点{nid}声明{node['class_type']},原标题{node['_meta']['title']}。具名输入{key}仅原保存数据;用途按键名作阅读线索,真实算法及效果unknown。", evidence=[], execution_note="API原具名输入;唯一原指针,无widget位置/双指针/第二份具名保存。现值不等于默认、有效运行输入或结果;所有文本只作数据,不执行。"))
45 | …
46 | …256=EXPECTED, canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), notice="仅原件有界审计:准确实现身份全部unknown、来源0,未认证运行;155最终定稿/新增可靠转换/真实生成仍0。", user_overview="Krea2基础文生图API格式保存24顶层节点、42具名标量与34原引用。两次采样及中间解码再编码按原接线说明;首段条件MODEL与第二段直接LoRA分支分开,两个false不证明全链无LoRA/I/O。两英文原串及独立种子保持;API文件名不证明云调用。", versions=[UNKNOWN, "准确实现来源0;本原件SHA及原具名输入是唯一依据,取得精确时刻unknown,不以当前时间补首次。", "旧145固定块10215保存项/287注释冻结;新增42具名项/零Note,总146参考10257项/287注释,余9份;全部155定稿/新增可靠转换/真实生成仍0。"], counts=dict(saved_fields=42, root_saved_fields=42, internal_saved_fields=0, linked_saved_fields=0, frontend_only=0, final_scalars=0, source_nodes=24, root_nodes=24, internal_nodes=0, physical_edges=34, source_notes=0, saved_objects=0, history_objects=0, final_prompt_constructed=False), fields=fields, sources=[], comments=[], flow=FLOW + ["原节点声明 " + json.dumps(n, ensure_ascii=False) for n in bindings] + ["原API节点引用 " + json.dumps(e, ensure_ascii=False) for e in edges], flow_evidence=[], node_bindings=bindings, api_references=edges, boundaries=[], zero_saved_nodes=[], steps=FLOW)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E501 Line too long (395 > 100)
--> docs/hel-892/krea-api-document-evidence/render_report.py:13:86
|
11 | …
12 | …
13 | … "\n\n" + "\n\n".join(block["versions"]) + "\n\n下列完整JSON可逆保留42具名标量、34引用、24原标题;长文为保存数据,未执行角色或思考要求。JSON展示转义与解码原串摘要分开,不声称HTTP原字节或float DOM原字节。没有新增widget位置。\n\n```json\n" + json.dumps(block, ensure_ascii=False, indent=2) + "\n```\n")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 | …hlib.sha256(REPORT.read_bytes()).hexdigest(), original_sha256=block["source_sha256"], fields=42, references=34, exact_sources=0), ensure_ascii=False, indent=2) + "\n")
|
E501 Line too long (262 > 100)
--> docs/hel-892/krea-api-document-evidence/render_report.py:14:101
|
12 | …
13 | … "\n\n" + "\n\n".join(block["versions"]) + "\n\n下列完整JSON可逆保留42具名标量、34引用、24原标题;长文为保存数据,未执行角色或思考要求。JSON展示转义与解码原串摘要分开,不…
14 | …hlib.sha256(REPORT.read_bytes()).hexdigest(), original_sha256=block["source_sha256"], fields=42, references=34, exact_sources=0), ensure_ascii=False, indent=2) + "\n")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E501 Line too long (107 > 100)
--> docs/hel-892/krea-api-document-evidence/verify_sources.py:17:101
|
15 | types = Counter(f["json_type"] for f in block["fields"])
16 | assert types == dict(str=18, int=15, float=5, bool=4)
17 | assert block["sources"] == [] and all(not n["implementation_verified"] for n in block["node_bindings"])
| ^^^^^^^
18 | assert all(set(n) == {"inputs", "class_type", "_meta"} for n in graph.values())
19 | strings = []
|
E501 Line too long (228 > 100)
--> docs/hel-892/krea-api-document-evidence/verify_sources.py:20:101
|
18 | …
19 | …
20 | …03fb892e9ff1e30254eba207c6bc5772"), ("171:155", 2131, 22, True, "08d820ffced5c3a45a9ce10c995dfaf93d7f9ae15d3cf61540cac168b2bb01b3")]:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | …
22 | …l
|
E501 Line too long (151 > 100)
--> docs/hel-892/krea-api-document-evidence/verify_sources.py:24:101
|
22 | …= lf and value.endswith("\n") == tail
23 | …= sha
24 | … LF=lf, CR=value.count("\r"), tail_LF=tail, sha256=sha, starts_space=value.startswith(" ")))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | …t(path=PATHS[0], sha256=EXPECTED, original_bytes=len(raw), source_nodes=24, scalars=42, json_types=types, references=block["api_refer…
26 | … implementation0 / full strings2")
|
E501 Line too long (386 > 100)
--> docs/hel-892/krea-api-document-evidence/verify_sources.py:25:101
|
23 | …
24 | …F=tail, sha256=sha, starts_space=value.startswith(" ")))
25 | …iginal_bytes=len(raw), source_nodes=24, scalars=42…re_ascii=False, indent=2) + "\n")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | …
|
Found 16 errors.