Fix ruff f-string-missing-placeholders in render_thin

This commit is contained in:
2026-07-04 19:34:16 +03:00
parent d3c4c8e585
commit 68cba21891
+5 -2
View File
@@ -147,7 +147,7 @@ def render_thin(repo: dict) -> str:
doctor_block = "" doctor_block = ""
if doctor: if doctor:
doctor_block = f""" # ENFORCEMENT gate (cluster #193): run parity-lib's pipeline-doctor --strict doctor_block = """ # ENFORCEMENT gate (cluster #193): run parity-lib's pipeline-doctor --strict
# against THIS repo BEFORE publishing. Read-only, no registry contact, no # against THIS repo BEFORE publishing. Read-only, no registry contact, no
# token. The doctor's non-zero exit fails the pipeline on any parity-contract # token. The doctor's non-zero exit fails the pipeline on any parity-contract
# violation (or, in --strict, any warning), so a drifted repo never publishes. # violation (or, in --strict, any warning), so a drifted repo never publishes.
@@ -161,7 +161,10 @@ def render_thin(repo: dict) -> str:
env_lines = [] env_lines = []
if gitea_clone_token: if gitea_clone_token:
env_lines += [" GITEA_CLONE_TOKEN:", " from_secret: gitea_clone_token"] env_lines += [
" GITEA_CLONE_TOKEN:",
" from_secret: gitea_clone_token",
]
if token_direct: if token_direct:
env_lines += [" REGISTRY_TOKEN:", " from_secret: registry_token"] env_lines += [" REGISTRY_TOKEN:", " from_secret: registry_token"]
else: else: