-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
96 lines (88 loc) · 2.91 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
[flake8]
# References:
# https://flake8.readthedocs.io/en/latest/user/configuration.html
# https://flake8.readthedocs.io/en/latest/user/error-codes.html
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
exclude = __init__.py,versioneer.py
ignore =
E20, # Extra space in brackets
E231,E241, # Multiple spaces around ","
E26, # Comments
E4, # Import formatting
E721, # Comparing types instead of isinstance
E731, # Assigning lambda expression
E741, # Ambiguous variable names
W503, # line break before binary operator
W504, # line break after binary operator
F811, # redefinition of unused 'loop' from line 10
max-line-length = 120
per-file-ignores =
*_test.py:
# Do not call assert False since python -O removes these calls
B011,
**/tests/*:
# Do not call assert False since python -O removes these calls
B011,
[isort]
sections = FUTURE,STDLIB,THIRDPARTY,DISTRIBUTED,FIRSTPARTY,LOCALFOLDER
profile = black
skip_gitignore = true
force_to_top = true
default_section = THIRDPARTY
known_first_party = dask
known_distributed = distributed
[versioneer]
VCS = git
style = pep440
versionfile_source = dask/_version.py
versionfile_build = dask/_version.py
tag_prefix =
parentdir_prefix = dask-
[aliases]
test = pytest
[options.package_data]
dask =
py.typed
[tool:pytest]
markers:
network: Test requires an internet connection
slow: Skipped unless --runslow passed
gpu: marks tests we want to run on GPUs
addopts = -v -rsxfE --durations=10 --color=yes
filterwarnings =
# From Cython-1753
ignore:can't resolve:ImportWarning
error:::dask[.*]
error:::pandas[.*]
error:::numpy[.*]
error:::distributed[.*]
# From https://github.com/numpy/numpy/issues/20225
ignore:The distutils\.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning:numpy
# With no network access, distributed raises a warning when detecting local IP address
ignore:Couldn't detect a suitable IP address:RuntimeWarning:distributed
# Ignore FutureWarning for change in group_keys behavior: no changes required on the dask side.
# https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#using-group-keys-with-transformers-in-groupby-apply
ignore:Not prepending group keys:FutureWarning
xfail_strict=true
[metadata]
license_files =
LICENSE.txt
dask/array/NUMPY_LICENSE.txt
[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
plugins = numpy.typing.mypy_plugin
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
[codespell]
ignore-words-list = coo,nd
skip = docs/source/changelog.rst