ci: clear the ruff baseline ignores in the backup-drill template #794

Sammanfogat
supernaut sammanfogade 2 incheckningar från ci/clear-drill-ruff-baseline in i main 2026-10-18 17:30:38 +00:00
Ägare

Fixes the 84 style findings in the rendered backup-drill script and removes PY_BASELINE_IGNORE, so the file is gated by the full ruff rule set.

  • UP031: percent formats become f-strings.
  • RUF005: list concatenation becomes unpacking.
  • SIM401: dict.get with a default.
  • SIM105: contextlib.suppress(OSError) around os.remove.
  • E501: long lines wrapped, strings unchanged. HELP lines keep the metric name on the first piece so check-metric-names still pairs them.
  • S607: per-line noqa. The tools resolve through the unit PATH.

Output strings and subprocess argv are unchanged.

After apply (--tags backup-drill), run one backup drill and confirm restore-drill PASSED and fresh backup-drill*.prom metrics.

Closes #780

Fixes the 84 style findings in the rendered backup-drill script and removes `PY_BASELINE_IGNORE`, so the file is gated by the full ruff rule set. - UP031: percent formats become f-strings. - RUF005: list concatenation becomes unpacking. - SIM401: `dict.get` with a default. - SIM105: `contextlib.suppress(OSError)` around `os.remove`. - E501: long lines wrapped, strings unchanged. HELP lines keep the metric name on the first piece so `check-metric-names` still pairs them. - S607: per-line `noqa`. The tools resolve through the unit PATH. Output strings and subprocess argv are unchanged. After apply (`--tags backup-drill`), run one backup drill and confirm `restore-drill PASSED` and fresh `backup-drill*.prom` metrics. Closes #780
supernaut lade till 2 incheckningar 2026-10-18 17:20:20 +00:00
Fix the 84 style findings (E501, RUF005, S607, SIM105, SIM401, UP031)
in the rendered drill script and drop PY_BASELINE_IGNORE, so the file
is gated by the full rule set. Percent formats become f-strings, list
concatenation becomes unpacking, and the three try/pass blocks around
os.remove use contextlib.suppress(OSError). S607 stays a per-line
noqa because podman, ssh, scp and age resolve through the unit PATH.

Closes #780
fix(backup-drill): keep metric names on the help lines
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m35s
344b2d14fd
The line wrapping in the ruff cleanup split three HELP strings, so check-metric-names could not pair them with their TYPE lines. The rendered text is unchanged.

Refs #780
supernaut tvångsskickade ci/clear-drill-ruff-baseline från 344b2d14fd
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m35s
till 06106b6c96
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m11s
2026-10-18 17:26:56 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-18 17:27:06 +00:00
supernaut sammanfogade incheckning e8c26a5c99 till main 2026-10-18 17:30:38 +00:00
supernaut tog bort grenen ci/clear-drill-ruff-baseline 2026-10-18 17:30:38 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!794
Ingen beskrivning angiven.