-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathpyproject.toml
146 lines (131 loc) · 3.83 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "emmett"
version = "2.6.3"
description = "The web framework for inventors"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.8"
authors = [
{ name = "Giovanni Barillari", email = "[email protected]" }
]
keywords = ["web", "asyncio"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"click>=6.0",
"emmett-core[granian,rapidjson]~=1.0.4",
"emmett-pydal==17.3.1",
"pendulum~=3.0.0",
"pyyaml~=6.0",
"renoir~=1.6",
"severus~=1.1",
]
[project.optional-dependencies]
orjson = ["orjson~=3.10"]
uvicorn = [
"uvicorn~=0.19",
"h11>=0.12",
"websockets~=10.0",
"httptools~=0.6; sys_platform != 'win32'"
]
[project.urls]
Homepage = 'https://emmett.sh'
Documentation = 'https://emmett.sh/docs'
Funding = 'https://github.com/sponsors/gi0baro'
Source = 'https://github.com/emmett-framework/emmett'
Issues = 'https://github.com/emmett-framework/emmett/issues'
[project.scripts]
emmett = "emmett.cli:main"
[tool.hatch.build.targets.sdist]
include = [
'/README.md',
'/CHANGES.md',
'/LICENSE',
'/docs',
'/emmett',
'/tests',
]
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = 'double'
[tool.ruff.lint]
extend-select = [
# E and F are enabled by default
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C90', # mccabe
'I', # isort
'N', # pep8-naming
'Q', # flake8-quotes
'RUF100', # ruff (unused noqa)
'S', # flake8-bandit
'W', # pycodestyle
]
extend-ignore = [
'B006', # mutable function args are fine
'B008', # function calls in args defaults are fine
'B009', # getattr with constants is fine
'B034', # re.split won't confuse us
'B904', # rising without from is fine
'E731', # assigning lambdas is fine
'F403', # import * is fine
'N801', # leave to us class naming
'N802', # leave to us method naming
'N806', # leave to us var naming
'N811', # leave to us var naming
'N814', # leave to us var naming
'N818', # leave to us exceptions naming
'S101', # assert is fine
'S104', # leave to us security
'S105', # leave to us security
'S106', # leave to us security
'S107', # leave to us security
'S110', # pass on exceptions is fine
'S301', # leave to us security
'S324', # leave to us security
]
mccabe = { max-complexity = 44 }
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
known-first-party = ['emmett', 'tests']
[tool.ruff.lint.per-file-ignores]
'emmett/__init__.py' = ['F401']
'emmett/http.py' = ['F401']
'emmett/orm/__init__.py' = ['F401']
'emmett/orm/engines/__init__.py' = ['F401']
'emmett/orm/migrations/__init__.py' = ['F401']
'emmett/orm/migrations/revisions.py' = ['B018']
'emmett/tools/__init__.py' = ['F401']
'emmett/tools/auth/__init__.py' = ['F401']
'emmett/validators/__init__.py' = ['F401']
'tests/**' = ['B017', 'B018', 'E711', 'E712', 'E741', 'F841', 'S110', 'S501']
[tool.pytest.ini_options]
asyncio_mode = 'auto'
[tool.uv]
dev-dependencies = [
"ipaddress>=1.0",
"pytest>=7.1",
"pytest-asyncio>=0.15",
"psycopg2-binary~=2.9",
"ruff~=0.5.0",
]