-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (80 loc) · 1.81 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
86
87
88
89
90
91
92
93
94
[tool.poetry]
name = "sciarticle-task"
version = "0.1.0"
description = ""
authors = ["likeinlife <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
sqlalchemy = "^2.0.30"
fastapi = "^0.111.0"
faststream = { extras = ["rabbit"], version = "^0.5.10" }
pydantic = "^2.7.2"
pydantic-settings = "^2.2.1"
asgi-correlation-id = "^4.3.1"
structlog = "^24.2.0"
dependency-injector = "^4.41.0"
orjson = "^3.10.3"
websockets = "^12.0"
aiojobs = "^1.2.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.10.0"
ruff = "^0.4.6"
pre-commit = "^3.7.1"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.2.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 = [
# Allow boolean type in func arguments
"FBT001",
# Allow PEP585 annotations like dict[str, str]
"FA102",
# No blankline before class
"D203",
# Multiline string summary should start at the first line
"D213",
# Allow no-typehints
"ANN101",
"ANN102",
# Allow public module, class, method without docstring
"D100",
"D101",
"D102",
# Allow type: ignore
"PGH003",
]
exclude = []
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Depends",
"faststream.Depends",
"fastapi.params.Depends",
"fastapi.Query",
"fastapi.params.Query",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = []
"tests/**/*.py" = ["D", "S", "ANN"]
[tool.ruff.lint.isort]
known-first-party = [
"application",
"core",
"domain",
"infra",
"logic",
"container",
]
[tool.mypy]
ignore_missing_imports = true
follow_imports = "normal"
[tool.pytest.ini_options]
pythonpath = "sciarticle_task"