267 lines
9.9 KiB
Plaintext
267 lines
9.9 KiB
Plaintext
E501 Line too long (102 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:218:101
|
||
|
|
||
216 | if e["id"] == key and "image_comparer" in e["file"]
|
||
217 | ]
|
||
218 | # SaveImage/PreviewImage inherited return/UI behavior is a separate accurate core binding.
|
||
| ^^
|
||
219 | refs += [
|
||
220 | j
|
||
|
|
||
|
||
E501 Line too long (108 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:268:82
|
||
|
|
||
266 | unit = "像素请求缓存;本图由112经30/31覆盖,非最终尺寸保证"
|
||
267 | if name == "megapixels":
|
||
268 | unit = "准确实现MP基数1024×1024目标像素;源JSON int1与FLOAT default1.0分开,不计算/保证像素"
|
||
| ^^^^^^^
|
||
269 | if name in ("multiple", "resolution_steps"):
|
||
270 | unit = "像素对齐步长;准确实现round就近倍数条件,不试算尺寸"
|
||
|
|
||
|
||
E501 Line too long (106 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:279:84
|
||
|
|
||
277 | if name == "seed_control_candidate":
|
||
278 | default = "准确frontend1.45.19种子辅助缺省randomize"
|
||
279 | limits = "fixed/increment/decrement/randomize;前端控制不作后端seed参数,不执行随机或恢复"
|
||
| ^^^^^
|
||
280 | unit = "前端控制枚举,无物理单位"
|
||
281 | if name == "upload":
|
||
|
|
||
|
||
E501 Line too long (109 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:289:78
|
||
|
|
||
287 | if name == "comparison_history":
|
||
288 | default = "未知:前端已序列化历史列表,无独立后端widget默认"
|
||
289 | limits = "准确rgthree属性Slide及历史两对象全文;URL只作数据,不GET /api/view,不冒充本次产物"
|
||
| ^^^^^^^^^
|
||
290 | unit = "两个对象的完整JSON列表/布尔/URL文本;无像素或时间单位"
|
||
291 | if cls == "CLIPLoader" and name == "type":
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:292:85
|
||
|
|
||
290 | unit = "两个对象的完整JSON列表/布尔/URL文本;无像素或时间单位"
|
||
291 | if cls == "CLIPLoader" and name == "type":
|
||
292 | limits += ";准确0.26.0枚举包含krea2;load_clip仍有getattr fallback,不从枚举或fallback认证目标支持/兼容"
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
293 | if cls == "Krea2EditModelPatch" and name == "ref_boost":
|
||
294 | limits += (
|
||
|
|
||
|
||
E501 Line too long (120 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/build_definition.py:302:90
|
||
|
|
||
300 | )
|
||
301 | if cls == "ImageScaleToTotalPixels" and name == "upscale_method":
|
||
302 | limits += ";类枚举nearest-exact/bilinear/area/bicubic/lanczos;裁剪disabled;不从无显式default认证恢复"
|
||
| ^^^^^^^^^^^^^^^^^^^^
|
||
303 | fields.append(
|
||
304 | dict(
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/rebuild.py:3:1
|
||
|
|
||
1 | """Offline batch evidence tooling; no upstream execution."""
|
||
2 |
|
||
3 | / from __future__ import annotations
|
||
4 | | import hashlib
|
||
5 | | import json
|
||
6 | | import subprocess
|
||
7 | | from build_definition import OUT, PATHS, REPO, build, canonical
|
||
| |_______________________________________________________________^
|
||
8 |
|
||
9 | BASE = "5d688a1d3022844119bf9e61f773907c4affc088"
|
||
|
|
||
help: Organize imports
|
||
|
|
||
3 | from __future__ import annotations
|
||
4 +
|
||
5 | import hashlib
|
||
6 | import json
|
||
7 | import subprocess
|
||
8 +
|
||
9 | from build_definition import OUT, PATHS, REPO, build, canonical
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/recompute.py:3:1
|
||
|
|
||
1 | """Offline batch evidence tooling; no upstream execution."""
|
||
2 |
|
||
3 | / from __future__ import annotations
|
||
4 | | import hashlib
|
||
5 | | import io
|
||
6 | | import json
|
||
7 | | import os
|
||
8 | | import sqlite3
|
||
9 | | import subprocess
|
||
10 | | import sys
|
||
11 | | import tarfile
|
||
12 | | import tempfile
|
||
13 | | import zipfile
|
||
14 | | from pathlib import Path
|
||
15 | | from build_definition import OUT, PATHS, REPO, canonical
|
||
16 | | from rebuild import BASE, RESOURCE, build_all
|
||
| |_____________________________________________^
|
||
17 |
|
||
18 | BASE = os.environ.get("TTS_IMPORT_BASE", BASE)
|
||
|
|
||
help: Organize imports
|
||
|
|
||
3 | from __future__ import annotations
|
||
4 +
|
||
5 | import hashlib
|
||
--------------------------------------------------------------------------------
|
||
15 | from pathlib import Path
|
||
16 +
|
||
17 | from build_definition import OUT, PATHS, REPO, canonical
|
||
|
|
||
|
||
E501 Line too long (156 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/recompute.py:351:101
|
||
|
|
||
349 | …
|
||
350 | …
|
||
351 | …back1, edits1/29cols, fresh155, 1217/3660/294, 88 definitions, frozen boundaries, wheel/sdist"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
352 | …
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/render_report.py:3:1
|
||
|
|
||
1 | """Offline batch evidence tooling; no upstream execution."""
|
||
2 |
|
||
3 | / from __future__ import annotations
|
||
4 | | import hashlib
|
||
5 | | import json
|
||
6 | | from pathlib import Path
|
||
| |________________________^
|
||
7 |
|
||
8 | OUT = Path(__file__).resolve().parent
|
||
|
|
||
help: Organize imports
|
||
|
|
||
3 | from __future__ import annotations
|
||
4 +
|
||
5 | import hashlib
|
||
|
|
||
|
||
E501 Line too long (147 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/render_report.py:75:97
|
||
|
|
||
73 | …
|
||
74 | …
|
||
75 | …e['lines'][0]}~{e['lines'][1]}行;commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
76 | …
|
||
77 | … f["value"]:
|
||
|
|
||
|
||
E501 Line too long (140 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/render_report.py:106:94
|
||
|
|
||
104 | … e["sha256"]
|
||
105 | …
|
||
106 | …'lines'][0]}~{e['lines'][1]}行;提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
107 | …
|
||
108 | …
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/repeat.py:3:1
|
||
|
|
||
1 | """Compare deterministic definitions and rendered artifacts."""
|
||
2 |
|
||
3 | / import hashlib
|
||
4 | | import json
|
||
5 | | from build_definition import OUT, REPO, canonical
|
||
6 | | from rebuild import RESOURCE, build_all
|
||
7 | | from render_report import main as render
|
||
| |________________________________________^
|
||
help: Organize imports
|
||
|
|
||
4 | import json
|
||
5 +
|
||
6 | from build_definition import OUT, REPO, canonical
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/source_closure.py:3:1
|
||
|
|
||
1 | """List source texts and their identity/permission evidence, without self hashing."""
|
||
2 |
|
||
3 | / import hashlib
|
||
4 | | import json
|
||
5 | | from build_definition import OUT, REF, REPO
|
||
| |___________________________________________^
|
||
help: Organize imports
|
||
|
|
||
4 | import json
|
||
5 +
|
||
6 | from build_definition import OUT, REF, REPO
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/verify_sources.py:57:101
|
||
|
|
||
55 | file=e["file"],
|
||
56 | sha256=e["sha256"],
|
||
57 | proof="rehashed commit/tag/selected blob; complete tree listing, not tree-object rehash",
|
||
| ^^^^^
|
||
58 | reverified_at=e["reverified_at"],
|
||
59 | )
|
||
|
|
||
|
||
I001 [*] Import block is un-sorted or un-formatted
|
||
--> docs/hel-892/krea-identity-document-evidence/verify_sources.py:80:5
|
||
|
|
||
78 | (b["pointer"], b["text"]) for b in block["comments"]
|
||
79 | ]
|
||
80 | from build_definition import REPO, PATHS
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
81 |
|
||
82 | g = json.loads((REPO / PATHS[0]).read_bytes())
|
||
|
|
||
help: Organize imports
|
||
|
|
||
79 | ]
|
||
- from build_definition import REPO, PATHS
|
||
80 + from build_definition import PATHS, REPO
|
||
81 |
|
||
|
|
||
|
||
E731 Do not assign a `lambda` expression, use a `def`
|
||
--> docs/hel-892/krea-identity-document-evidence/verify_sources.py:197:5
|
||
|
|
||
195 | in (REF / "rgthree____init__.py").read_text()
|
||
196 | )
|
||
197 | / f = lambda nid, name: next(
|
||
198 | | f for f in block["fields"] if f["node_id"] == str(nid) and f["field"] == name
|
||
199 | | )
|
||
| |_____^
|
||
200 | assert (
|
||
201 | f(79, "ref_boost")["schema_default"] == "1.0" and f(79, "ref_boost")["json_type"] == "int"
|
||
|
|
||
help: Rewrite `f` as a `def`
|
||
|
||
E501 Line too long (128 > 100)
|
||
--> docs/hel-892/krea-identity-document-evidence/verify_sources.py:238:101
|
||
|
|
||
236 | )
|
||
237 | print(
|
||
238 | "PASS exact Git sources, 20 version bindings, 42 raw fields, eight notes, 31 edges, Save/Comparer/interface differences"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
239 | )
|
||
|
|
||
|
||
Found 18 errors.
|
||
[*] 6 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option).
|