-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (67 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (67 loc) · 2.09 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
70
71
72
73
[project]
name = "api-template"
version = "0.1.0"
description = "FastAPI template with async PostgreSQL and JWT auth"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"fastapi>=0.135.0",
"uvicorn[standard]>=0.41.0",
"sqlalchemy>=2.0.48",
"asyncpg>=0.31.0",
"pydantic>=2.12.0",
"pydantic-settings>=2.13.0",
"alembic>=1.18.0",
"fastapi-users[sqlalchemy]>=15.0.0",
"python-multipart>=0.0.22",
"slowapi>=0.1.9",
"limits>=5.8.0",
"structlog>=25.0.0",
"opentelemetry-api>=1.40.0",
"opentelemetry-sdk>=1.40.0",
"opentelemetry-exporter-otlp-proto-grpc>=1.40.0",
"opentelemetry-instrumentation-fastapi>=0.61b0",
"scalar-fastapi>=1.0.0",
]
[dependency-groups]
dev = [
"pytest>=9.0.0",
"pytest-asyncio>=1.0.0",
"httpx>=0.28.0",
"aiosqlite>=0.22.0",
"ruff>=0.15.0",
"pre-commit>=4.5.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
target-version = "py314"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults (needed for Depends)
]
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.uv]
# FastAPI >=0.137 changed how included routers' routes are resolved, which
# breaks slowapi's SlowAPIMiddleware enforcement of `default_limits` on
# undecorated routes mounted via include_router (verified empirically here:
# the global rate-limit test fails on 0.140.x and passes on 0.135.x with all
# other dependencies identical). Known upstream as slowapi issue #281 with
# fix PR #282; drop this hold once a slowapi release containing that fix
# ships. Starlette is capped alongside it since slowapi has never been
# validated against Starlette 1.x.
constraint-dependencies = ["fastapi<0.136", "starlette<1.0"]