mirror of
https://github.com/furyhawk/listen.git
synced 2026-07-20 16:35:35 +00:00
- Added .vscode/settings.json to configure pytest as the testing framework. - Created AGENTS.md to provide concise guidance for AI coding agents, including project setup, testing, and best practices.
1.9 KiB
1.9 KiB
AGENTS.md — Guidance for AI coding agents
Purpose: short, actionable guidance for coding agents working in this repository.
Quick facts
- Python: >= 3.13 (see pyproject.toml).
- Run app:
uvicorn app.main:app --reload(see app/main.py). - Docker:
docker-compose up -d(see docker-compose.yml). - Migrations:
alembic upgrade head(see alembic.ini andalembic/). - Tests:
pytest(configuration in pyproject.toml; tests underapp/tests).
What agents should know (concise)
- Use the project's README for onboarding steps and environment setup: README.md.
- Dependencies are declared in
pyproject.toml; dev extras includepytest,pytest-asyncio,pytest-xdist, andruff. - Tests create temporary databases (see
app/tests/conftest.py) and rely ondocker-composefor a PostgreSQL service when needed. - The app entrypoint is
app.main:app; routers are inapp/api. - Alembic is configured for async SQLAlchemy—use the repository's alembic folder for migrations.
Agent behavior recommendations
- Prefer linking to existing docs instead of copying long sections; follow "link, don't embed".
- When suggesting code edits, reference the exact file(s) and include minimal, focused patches.
- Run tests locally with
pytest -qand use-kto target changed areas during iteration. - Respect the project's Python version and typing/mypy strictness.
Next customizations to consider
- Add a small
.github/copilot-instructions.mdif repository owners want per-repo agent role presets. - Create a
/.vscodeordevcontainerquickstart note for reproducible developer environments.
Relevant files