-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
85 lines (75 loc) · 1.53 KB
/
pyproject.toml
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
77
78
79
80
81
82
83
84
85
[tool.poetry]
name = "banner-api"
version = "0.1.0"
description = ""
authors = ["likeinlife <likeinlife@outlook.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.6.4"
pydantic-settings = "^2.2.1"
fastapi = "^0.110.1"
structlog = "^24.1.0"
asgi-correlation-id = "^4.3.1"
orjson = "^3.10.0"
uvicorn = "^0.29.0"
dependency-injector = "^4.41.0"
sqlalchemy = "2.0.29"
alembic = "^1.13.1"
psycopg2-binary = "^2.9.9"
gunicorn = "^21.2.0"
asyncpg = "^0.29.0"
redis = "^5.0.3"
backoff = "^2.2.1"
dramatiq = {extras = ["redis", "watch"], version = "^1.16.0"}
[tool.poetry.group]
dev.optional = true
test.optional = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.9.0"
ruff = "^0.3.5"
pre-commit = "^3.7.0"
[tool.poetry.group.test.dependencies]
pytest = "^8.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
exclude = ["migrations"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D1",
"D203",
"D212",
"ANN",
"FA",
"TRY",
"FBT",
"EM",
"N8",
"DTZ",
"B904",
"PGH",
"S311",
"PLR",
"COM812",
"ISC001",
"A003",
]
exclude = ["__init__.py"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Depends",
"fastapi.params.Depends",
"fastapi.Query",
"fastapi.params.Query",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"tests/**/*.py" = ["S101"]
"**/cli/**/*.py" = ["T201"]
[tool.mypy]
ignore_missing_imports = true
follow_imports = "normal"