forked from python-ellar/ellar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
157 lines (142 loc) · 3.95 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
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "ellar"
[project]
name = "ellar"
authors = [
{name = "Ezeudoh Tochukwu", email = "[email protected]"},
]
dynamic = ["version", "description"]
requires-python = ">=3.7"
readme = "README.md"
home-page = "https://github.com/eadwinCode/ellar"
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Framework :: AsyncIO",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"injector == 0.21.0",
"starlette == 0.31.1",
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
"jinja2",
# cli
"typer >=0.6.1,<0.10.0",
# testing
"httpx >= 0.22.0"
]
[project.urls]
Documentation = "https://github.com/eadwinCode/ellar"
Source = "https://github.com/eadwinCode/ellar"
Homepage = "https://eadwincode.github.io/ellar/"
[project.optional-dependencies]
test = [
"pytest >= 6.2.4,<8.0.0",
"pytest-cov >= 2.12.0,<5.0.0",
"black ==22.12.0",
"mypy == 1.5.1",
"ruff ==0.0.275",
"pytest-asyncio",
"databases[sqlite] >= 0.3.2",
"orjson >= 3.2.1",
"ujson >= 4.0.1",
"python-multipart >= 0.0.5",
"anyio[trio] >= 3.2.1",
"autoflake",
"email_validator >=1.1.1",
"pylibmc",
"pymemcache",
"aiomcache",
"redis",
"itsdangerous >=1.1.0,<3.0.0",
# types
"types-ujson ==5.8.0.1",
"types-orjson ==3.6.2",
"types-redis ==4.6.0.5",
"types-dataclasses ==0.6.6",
"python-socketio",
"uvicorn[standard] == 0.23.2",
"aiohttp == 3.8.5",
]
dev = [
"pre-commit"
]
all = [
"python-multipart >=0.0.5,<0.0.7",
"itsdangerous >=1.1.0,<3.0.0",
"pyyaml >=5.3.1,<7.0.0",
"ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0",
"orjson >=3.2.1,<4.0.0",
"email_validator >=1.1.1,<3.0.0",
]
doc = [
"mkdocs >=1.1.2,<2.0.0",
"mkdocs-material >=7.1.9,<10.0.0",
"mdx-include >=1.4.1,<2.0.0",
"mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0",
"markdown-include",
"mkdocstrings",
"mkdocs-minify-plugin",
"mkdocs-git-revision-date-localized-plugin"
]
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.isort]
known-third-party = ["ellar", "pydantic", "starlette"]
[tool.mypy]
show_column_numbers = true
follow_imports = 'normal'
ignore_missing_imports = true
# be strict
disallow_untyped_calls = true
warn_return_any = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
check_untyped_defs = true
implicit_reexport = false
[[tool.mypy.overrides]]
module = "ellar.common.compatible.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "ellar.core.services.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "ellar.samples.*"
ignore_errors = true