Files
aigc-home/docs/hel-892/animate-time-correction/animate-time-lint-first.txt
T

87 lines
4.6 KiB
Plaintext

E402 Module level import not at top of file
--> docs/hel-892/animate-time-correction/correct_sources.py:16:1
|
14 | INDICES = [116, 117, 127]
15 | sys.path.insert(0, str(OUT.parent / "animate-document-evidence"))
16 | from verify_sources import validate_source_times
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: Move module level imports to top of file
E501 Line too long (107 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:25:101
|
23 | def main():
24 | path = REF / "sources.json"
25 | before = json.loads(subprocess.check_output(["git", "show", BASE + ":" + str(path.relative_to(ROOT))]))
| ^^^^^^^
26 | original = before["sources"]
27 | rejected = []
|
E501 Line too long (103 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:56:101
|
54 | tree = json.loads(tree_path.read_bytes())
55 | assert tree["sha"] == row["tree"]
56 | assert next(e["sha"] for e in tree["tree"] if e["path"] == row["file"]) == row["git_blob_sha1"]
| ^^^
57 | commit_path = identity / (key + "-commit.txt")
58 | commit = commit_path.read_bytes()
|
E501 Line too long (121 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:71:101
|
69 | checks.append(dict(index=i, reverified_at=now, sha256=row["sha256"],
70 | git_blob_sha1=row["git_blob_sha1"], commit=row["commit"],
71 | tree=row["tree"], identity_files=[str(p.relative_to(ROOT)) for p in [tree_path, commit_path]],
| ^^^^^^^^^^^^^^^^^^^^^
72 | license_sha256=hashlib.sha256(license_path.read_bytes()).hexdigest(),
73 | upstream_fetched=False, upstream_executed=False))
|
E501 Line too long (124 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:80:101
|
78 | expected["reverified_at"] = new["reverified_at"]
79 | assert expected == new
80 | audit.write_text(json.dumps(dict(base=BASE, error="Batch start times were incorrectly called post-acquisition rechecks",
| ^^^^^^^^^^^^^^^^^^^^^^^^
81 | original_manifest=before, original_rejections=rejected,
82 | checks=checks, corrected_manifest=current), ensure_ascii=False, indent=2) + "\n")
|
E501 Line too long (117 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:82:101
|
80 | audit.write_text(json.dumps(dict(base=BASE, error="Batch start times were incorrectly called post-acquisition rechecks",
81 | original_manifest=before, original_rejections=rejected,
82 | checks=checks, corrected_manifest=current), ensure_ascii=False, indent=2) + "\n")
| ^^^^^^^^^^^^^^^^^
83 | path.write_text(json.dumps(current, ensure_ascii=False, indent=2) + "\n")
84 | print("PASS three exact local texts/identities; actual UTC sampled after checks; other125 records frozen")
|
E501 Line too long (110 > 100)
--> docs/hel-892/animate-time-correction/correct_sources.py:84:101
|
82 | checks=checks, corrected_manifest=current), ensure_ascii=False, indent=2) + "\n")
83 | path.write_text(json.dumps(current, ensure_ascii=False, indent=2) + "\n")
84 | print("PASS three exact local texts/identities; actual UTC sampled after checks; other125 records frozen")
| ^^^^^^^^^^
F841 Local variable `fixed` is assigned to but never used
--> docs/hel-892/animate-time-correction/recompute.py:185:13
|
183 | old_doc = json.loads(before[p]["doc_json"])
184 | without = dict(d)
185 | fixed = without.pop("fixed_version")
| ^^^^^
186 | assert without["steps"] == old_doc["steps"]
187 | assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
|
help: Remove assignment to unused variable `fixed`
Found 8 errors.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).