forked from ask/mode
-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
234 lines (209 loc) · 5 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
[build-system]
requires = [
"setuptools>=61.0",
"setuptools_scm[toml]",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# enables setuptools_scm to provide the dynamic version
[tool.setuptools.package-data]
"modeStreaming" = ["py.typed"]
[tool.distutils.bdist_wheel]
universal = true
[project]
name = "mode-streaming"
dynamic = [
"version",
]
description = "AsyncIO Service-based programming"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["asyncio", "service", "bootsteps", "graph", "coroutine"]
authors = [
{ name = "Ask Solem Hoel", email= "ask@robinhood.com" },
]
maintainers = [
{ name = "William Barnhart", email = "williambbarnhart@gmail.com" },
]
classifiers = [
"Framework :: AsyncIO",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Unix",
"Environment :: No Input/Output (Daemon)",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
]
dependencies = [
"colorlog>=6.0.0,<7.0.0",
"croniter>=2.0.0,<3.0.0",
"mypy_extensions",
]
[project.optional-dependencies]
eventlet = [
"faust-aioeventlet",
"dnspython",
]
gevent = [
"asyncio-gevent~=0.2",
]
uvloop = [
"uvloop>=0.19.0",
]
[project.urls]
Homepage = "https://github.com/faust-streaming/mode"
Documentation = "https://faust-streaming.github.io/mode/"
Repository = "https://github.com/faust-streaming/mode"
[tool.pytest.ini_options]
minversion = "6.0"
python_classes = "test_*"
testpaths = [
"tests/unit",
"tests/functional",
]
[tool.coverage.run]
parallel = true
context = '${CONTEXT}'
source = [
"mode",
"tests/*"
]
omit = [
"venv/*",
"tests/*",
# tested by functional tests
"mode/loop/*",
# not needed
"mode/types/*",
"mode/utils/types/*",
"mode/utils/mocks.py",
# been in celery since forever
"mode/utils/graphs/*",
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
"@abc.abstractmethod",
"if sys.platform == 'win32':",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:"
]
fail_under = 93
show_missing = true
[tool.mypy]
# --strict but not --implicit-optional
cache_fine_grained = true
check_untyped_defs = true
disallow_any_decorated = false
disallow_any_expr = false
disallow_any_generics = false
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "normal"
ignore_missing_imports = true
implicit_reexport = false
no_implicit_optional = false
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff]
target-version = "py38"
line-length = 79
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"examples",
"buck-out",
"build",
"dist",
"docs",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D101",# pydocstyle: docstring in public class
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # bandit
"W", # pycodestyle warnings
"RUF", # Ruff-specific warnings
"UP", # pyupgrade
"PT", # style check for pytest
]
ignore = [
# line too long, handled by ruff format
"E501",
# Disable bandit check of "assert" in code as they are used to fix
# mypy detection in some case
"S101",
# Ignore: `@pytest.mark.parametrize`, expected `tuple`
"PT006",
# Allow pytest.mark.asyncio without the parentheses
"PT023"
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "S"]
[tool.ruff.lint.isort]
known-first-party = ["mode", "tests"]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
skip-magic-trailing-comma = true
# Like Black
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.commitizen]
version_provider = "pep621"