-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (118 loc) · 2.64 KB
/
pyproject.toml
File metadata and controls
131 lines (118 loc) · 2.64 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[project]
name = "fastapi-django"
[tool.mypy]
mypy_path = [
"fastapi_django",
]
show_error_codes = true
check_untyped_defs = true
[tool.poetry]
name = "fastapi-django"
version = "0.20.5"
description = ""
authors = ["albertalexandrov <albert-ugatu@list.ru>"]
packages = [{include = "fastapi_django"}]
license = "MIT"
readme = "README.md"
repository = "https://github.com/SergeiVElfimov/fastapi-django"
classifiers = [
"Natural Language :: English",
"Framework :: FastAPI",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]
[tool.poetry.dependencies]
python = "^3.11"
fastapi = ">=0.115.14,<1.0"
prometheus-fastapi-instrumentator = "^7.1.0"
uvicorn = "^0.35.0"
sqlalchemy = "^2.0.41"
alembic = "^1.16.3"
pyjwt = "^2.10.1"
httpx = "^0.28.1"
cryptography = "^45.0.5"
environs = "^14.2.0"
typer = "^0.16.0"
aiosmtplib = "^4.0.1"
jinja2 = "^3.1.6"
starlette-context = "^0.4.0"
ipython = "^9.4.0"
[tool.poetry.group.dev.dependencies]
bandit = "^1.7.9"
flynt = "^1.0.1"
greenlet = "^3.0.3"
mypy = "^1.10.1"
mypy-extensions = "^1.0.0"
pre-commit = "^3.7.1"
pytest = "^8.2.2"
pytest-asyncio = "^0.23.7"
pytest-cov = "^5.0.0"
tomli = "^2.0.1"
types-click = "^7.1.8"
types-setuptools = "^70.1.0.20240627"
typing-extensions = "^4.12.2"
types-requests = "^2.32.4.20250611"
ruff = "^0.5.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
".git",
".mypy_cache",
".nox",
".ruff_cache",
]
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"D",
"E",
"F",
"I",
"SIM",
"UP",
]
ignore = [
"A003", # Argument name should be lowercase.
"B008", # Do not perform function calls in argument defaults.
"D1", # Missing docstring https://www.pydocstyle.org/en/2.1.1/error_codes.html.
"D203", # 1 blank line required before class docstring.
"D213", # Multi-line docstring summary should start at the second line.
]
fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"I",
"SIM",
"UP",
]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = [
"cbr_dws_client",
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
[project.scripts]
fastapi-django = "fastapi_django.test:main"