chore: format the whole tree and lint the scratch measurement scripts; CI has been red since 25ae4b4

CI runs ruff format --check and ruff check over the whole repository; 29 files had drifted from the formatter and
four measurement scripts carried lint findings, so every push since 25ae4b4 failed before pytest ran.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Marius Ciepluch
2026-10-14 02:49:44 +02:00
co-authored by Claude Fable 5.1
parent fbbc03f3ea
commit 0d7d3f0dc9
29 changed files with 281 additions and 133 deletions
-2
View File
@@ -157,5 +157,3 @@ class Egress:
def settle() -> None:
"""Wait out the gateway's cached deny (10 s) before the actor's first connection: ``OUSAST_EGRESS_SETTLE``."""
time.sleep(float(os.environ.get("OUSAST_EGRESS_SETTLE") or 11))
+1 -3
View File
@@ -428,9 +428,7 @@ def increment(
repin_templates(plane, runner_image)
loaded = load_manifests([plane / "tasks" / f"{name}.yaml" for name in TEMPLATES])
cases = read_cases(validation_set, candidates_dir, triage_dir, population, repos)
files = render(
cases, loaded.tasks, run_name, command, population=population.stem, split=validation_set.stem, atespace=atespace
)
files = render(cases, loaded.tasks, run_name, command, population=population.stem, split=validation_set.stem, atespace=atespace)
written: list[Path] = []
for relative, text in files.items():
path = plane / relative
+1 -3
View File
@@ -732,9 +732,7 @@ def deliver(
raise DeliveryError(f"{last} after {attempts} attempts to {safe_url(url)}")
def fetch(
url: str, headers: Mapping[str, str], dest: Path, *, attempts: int = DELIVERY_ATTEMPTS, backoff: float = 1.0
) -> int:
def fetch(url: str, headers: Mapping[str, str], dest: Path, *, attempts: int = DELIVERY_ATTEMPTS, backoff: float = 1.0) -> int:
"""GET ``url`` into ``dest`` (streamed to a sibling temp file, then renamed); retried like :func:`deliver`.
Returns the byte count; :class:`DeliveryError` names the last cause when every attempt failed."""
+5 -1
View File
@@ -250,7 +250,11 @@ def main(environ: Mapping[str, str] | None = None) -> int:
return 0 if summary["status"] == "done" else 2
__all__ = ["DROPPED_ON_READ", "case_features", "main", ]
__all__ = [
"DROPPED_ON_READ",
"case_features",
"main",
]
if __name__ == "__main__":