lint: ruff format + one auto-fix so the push self-test is green again
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
`scripts/lint.sh --fix` from the pinned lint devshell: 90 Python files reformatted (ruff format, mechanical) and one C420 (dict comprehension → dict.fromkeys) in tests/unit/test_f211_sso_skip.py. The push self-test had been failing at the lint stage since build 1313 (2026-08-31) on exactly these files; nothing else changed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FqkQq3CDmFWcQ7u1LzoyRz
This commit is contained in:
@@ -206,7 +206,11 @@ def _local_history_row(run_id, res):
|
||||
so render_history is unchanged. `number` is the run dir name (the /runs/<id>/ path + _results_for
|
||||
key); link to the Drone build when the id is numeric, else to the local summary card."""
|
||||
ref = res.get("ref") or ""
|
||||
url = f"{DRONE_URL}/{CI_REPO}/{run_id}" if str(run_id).isdigit() else f"/runs/{run_id}/summary.html"
|
||||
url = (
|
||||
f"{DRONE_URL}/{CI_REPO}/{run_id}"
|
||||
if str(run_id).isdigit()
|
||||
else f"/runs/{run_id}/summary.html"
|
||||
)
|
||||
return {
|
||||
"recipe": res.get("recipe"),
|
||||
"status": _run_status(res),
|
||||
@@ -351,7 +355,7 @@ def _card(r):
|
||||
f'<div class="card">{shot}<div class="body">'
|
||||
f'<div class="name">{html.escape(r["recipe"])}</div>'
|
||||
f'<div class="row"><span class="pill" style="background:{color}">{html.escape(r["status"])}</span>'
|
||||
f'<code>{html.escape(r["version"])}</code></div>'
|
||||
f"<code>{html.escape(r['version'])}</code></div>"
|
||||
f"{_flags_html(r['flags'])}"
|
||||
f'<div class="foot"><a href="{run_url}">run #{num} · {_ago(r["finished"])}</a>'
|
||||
f'<a href="/recipe/{html.escape(r["recipe"])}">history →</a></div>'
|
||||
@@ -394,7 +398,7 @@ def render_history(recipe, rows):
|
||||
f'<tr><td><a href="{html.escape(r["url"])}">#{r["number"]}</a></td>'
|
||||
f'<td><span class="pill" style="background:{color}">{html.escape(r["status"])}</span></td>'
|
||||
f"<td>{lvl}</td><td><code>{html.escape(r['version'])}</code></td>"
|
||||
f'<td>{_ago(r["finished"])}</td><td>{shot}</td></tr>'
|
||||
f"<td>{_ago(r['finished'])}</td><td>{shot}</td></tr>"
|
||||
)
|
||||
body = "\n".join(trs) or '<tr><td colspan="6">no runs for this recipe yet</td></tr>'
|
||||
inner = (
|
||||
|
||||
Reference in New Issue
Block a user