fix(ci): restore green backend CI — ruff config + unused import cleanup #117
No reviewers
Labels
No labels
a11y
backlog
beta-feedback
bug
enhancement
feature-request
frontend
needs-triage
question
vue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#117
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-ruff-lint"
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?
Problem
The backend Python CI job has been failing on every push since April. Root cause: ruff found lint violations in files that were never covered by a ruff config.
What was failing
app/app.pydev-api.pydev-api.pydev-api.pydb_path_objvariable (genuine dead code — fixed)scripts/finetune_local.pyFixes
pyproject.toml(new): ruff config with targetedper-file-ignores— suppresses intentional violations, documents why each exception existsdev-api.py: removes deaddb_path_objassignment; adds# noqa: E402to two documented mid-file importsscripts/finetune_local.py: renames ambiguousl→linetools/label_tool.py: renames ambiguousl→lblRemaining CI failures (NOT fixed in this PR)
mirror.yml—GITHUB_MIRROR_TOKENandCODEBERG_MIRROR_TOKENsecrets not configured in Forgejorelease.yml—FORGEJO_RELEASE_TOKENsecret not configured (tags v0.9.1–v0.9.7 all missing releases)These require secrets to be added in Forgejo → Settings → Actions → Secrets.
Tests
807 passed, 2 skipped locally.