forked from dask/distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
239 lines (220 loc) · 8.82 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
237
238
239
[build-system]
requires = ["setuptools>=62.6", "versioneer[toml]==0.28"]
build-backend = "setuptools.build_meta"
[project]
name = "distributed"
description = "Distributed scheduler for Dask"
maintainers = [{name = "Matthew Rocklin", email = "mrocklin@gmail.com"}]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
]
readme = "README.rst"
requires-python = ">=3.9"
dependencies = [
"click >= 8.0",
"cloudpickle >= 1.5.0",
"dask == 2023.8.0",
"jinja2 >= 2.10.3",
"locket >= 1.0.0",
"msgpack >= 1.0.0",
"packaging >= 20.0",
"psutil >= 5.7.2",
"pyyaml >= 5.3.1",
"sortedcontainers >= 2.0.5",
"tblib >= 1.6.0",
"toolz >= 0.10.0",
"tornado >= 6.0.4",
"urllib3 >= 1.24.3",
"zict >= 2.2.0",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://distributed.dask.org"
Source = "https://github.com/dask/distributed"
[project.entry-points.dask_cli]
scheduler = "distributed.cli.dask_scheduler:main"
worker = "distributed.cli.dask_worker:main"
ssh = "distributed.cli.dask_ssh:main"
spec = "distributed.cli.dask_spec:main"
[project.scripts]
dask-ssh = "distributed.cli.dask_ssh:main"
dask-scheduler = "distributed.cli.dask_scheduler:main"
dask-worker = "distributed.cli.dask_worker:main"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
exclude = ["*tests*"]
namespaces = false
[tool.setuptools.package-data]
"*" = [
"templates/index.html",
"template.html",
]
distributed = [
"http/templates/*.html",
"py.typed",
]
[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DISTRIBUTED", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
force_to_top = ["true"]
default_section = "THIRDPARTY"
known_first_party = ["distributed"]
known_distributed = ["dask", "zict"]
add_imports = ["from __future__ import annotations"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "distributed/_version.py"
versionfile_build = "distributed/_version.py"
tag_prefix = ""
parentdir_prefix = "distributed-"
[tool.pytest.ini_options]
addopts = '''
-v -rsxfE
--durations=20
--color=yes
--ignore=continuous_integration
--ignore=docs
--ignore=.github
--strict-markers
--strict-config
--cov-config=pyproject.toml
-p no:asyncio
-p no:legacypath'''
filterwarnings = [
"error",
'''ignore:Please use `dok_matrix` from the `scipy\.sparse` namespace, the `scipy\.sparse\.dok` namespace is deprecated.:DeprecationWarning''',
'''ignore:elementwise comparison failed. this will raise an error in the future:DeprecationWarning''',
'''ignore:unclosed <socket\.socket.*:ResourceWarning''',
'''ignore:unclosed context <zmq\.asyncio\.Context\(\).*:ResourceWarning''',
'''ignore:unclosed event loop <_(Unix|Windows)SelectorEventLoop.*:ResourceWarning''',
'''ignore:unclosed file <_io.BufferedWriter.*:ResourceWarning''',
'''ignore:unclosed file <_io.TextIOWrapper.*:ResourceWarning''',
'''ignore:unclosed transport <_SelectorSocketTransport.*:ResourceWarning''',
'''ignore:unclosed transport <asyncio\.sslproto\..*:ResourceWarning''',
'''ignore:unclosed cluster SSHCluster.*:ResourceWarning''',
'''ignore:Couldn't detect a suitable IP address for reaching '2001.4860.4860..8888', defaulting to hostname. \[Errno 65\] No route to host:RuntimeWarning''',
'''ignore:Dashboard and Scheduler are using the same server on port.*:RuntimeWarning''',
'''ignore:coroutine 'BaseTCPConnector.connect' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'Client\._start' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'ConnectionPool._connect' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'PooledRPCCall\.__getattr__\.<locals>\.send_recv_from_rpc' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'Scheduler\.restart' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'Semaphore._refresh_leases' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'ServerSession\.with_document_locked' was never awaited''',
'''ignore:overflow encountered in long_scalars:RuntimeWarning''',
'''ignore:Creating scratch directories is taking a surprisingly long time.*:UserWarning''',
'''ignore:Scheduler already contains a plugin with name nonidempotentplugin. overwriting:UserWarning''',
'''ignore:Increasing number of chunks by factor of 20::dask.array.core.PerformanceWarning''',
'''ignore::distributed.versions.VersionMismatchWarning''',
'''ignore:(?s)Exception in thread.*old_ssh.*channel\.send\(b"\\x03"\).*Socket is closed:pytest.PytestUnhandledThreadExceptionWarning''',
'''ignore:(?s)Exception in thread.*paramiko\.ssh_exception\.NoValidConnectionsError:pytest.PytestUnhandledThreadExceptionWarning''',
'''ignore:(?s)Exception ignored in. <Finalize object, dead>.*sem_unlink.*FileNotFoundError:pytest.PytestUnraisableExceptionWarning''',
'''ignore:(?s)Exception ignored in. <coroutine object Scheduler\.add_worker.*in handle_worker.*Event loop is closed:pytest.PytestUnraisableExceptionWarning''',
'''ignore:(?s)Exception ignored in. <function Client\.__del__.*RuntimeError. IOLoop is closed:pytest.PytestUnraisableExceptionWarning''',
'''ignore:notifyAll\(\) is deprecated, use notify_all\(\) instead:DeprecationWarning:paramiko''',
'''ignore:setDaemon\(\) is deprecated, set the daemon attribute instead:DeprecationWarning:paramiko''',
'''ignore:`np.bool8` is a deprecated alias for `np.bool_`''',
]
minversion = "6"
markers = [
"ci1: marks tests as belonging to 1 out of 2 partitions to run on CI ('-m \"not ci1\"' for second partition)",
"extra_packages: marks tests that require a special dependency to run.",
"slow: marks tests as slow (deselected by default", # select with '--runslow')
"avoid_ci: marks tests as flaky or broken on CI on all OSs",
"ipython: marks tests as exercising IPython",
"gpu: marks tests we want to run on GPUs",
"leaking: ignore leaked resources", # see pytest_resourceleaks.py for usage
"workerstate: deterministic test for the worker state machine. Automatically applied to all tests that use the 'ws' fixture.",
]
# pytest-timeout settings
# 'thread' kills off the whole test suite. 'signal' only kills the offending test.
# However, 'signal' doesn't work on Windows (due to lack of SIGALRM).
# The CI script modifies this config file on the fly on Linux and MacOS.
timeout_method = "thread"
# This should not be reduced; Windows CI has been observed to be occasionally
# exceptionally slow.
timeout = 300
[tool.mypy]
python_version = "3.9"
# See https://github.com/python/mypy/issues/12286 for automatic multi-platform support
platform = "linux"
# platform = win32
# platform = darwin
allow_incomplete_defs = false
allow_untyped_decorators = false
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
[[tool.mypy.overrides]]
# FIXME must clean these modules up
# Also look for 'mypy: disable-error-code' at the top of modules
module = ["distributed.client", "distributed.worker"]
allow_incomplete_defs = true
[[tool.mypy.overrides]]
# Recent or recently overhauled modules featuring stricter validation
module = [
"distributed.active_memory_manager",
"distributed.spans",
"distributed.system_monitor",
"distributed.worker_memory",
"distributed.worker_state_machine",
"distributed.config",
"distributed.shuffle.*",
]
allow_untyped_defs = false
[[tool.mypy.overrides]]
module = ["distributed.shuffle.tests.*"]
allow_untyped_defs = true
[tool.codespell]
ignore-words-list = "statics"
skip = "docs/source/changelog.rst"
[tool.coverage.run]
source = ["distributed"]
omit = [
"distributed/tests/test*",
"distributed/*/tests/test*",
"distributed/cli/utils.py",
"distributed/cli/dask_spec.py",
"distributed/deploy/ssh.py",
"distributed/_version.py",
"distributed/pytest_resourceleaks.py",
"distributed/comm/ucx.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# re-enable the standard pragma
"pragma: nocover",
"pragma: no cover",
# exclude nvml calls
'[\s(.]nvml[\s(.]',
'[\s(.]pynvml[\s(.]',
# exclude LOG_PDB
"LOG_PDB",
# always ignore type checking blocks
"TYPE_CHECKING",
"except ImportError",
"@overload",
]
[tool.coverage.html]
directory = "coverage_html_report"