-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
168 lines (155 loc) · 4.12 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"src/",
]
[project]
authors = [
{name = "Evgenii Moryakhin", email = "[email protected]"},
]
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"hypercorn==0.16.0",
"anyio==4.3.0",
"httpx==0.27.0",
"typing-extensions==4.11.0",
"motor==3.4.0",
"prometheus_client==0.20.0",
"apispec==6.6.1",
"msgspec==0.18.6",
"pyyaml==6.0.1",
"lxml==5.2.1",
"pydantic==2.7.1",
"pydantic-settings==2.2.1",
"redis==5.0.4",
"rich==13.7.1",
"structlog==24.1.0",
]
maintainers = [
{name = "Evgenii Moryakhin", email = "[email protected]"},
]
name = "asgiext"
readme = "README.md"
requires-python = "~=3.9"
version = "0.1.0"
[project.urls]
Repository = "https://github.com/evgenii-moriakhin/asgiext"
[project.optional-dependencies]
starlette = [
"starlette==0.38.0",
]
quart = [
"quart==0.19.6",
]
gunicorn = [
"gunicorn==21.2.0",
]
uvicorn = [
"uvicorn==0.29.0",
]
gunicorn_uvicorn = [
"asgiext[gunicorn, uvicorn]",
]
hypercorn = [
"hypercorn==0.16.0",
]
granian = [
"granian==1.2.1",
]
all = [
"asgiext[starlette, quart, gunicorn, uvicorn, hypercorn, granian]",
]
dev = [
"ruff==0.4.4",
"pyright==1.1.358",
"pytest",
"pytest-asyncio",
"pytest-mock",
"types-pyyaml",
"motor-types",
"polyfactory",
"types-redis",
"fakeredis",
"asgiext[all]",
]
[tool.pytest.ini_options]
pythonpath = "src/" # for correct import resolution from tests
[tool.pyright]
typeCheckingMode = "strict"
include = [
"src",
"tests",
]
extraPaths = [
"src/",
]
pythonVersion = "3.9"
pythonPlatform = "Linux"
[tool.ruff]
lint.select = [
"ALL",
]
lint.ignore = [
"A003", # flake8-builtins - class attribute {name} is shadowing a python builtin
"D100", # pydocstyle - missing docstring in public module
"D101", # pydocstyle - missing docstring in public class
"D102", # pydocstyle - missing docstring in public method
"D103", # pydocstyle - missing docstring in public function
"D104", # pydocstyle - missing docstring in public package
"D105", # pydocstyle - missing docstring in magic method
"D106", # pydocstyle - missing docstring in public nested class
"D107", # pydocstyle - missing docstring in __init__
"D202", # pydocstyle - no blank lines allowed after function docstring
"D205", # pydocstyle - 1 blank line required between summary line and description
"D415", # pydocstyle - first line should end with a period, question mark, or exclamation point
"ISC001", # Ruff formatter incompatible
"COM812", # Ruff formatter incompatible
"UP007", # Annotation for pydantic Base Model or msgspec Struct does not support some new typing syntax on the current version of python 3.9
"PGH003", # ability to ignore typing errors using type: ignore
"ANN101", # disable annotations for "self"
"ANN102", # disable annotations for "cls"
]
line-length = 120
src = [
"src",
"tests",
]
target-version = "py39"
output-format = "full"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # to use assertions in tests is necessary
"PLR2004", # magic values in tests are allowed
"ANN", # annotations in tests are optional
"ARG002", # unused arguments in tests can be
"PLR0913", # too many arguments allowed in tests
"SLF001", # private access in tests are allowed
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.isort]
known-first-party = [
"asgiext",
"tests",
]