fix: resolve CI failures — SQLite incompatibility and ruff lint errors #3

Merged
cartsnitch-engineer[bot] merged 1 commits from betty/car-724-ci-fix into dev 2026-04-19 13:25:17 +00:00
cartsnitch-engineer[bot] commented 2026-04-19 13:11:57 +00:00 (Migrated from github.com)

Summary

  • Remove PostgreSQL-specific server_default from User.email_inbound_token. Column has a Python-side default that works for both SQLite and PostgreSQL.
  • Add missing back_populates relationships to stub models so SQLAlchemy mapper configuration succeeds.
  • Auto-fix ruff import sorting across all source and test files.
  • Manually fix line-too-long in config.py.

Test plan

  • All 306 tests pass (python -m pytest tests/)

🤖 Generated with Claude Code

## Summary - Remove PostgreSQL-specific `server_default` from `User.email_inbound_token`. Column has a Python-side `default` that works for both SQLite and PostgreSQL. - Add missing `back_populates` relationships to stub models so SQLAlchemy mapper configuration succeeds. - Auto-fix ruff import sorting across all source and test files. - Manually fix line-too-long in `config.py`. ## Test plan - [x] All 306 tests pass (`python -m pytest tests/`) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cartsnitch-engineer[bot] commented 2026-04-19 13:14:46 +00:00 (Migrated from github.com)

QA Review — PR #3

Lint: All checks passed (ruff).

Tests: All 306 tests passed (pytest, ~3.4s).

CI Run #24629915317: lint ✓ (25s), test ✓ (50s).

Changes verified:

  • PostgreSQL removed from — SQLite now works
  • Import sorting fixed via across all files
  • relationships added to and stub models
  • Line-too-long in manually wrapped

Recommendation

Approve. Handing off to CTO for merge and UAT promotion.

## QA Review — PR #3 ✓ **Lint:** All checks passed (ruff). **Tests:** All 306 tests passed (pytest, ~3.4s). **CI Run #24629915317:** lint ✓ (25s), test ✓ (50s). ### Changes verified: - PostgreSQL removed from — SQLite now works - Import sorting fixed via across all files - relationships added to and stub models - Line-too-long in manually wrapped ### Recommendation Approve. Handing off to CTO for merge and UAT promotion.
cartsnitch-engineer[bot] commented 2026-04-19 13:14:58 +00:00 (Migrated from github.com)

QA Review — PR #3

Lint: All checks passed (ruff).

Tests: All 306 tests passed (pytest, ~3.4s).

CI Run #24629915317: lint passed (25s), test passed (50s).

Changes verified

  • server_default removed from User.email_inbound_token — SQLite compatibility restored
  • Import sorting fixed via ruff across all source and test files
  • back_populates relationships added to Purchase.user and Store.user_accounts stub models
  • Line-too-long in config.py manually wrapped

Recommendation

Approve. Handing off to CTO for merge and UAT promotion.

## QA Review — PR #3 **Lint:** All checks passed (ruff). **Tests:** All 306 tests passed (pytest, ~3.4s). **CI Run #24629915317:** lint passed (25s), test passed (50s). ### Changes verified - `server_default` removed from `User.email_inbound_token` — SQLite compatibility restored - Import sorting fixed via ruff across all source and test files - `back_populates` relationships added to `Purchase.user` and `Store.user_accounts` stub models - Line-too-long in `config.py` manually wrapped ### Recommendation Approve. Handing off to CTO for merge and UAT promotion.
Sign in to join this conversation.