[project] name = "hunjing-backend" version = "0.1.0" description = "Hunjing 后端服务(FastAPI 模块化单体)" requires-python = ">=3.12" dependencies = [ "fastapi>=0.115", "uvicorn[standard]>=0.32", "pydantic>=2.9", "pydantic-settings>=2.6", "sqlalchemy>=2.0", "alembic>=1.14", "asyncpg>=0.30", "uuid-utils>=0.10", ] [dependency-groups] dev = [ "pytest>=8.3", "pytest-asyncio>=0.24", "httpx>=0.27", "ruff>=0.8", "mypy>=1.13", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["app"] [tool.ruff] line-length = 100 target-version = "py312" [tool.ruff.lint] select = ["E", "F", "I", "UP", "B", "ASYNC"] [tool.mypy] python_version = "3.12" strict = true [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"]