-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 1.65 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (68 loc) · 1.65 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
74
75
76
[project]
name = "fastapi-skeleton"
version = "2.0.0"
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.141,<1",
"sqlalchemy[asyncio]>=2.0,<3",
"aiomysql>=0.3,<1",
"uvicorn[standard]>=0.53,<1",
"pydantic>=2.13,<3",
"pydantic-settings>=2.15,<3",
"alembic>=1.20,<2",
"structlog>=26.1,<27",
"pyjwt>=2.14,<3",
"pwdlib[bcrypt]>=0.3,<1",
"httpx>=0.28,<1",
"redis>=8.1,<9",
"python-multipart>=0.0.32",
"apscheduler>=3.11,<4",
"tzdata>=2026.4",
]
[dependency-groups]
dev = [
"ruff>=0.16,<1",
"pytest>=9.1,<10",
"pytest-asyncio>=1.4,<2",
"pytest-cov>=7.1,<8",
"asgi-lifespan>=2.1,<3",
"import-linter>=2.15,<3",
]
[tool.ruff]
line-length = 100
target-version = "py313"
extend-exclude = ["docs"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "N"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Body"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["."]
testpaths = ["tests"]
addopts = "-m 'not integration'"
markers = [
"integration: requires real MySQL/Redis (deselected by default; run with -m integration)",
]
[tool.importlinter]
root_package = "app"
[[tool.importlinter.contracts]]
name = "App layering"
type = "layers"
layers = [
"app.http | app.jobs",
"app.services",
"app.repositories",
"app.models",
]
[[tool.importlinter.contracts]]
name = "Leaf modules must not import business layers"
type = "forbidden"
source_modules = ["app.core", "app.exceptions", "app.utils", "app.schemas"]
forbidden_modules = [
"app.services",
"app.repositories",
"app.models",
"app.http",
"app.jobs",
]