-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
190 lines (174 loc) · 4.02 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aioworkers-aiohttp"
dynamic = ["version"]
description = "Integrations aioworkers with aiohttp"
readme = "README.rst"
license = "Apache-2.0"
requires-python = ">=3.7"
authors = [
{ name = "Alexander Malev", email = "yttrium@somedev.ru" },
]
keywords = [
"aiohttp",
"aioworkers",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"aiohttp-apiset>=0.9.15",
"aiohttp>=3.8",
"aioworkers>0.20",
]
[project.optional-dependencies]
dev-test = [
"aioworkers==0.21.1",
"aiohttp-apiset==0.9.16",
"coverage[toml]==7.2.7",
"pytest==7.4.0",
"pytest-aioworkers[aiohttp]==0.4",
"pytest-mock==3.11.1",
"pyyaml==6.0.1",
]
dev-lint = [
"ruff==0.1.6",
"isort==5.12.0",
"black==23.9.1",
"mypy==1.7.0",
]
[project.entry-points.aioworkers]
aiohttp = "aioworkers_aiohttp:plugin"
[project.urls]
Homepage = "https://github.com/aioworkers/aioworkers-aiohttp"
Documentation = "https://github.com/aioworkers/aioworkers-aiohttp#readme"
Issues = "https://github.com/aioworkers/aioworkers-aiohttp/issues"
Source = "https://github.com/aioworkers/aioworkers-aiohttp"
[tool.hatch.version]
path = "aioworkers_aiohttp/__init__.py"
[tool.hatch.build]
include = [
"/aioworkers_aiohttp",
]
[tool.hatch.envs.default]
features = [
"dev-test",
]
[tool.hatch.envs.default.scripts]
cov = [
"coverage run -m pytest",
"coverage report",
]
[[tool.hatch.envs.all.matrix]]
python = [
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"aioworkers_aiohttp",
"tests",
]
addopts = [
"--doctest-modules",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
branch = false
parallel = false
source = [
"aioworkers_aiohttp",
"tests",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = [
"py37",
"py38",
"py39",
"py310",
"py311",
]
[tool.isort]
profile = "black"
multi_line_output = 3
lines_after_imports = 2
force_single_line = false
include_trailing_comma = true
known_first_party = [
"aioworkers_aiohttp",
]
known_third_party = [
"aioworkers",
"aiohttp",
]
[tool.mypy]
follow_imports = "silent"
strict_optional = true
warn_redundant_casts = true
ignore_missing_imports = true
check_untyped_defs = true
[tool.ruff]
line-length = 120
[tool.hatch.envs.lint]
python = "3.8"
features = [
"dev-lint",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:aioworkers_aiohttp tests}"
style = [
"ruff {args:aioworkers_aiohttp tests}",
"isort --check-only --diff {args:aioworkers_aiohttp tests}",
"black --check --diff {args:aioworkers_aiohttp tests}",
]
fmt = [
"ruff --fix {args:aioworkers_aiohttp tests}",
"isort {args:aioworkers_aiohttp tests}",
"black {args:aioworkers_aiohttp tests}",
"style",
]
all = [
"style",
"typing",
]
[tool.hatch.envs.template]
detached = true
dependencies = [
"scaraplate",
]
[tool.hatch.envs.template.scripts]
update = [
"scaraplate rollup --no-input {args:../cookiecutter-aioworkers-plugin} ."
]
clone = [
"git clone https://github.com/aioworkers/cookiecutter-aioworkers-plugin {args:../cookiecutter-aioworkers-plugin}"
]