-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy pathpyproject.toml
More file actions
216 lines (189 loc) · 5.67 KB
/
Copy pathpyproject.toml
File metadata and controls
216 lines (189 loc) · 5.67 KB
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
[build-system]
build-backend = 'setuptools.build_meta'
requires = [
'setuptools >= 61.0.0',
]
[project]
name = "kazoo"
dynamic = ["version", "readme"]
description = "Higher Level Zookeeper Client"
requires-python = ">=3.9"
license = {text = "Apache 2.0"}
authors = [
{name = "Kazoo team", email = "python-zk@googlegroups.com"},
]
keywords = ["zookeeper", "lock", "leader", "configuration"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Networking",
]
dependencies = ["typing-extensions>=4.13.2"]
[project.urls]
Homepage = "https://kazoo.readthedocs.io"
Documentation = "https://kazoo.readthedocs.io"
Changelog = "https://github.com/python-zk/kazoo/releases"
Source = "https://github.com/python-zk/kazoo"
"Bug Tracker" = "https://github.com/python-zk/kazoo/issues"
[project.optional-dependencies]
eventlet = ["eventlet>=0.17.1; implementation_name != 'pypy'"]
gevent = ["gevent>=1.2; implementation_name != 'pypy'"]
sasl = ["pure_sasl>=0.5.1"]
[dependency-groups]
ruff = [
"ruff==0.16.7",
]
test-extras = [
"objgraph==3.6.2",
"pyOpenSSL<26.2.0",
"pyjks==20.0.0",
"unittest-parametrize==1.4.0",
]
pytest = [
"pytest==8.4.2",
]
test = [
"coverage==7.10.7",
{include-group = "pytest"},
"pytest-cov==7.1.0",
"pytest-timeout==2.4.0",
{include-group = "test-extras"},
]
typing = [
"mypy==1.19.1",
"types-gevent==25.9.0.20251228",
"types-mock==5.2.0.20250924",
"types-objgraph==3.6.0.20240907",
"types-pyjks==20.0.0.20240310",
]
mypy = [
{include-group = "typing"},
{include-group = "test-extras"},
{include-group = "pytest"},
]
[tool.setuptools]
zip-safe = false
include-package-data = true
packages = {find = {}}
license-files = ["LICENSE"]
[tool.setuptools.package-data]
kazoo = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "kazoo.version.__version__"}
readme = {file = ["README.md", "CHANGES.md", "CONTRIBUTING.md"], content-type = "text/markdown"}
[tool.ruff]
line-length = 79
target-version = "py39"
builtins = ["_"]
exclude = [
"docs/conf.py",
".git",
"__pycache__",
".venv",
".tox",
"build",
"dist",
"zookeeper",
]
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E203", # whitespace before ':' (black compatibility)
"E721", # do not compare types, use 'isinstance()'
"F401", # module imported but unused
"F811", # redefinition of unused name
"F821", # undefined name
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pytest.ini_options]
addopts = "-ra -v --color=yes"
log_cli = true
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s %(levelname)s %(message)s"
log_cli_level = "INFO"
# Per-test timeout in seconds
timeout = 180
[tool.mypy]
# For details on each flag, please see the mypy documentation at:
# https://mypy.readthedocs.io/en/stable/config_file.html#config-file
# Note: The order of flags listed here should match the order used in mypy's
# documentation to make it easier to find the documentation for each flag.
# Import Discovery
ignore_missing_imports = false
# Disallow dynamic typing
disallow_any_unimported = true
disallow_any_expr = false
# FIXME disallow_any_decorated is disabled because it produces an error for almost
# every decorated function (at least in python3.8)
disallow_any_decorated = false
# FIXME disallow_any_explicit is disabled because it produces a lot of errors
# which are currently hard to fix, and we want to avoid code changes as much as possible.
disallow_any_explicit = false
disallow_any_generics = true
disallow_subclassing_any = true
# Untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
# None and Optional handling
implicit_optional = false
strict_optional = true
# Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
# Miscellaneous strictness flags
allow_untyped_globals = false
allow_redefinition = false
# FIXME Disabled for now as we need to fix the X509 import.
#enable_error_code = ["deprecated"]
local_partial_types = true
implicit_reexport = false
strict_concatenate = true
strict_equality = true
strict = true
# Configuring error messages
show_error_context = true
show_column_numbers = true
hide_error_codes = false
pretty = true
color_output = true
error_summary = true
show_absolute_path = false
# Miscellaneous
warn_unused_configs = true
verbosity = 0
# This is a temporary workaround for the fact that mypy can
# produce different errors in 3.9 and 3.14, and I want to avoid code changes
# as much as possible.
disable_error_code = [ 'unused-ignore' ]
[[tool.mypy.overrides]]
module = ["eventlet.*"]
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = ["gevent.thread"]
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = ["puresasl.*"]
follow_untyped_imports = true