Fix the lint on vllm_mm #43
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:preflight
blocked:verify-failed
bug
feature-request
in-progress
lint-cleanup
ops-task
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/vllm_mm#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is dirty
ruff check .from the repo root returns 77 errors (vs 86 on origin/main pre-#38 — the #38 commit net-fixed 9 violations while adding new code). Categories:37 of 77 are auto-fixable with
ruff check --fix; the remaining 40 are deliberate corrections (E712 true-false-comparison, E402 module-import-not-at-top-of-file, F841 unused-variable) that need human judgment. Use--unsafe-fixespolicy as a separate question per row.Why this blocks the lane
Per the 2026-07-08 rule on the kilo-gsd-runner profile: "we do not knowingly pass along lint errors repos." The kilo-gsd Lint gate runs
ruff check .against the entire tree after every Implement phase. A feature-request ticket that touches only clean files still fails the gate if the baseline is dirty, and bugfix retries exhaust against lint that the implementer never touched. Confirmed in this run on Mark/vllm_mm#38 — the implementer's commit (ea16ebf) is correct and tests pass (96/96), but the pipeline halted because the gate cannot distinguish "introduced by this commit" from "pre-existing in baseline." A repo-cleanup commit unblocks every future feature dispatch on this repo.What a real fix looks like
Fix every lint error reported above so
ruff check .exits 0 against the repo root (not just the backend subdir). Sequence:ruff check --fix .to clear the 37 auto-fixable items. Review the diff —F401 unused-importremovals should not break anything (the unused import is, by definition, unused);F541 extraneous f-prefixis purely cosmetic.E712 true-false-comparison(14): replace== True/== Falsewith truthiness or explicitis True/is Falsewhere comparison is intentional. Many of these are in test fixtures.E402 module-import-not-at-top-of-file(15): typical pattern isimportafter a docstring or after afrom __future__ import annotations. Either move the import to top, or add a per-file# noqa: E402with a comment explaining why.F841 unused-variable(11): either use the variable or prefix with_to silence. Some are deliberate (e.g. exception bindings used only for side effects).ruff check .exits 0.cd backend && pytest) to confirm nothing broke.npm run lint) separately — ruff does not check TS files in this repo; that's a separate concern tracked by eslint.This ticket is intentionally NOT a kilo-gsd task. It is a HERMES KANBAN AGENT task (tasker-worker or similar code-writing worker). kilo-gsd is correctly gated OFF dirty repos and gets no carve-out here.
Related
ea16ebf) landed on origin/main despite the lint gate, via the saastools#12 recovery pattern. The recovery was justified because the implementer's diff was clean; future feature dispatches will not have that luxury.blocked:preflightuntil cleanup lands. Once this ticket closes, those blocks can be released.Verification
Fixed in branch
fix/43-ruff-cleanup(commitdfe20b1).Verification
ruff check .-> All checks passed! (was 77 errors: 31 F401, 15 E402, 14 E712, 11 F841, 6 F541)cd backend && pytest-> 234 passed, 2 skippedpython -c 'from app.main import app'-> 46 routes register OKFix breakdown
ruff check --fix(F401 unused-imports, F541 f-string without placeholders)ModelRecord.is_active == True->ModelRecord.is_active.is_(True)(proper SQLAlchemy IS TRUE with NULL semantics)# noqa: E402with a comment (logging must be configured BEFORE routers that log at import time); 6 in proxy.py fixed by moving thetrace()helper below the imports_rope_freq_base,_rope_freq_scale,_gpu_memory_utilization) accepted via alias table but not yet plumbed into the cmd — renamed to_-prefixed with explanatory comments so the config surface stays valid while the ruff gate is happyThe kilo-gsd Lint gate should now pass on this repo on future dispatches.
Closes #43