Skip to the content.
AGENTS.md (Python service)
Environment
- Python version: see
.python-version
- Create env and install:
uv sync (or python -m venv .venv && pip install -e ".[dev]")
- Run the app locally:
<uv run python -m app>
Checks to run after every change
uv run ruff check . && uv run ruff format --check .
uv run mypy src/
uv run pytest -q (single test: uv run pytest tests/test_x.py::test_name -q)
Conventions
- Type hints on all public functions.
- Use
logging, not print, in library code.
- Keep I/O at the edges; pure functions in
src/app/core/.
- Database changes need an Alembic migration in
migrations/.
Boundaries
- Do not modify
migrations/ files that are already merged.
- No network calls in unit tests; use fixtures in
tests/fixtures/.
- Ask before adding a dependency to
pyproject.toml.