Apply tree-wide ruff format and enforce it in CI #20
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?
Background
CI runs
ruff check(lint) onwebapp/backend/but notruff format --check. When the CI expansion (PR #19) was set up, enabling the format gate would have reformatted ~105 of 155 backend files — too large to bundle into that PR, so the format check was deliberately left out.Task
In a dedicated PR:
ruff format webapp/backend/across the whole backend tree (ruff 0.4.4, to match.pre-commit-config.yamland thewebapp/backend/ruff.tomlconfig)..forgejo/workflows/ci.ymlin thelint-backendjob:blackis also inrequirements-dev.txt. Decide whether to keep both or standardise onruff formatto avoid formatter conflicts.Why it's separate
A ~105-file reformat is noisy to review and would conflict with other in-flight branches. Doing it on its own keeps the diff reviewable and isolates any churn.
Acceptance
ruff format --check webapp/backend/passes onmain.CI / *status.