Files
furyhawk d8fef0620d Add VSCode settings for pytest and create AGENTS.md for AI coding guidance
- 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.
2026-05-11 13:26:33 +08:00

1.9 KiB

AGENTS.md — Guidance for AI coding agents

Purpose: short, actionable guidance for coding agents working in this repository.

Quick facts

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 include pytest, pytest-asyncio, pytest-xdist, and ruff.
  • Tests create temporary databases (see app/tests/conftest.py) and rely on docker-compose for a PostgreSQL service when needed.
  • The app entrypoint is app.main:app; routers are in app/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 -q and use -k to 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.md if repository owners want per-repo agent role presets.
  • Create a /.vscode or devcontainer quickstart note for reproducible developer environments.

Relevant files