refactor: hash fields and digests read in core

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 22:19:45 +01:00
1 parent 238f70c7a7
commit f371790dc6
4 files changed
+20 -13

No files matched your search

-6
View File
@@ -5,9 +5,7 @@ from __future__ import annotations
import json
import subprocess
from dataclasses import dataclass
from pathlib import Path
from core.hashing import file_digest
from release.assets import digests_of
from model.largefiles import LARGE_FILES_REPO
@@ -113,10 +111,6 @@ def compare_release(
return findings
def _sha256(path: Path) -> str:
return file_digest(path, "sha256")
def fetch_assets(tag: str) -> tuple[dict[str, Asset], bool]:
"""Name, size and sha256 of every asset of *tag*, and whether it is a draft."""
result = subprocess.run(