- Initialize FastAPI backend with uv package manager - Configure Black, Ruff, pytest, mypy in pyproject.toml - Add health check endpoint and initial test - Create AGENTS.md with coding guidelines for AI agents - Add pre-commit hook to enforce linting and tests
16 lines
346 B
Python
16 lines
346 B
Python
"""Mantimon TCG - FastAPI Application Entry Point."""
|
|
|
|
from fastapi import FastAPI
|
|
|
|
app = FastAPI(
|
|
title="Mantimon TCG",
|
|
description="A home-rule-modified Pokemon Trading Card Game",
|
|
version="0.1.0",
|
|
)
|
|
|
|
|
|
@app.get("/health")
|
|
async def health_check() -> dict[str, str]:
|
|
"""Health check endpoint."""
|
|
return {"status": "healthy"}
|