You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Sprint 2][B] Add ruff format check to backend CI #41
The backend CI job runs ruff check and pytest, but not ruff format --check. Formatting is never checked, so it has drifted: ruff format --check . in backend/ currently reports 20 of 24 files would be reformatted (mixed quotes in the Alembic migrations, wrong indentation, missing blank lines between top-level definitions, trailing whitespace, missing final newlines).
Reformatting touches almost every backend file, so every open backend branch will get merge conflicts. Do this when no backend PRs are open (right after #38 is merged).
Tasks
Run python -m ruff format . in backend/ as a separate commit with no other changes
Check the inline comments in app/routers/entries.py after formatting. Ruff moves the long trailing comments, so they may read better above the line.
Add python -m ruff format --check . to the backend job in .github/workflows/ci.yml, after ruff check
Add a short note to the README on how to format locally (python -m ruff format . in backend/)
Done: Every pull request fails CI if backend code is not formatted, and the job passes on main.
Activity