Skip to content

[Sprint 2][B] Add ruff format check to backend CI #41

In review

Description

@DarynaBb

Role B (Backend)

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

  1. self-assigned this
    on Nov 25, 2026
  2. added
    muss
    api
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apimuss

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions