forked from dask/distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
140 lines (131 loc) · 6.69 KB
/
setup.cfg
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
[flake8]
# References:
# https://flake8.readthedocs.io/en/latest/user/configuration.html
# https://flake8.readthedocs.io/en/latest/user/error-codes.html
# Note: there cannot be spaces after commas here
exclude = __init__.py,versioneer.py,distributed/_concurrent_futures_thread.py
ignore =
# Ignores below are aligned with black https://github.com/psf/black/blob/main/.flake8
E203, # Whitespace before ':'
E266, # Too many leading '#' for block comment
E501, # Line too long
W503, # Line break occurred before a binary operator
per-file-ignores =
**/tests/*:
# Module level import not at top of file (to silence on pytest.importorskip)
# See https://github.com/PyCQA/pycodestyle/issues/472
E402,
# Do not use variables named 'I', 'O', or 'l'
E741,
# Local variable name is assigned to but never used
F841,
max-line-length = 88
[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
[versioneer]
VCS = git
style = pep440
versionfile_source = distributed/_version.py
versionfile_build = distributed/_version.py
tag_prefix =
parentdir_prefix = distributed-
[tool:pytest]
addopts =
-v -rsxfE
--durations=20
--color=yes
--ignore=continuous_integration
--ignore=docs
--ignore=.github
--strict-markers
--strict-config
-p no:asyncio
filterwarnings =
error
ignore:Please use `dok_matrix` from the `scipy\.sparse` namespace, the `scipy\.sparse\.dok` namespace is deprecated.:DeprecationWarning
ignore:There is no current event loop: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: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:Running on a single-machine scheduler when a distributed client is active might lead to unexpected results\.: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 AsyncProcess Dask Worker process \(from Nanny\) watch process join.*assert exitcode is not None:pytest.PytestUnhandledThreadExceptionWarning
ignore:(?s)Exception in thread AsyncProcess SpawnProcess-\d+ watch process join.*assert exitcode is not None:pytest.PytestUnhandledThreadExceptionWarning
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
minversion = 6
markers =
ci1: marks tests as belonging to 1 out of 2 partitions to run on CI ('-m "not ci1"' for second partition)
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
[mypy]
# Silence errors about Python 3.9-style delayed type annotations on Python 3.8
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
# FIXME must clean these modules up
[mypy-distributed.client]
allow_incomplete_defs = true
[mypy-distributed.scheduler]
allow_incomplete_defs = true
[mypy-distributed.worker]
allow_incomplete_defs = true
# Recent or recently overhauled modules featuring stricter validation
[mypy-distributed.active_memory_manager]
allow_untyped_defs = false
[mypy-distributed.worker_memory]
allow_untyped_defs = false
[mypy-distributed.worker_state_machine]
allow_untyped_defs = false