Backend quality gate (SpecFlow)
Use when finishing or reviewing a change that touches backend/app/**/*.py.
Steps
- From repo root:
make check(ruff, mypy, vulture as in Makefile). - If the change is non-trivial:
make check-complexity(summary) ormake check-complexity-diffagainstmain(seeCLAUDE.mdforMETRIC=cc|mi|hal). - For a single file:
make check-complexity-cc FILE=app/...andmake check-complexity-mi FILE=app/.... - Confirm SRP, DRY, and that state/credential rules match
docs/PATTERNS/INDEX.mdand.cursor/rules/backend-python.mdc.
Note: Cursor may show ruff/radon inline via .cursor/hooks.json; that does not replace make check or tests.
Tests
make unit-tests(required before merge for substantive work)