-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
236 lines (207 loc) · 4.71 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
235
236
[tool.poetry]
name = "celery-k8s"
version = "0.1.0-rc.1" # cog-version
description = "Celery pool class for using Kubernetes `Job`s as a worker pool"
license = "AGPL-3.0-or-later"
authors = [
"Mark S. <[email protected]>",
]
readme = "README.md"
homepage = "https://github.com/the-wondersmith/celery-k8s"
repository = "https://github.com/the-wondersmith/celery-k8s"
documentation = "https://github.com/the-wondersmith/celery-k8s"
packages = [
{ include = "celery_k8s" },
]
keywords = [
"pool",
"celery",
"concurrency",
"background-jobs",
]
classifiers = [
"Natural Language :: English",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
]
[tool.poetry.dependencies]
# Supported Python versions
python = ">=3.8,<3.12"
# Core project dependencies
anyio = "*"
celery = "^5"
kubernetes = "^26.1"
more-itertools = "*"
python-dotenv = "*"
pyyaml = "^6"
typing-extensions = "*"
[tool.poetry.group.dev.dependencies]
# Formatting & Linting
black = "*"
codespell = ">= 2.1, < 2.2.2"
docformatter = ">=1.4"
flake8 = ">=5"
flake8-bugbear = ">=22"
flake8-docstrings = ">=1.6"
isort = { version = "^5", extras = [ "colors" ] }
mypy = "*"
pre-commit = ">=2"
pre-commit-hooks = ">=4"
pydocstyle = "*"
pylint = "*"
# Testing
pytest = "^7"
pytest-cov = "^3"
pytest-describe = "^2"
# Reports & Logging
coverage = { version = "^6", extras = ["toml"] }
[tool.pytest.ini_options]
minversion = "7.1"
addopts = '''
--disable-pytest-warnings
--strict-markers
--cov
--cov-config=pyproject.toml
--cov-report html
--no-cov-on-fail
-r
fEsxp
'''
cache_dir = "./.cache"
collect_ignore = [
"setup.py",
]
doctest_optionflags = [
"ALLOW_BYTES",
"ALLOW_UNICODE",
"NORMALIZE_WHITESPACE",
]
testpaths = [
"tests",
]
markers = [
"descriptor",
"description",
"describe_nested",
]
python_classes = [
"Test*",
"Describe*",
]
python_functions = [
"test_*",
"describe_*",
]
[tool.coverage.report]
fail_under = 50
show_missing = true
[tool.coverage.run]
branch = true
parallel = true
disable_warnings = ["no-data-collected"]
source = ["celery_k8s"]
omit = [
".git",
".tox/*",
"conf/*",
"venv/*",
"tests/*",
"scratch*.py",
]
[tool.black]
color = true
safe = true
line-length = 120
target-version = ["py310"]
skip-string-normalization = false
[tool.isort]
profile = "black"
atomic = true
py_version = 310
verbose = false
remove_redundant_aliases = true
ensure_newline_before_comments = true
color_output = true
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 2
use_parentheses = true
line_length = 120
combine_as_imports = true
honor_noqa = true
skip_gitignore = true
default_section = "THIRDPARTY"
known_first_party = ["celery_k8s", "tests"]
import_heading_future = "Future Imports"
import_heading_stdlib = "Standard Library Imports"
import_heading_thirdparty = "Third-Party Imports"
import_heading_firstparty = "Package-Level Imports"
import_heading_localfolder = "Imports From Package Sub-Modules"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
src_paths = ["celery_k8s", "tests"]
[tool.pylint.master]
jobs = 0
persistent = false
[tool.pylint.format]
max-module-lines = 3000
[tool.pylint.messages_control]
disable = [
# Message Categories
"C", # convention checks
"R", # refactoring checks
"W", # various warnings
# Handled by pre-commit-hooks
"trailing-whitespace",
"missing-final-newline",
# Handled by flake8
"line-too-long",
"unused-import",
"unused-variable",
"too-many-branches",
"undefined-variable",
# Handled by isort
"wrong-import-order",
# Specific Messages
"no-member",
"bare-except",
"file-ignored",
"invalid-name",
"bad-super-call",
"unused-argument",
"locally-disabled",
"bad-inline-option",
"deprecated-pragma",
"no-name-in-module",
"raw-checker-failed",
"suppressed-message",
"useless-suppression",
"c-extension-no-member",
"use-symbolic-message-instead",
]
[tool.pylint.reports]
score = false
[tool.mypy]
cache_dir = ".cache/mypy/"
check_untyped_defs = true
error_summary = true
exclude = "/tests/"
ignore_errors = true
ignore_missing_imports = true
install_types = false
follow_imports = "silent"
strict = false
pretty = true
python_version = 3.10
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_none_errors = false
strict_optional = false
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"