Closed AdrianoKF closed 3 weeks ago
Attention: Patch coverage is 73.56322%
with 23 lines
in your changes missing coverage. Please review.
Project coverage is 57.34%. Comparing base (
ff36c96
) to head (09fd9b7
). Report is 1 commits behind head on main.
:white_check_mark: All tests successful. No failed tests found.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Major changes
uv
Docker best practices (see https://docs.astral.sh/uv/guides/integration/docker/)skaffold dev
(removes the need for image build and redeployment in most scenarios)Settings
Pydantic Settings are used to control behavior of the backend (see
config.py
). The following settings are currently available:AUTO_MIGRATE: bool
controls whether Alembic migrations should be automatically applied if the database is out-of-syncDB_CONNECTION_STRING: str
sets the connection string used to connect to the databaseThese settings can be passed through environment variables of the same name.
Database Migrations
Alembic is used to perform database migrations.
As part of its entry point script, the container image automatically upgrades to the
head
revision (alembic upgrade head
).For local development, the
AUTO_MIGRATE
setting can be used to automatically run migrations on startup (or you can manually use the Alembic CLI).Tests
The automatic
db
fixture in the integration test suite provides an in-memory SQLite database session.Closes #133