Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (62 loc) · 1.47 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (62 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "production-llm-api-gateway"
version = "0.1.0"
description = "Production-grade LLM API Gateway built with FastAPI, Redis, and PostgreSQL"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.110.0",
"uvicorn[standard]>=0.28.0",
"pydantic>=2.7.0",
"pydantic-settings>=2.2.0",
"httpx>=0.27.0",
"sqlalchemy[asyncio]>=2.0.28",
"alembic>=1.13.1",
"asyncpg>=0.29.0",
"aiosqlite>=0.20.0",
"redis>=5.0.3",
"structlog>=24.1.0",
"tenacity>=8.2.3",
]
[project.optional-dependencies]
dev = [
"pytest>=8.1.0",
"pytest-asyncio>=0.23.5",
"fakeredis>=2.21.0",
"ruff>=0.3.4",
"mypy>=1.9.0",
"types-redis>=4.6.0",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"B008", # do not perform function calls in argument defaults (FastAPI Depends)
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = "test_*.py"
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.setuptools.packages.find]
include = ["app", "app.*"]