forked from bokeh/bokeh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
275 lines (250 loc) · 10.9 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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
[build-system]
requires = ["setuptools>=64", "setuptools-git-versioning", "colorama"]
build-backend = "setuptools.build_meta"
[project]
name = "bokeh"
dynamic = ["version"]
description = "Interactive plots and applications in the browser from Python"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"Jinja2 >=2.9",
"contourpy >=1.2",
"numpy >=1.16",
"packaging >=16.8",
"pandas >=1.2",
"pillow >=7.1.0",
"PyYAML >=3.10",
"tornado >=6.2",
"xyzservices >=2021.09.1",
]
authors = [
{email = "[email protected]"},
{name = "Bokeh Team"}
]
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Information Technology",
"Intended Audience :: Legal Industry",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: JavaScript",
"Topic :: Office/Business",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Utilities",
]
[project.urls]
homepage = "https://bokeh.org"
documentation = "https://docs.bokeh.org"
repository = "https://github.com/bokeh/bokeh"
[project.scripts]
bokeh = "bokeh.__main__:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools-git-versioning]
enabled = true
dev_template = "{tag}+{ccount}.g{sha}"
dirty_template = "{tag}+{ccount}.g{sha}.dirty"
[tool.pytest.ini_options]
timeout = 90
asyncio_mode = "strict"
norecursedirs = "build _build node_modules tests/support"
python_files = "*_tests.py *_test.py test_*.py"
markers = [
"sampledata: a test for bokeh.sampledata",
"selenium: a test as requiring selenium",
]
filterwarnings = [
"error",
'''ignore:Module already imported so cannot be rewritten. tests\.support\.plugins\.project:pytest.PytestAssertRewriteWarning''',
'''ignore:Properties {'name'} in class ModelThatOverridesName were previously declared on a parent class\. .*:RuntimeWarning''',
'''ignore:Jupyter is migrating its paths to use standard platformdirs.*:DeprecationWarning''',
'''ignore:'tile_providers module' was deprecated in Bokeh 3\.0\.0 and will be removed, use 'add_tile directly' instead:bokeh.util.warnings.BokehDeprecationWarning''',
'''ignore:There is no current event loop:DeprecationWarning''',
'''ignore:coroutine 'HTTPServer.close_all_connections' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'WebSocketProtocol13\.write_message\.<locals>\.wrapper' was never awaited:RuntimeWarning''',
'''ignore:coroutine 'PeriodicCallback._run' was never awaited:RuntimeWarning''',
'''ignore:make_current is deprecated; start the event loop first:DeprecationWarning''',
'''ignore:'get_provider' was deprecated in Bokeh 3\.0\.0 and will be removed, use 'add_tile directly' instead:bokeh.util.warnings.BokehDeprecationWarning''',
'''ignore:'HSL\(\)' was deprecated in Bokeh 2\.3\.1 and will be removed, use 'RGB\(\) or named colors' instead:bokeh.util.warnings.BokehDeprecationWarning''',
'''ignore:elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison:FutureWarning''',
'''ignore:HTTPResponse\.getheader\(\) is deprecated and will be removed in urllib3 v2\.1\.0\. .*:DeprecationWarning:selenium''',
'''ignore:unclosed <socket.socket .*>:ResourceWarning''',
'''ignore:unclosed event loop <.*>:ResourceWarning''',
'''ignore:move_to_element_with_offset\(\) currently tries to use the top left corner of the element as the origin; in Selenium 4\.3 it will use the in-view center point of the element as the origin\.:DeprecationWarning''',
'''ignore:Using or importing the ABCs from 'collections' instead of from 'collections\.abc' is deprecated since Python 3\.3, and in 3\.10 it will stop working:DeprecationWarning:tornado''',
'''ignore:Unknown config option. asyncio_mode:pytest.PytestConfigWarning''',
'''ignore:zmq\.eventloop\.ioloop is deprecated in pyzmq 17\. pyzmq now works with default tornado and asyncio eventloops\.:DeprecationWarning:jupyter_client''',
'''ignore:the `interpolation=` argument to percentile was renamed to `method=`.*:DeprecationWarning:pandas''',
'''ignore:numpy\.ufunc size changed, may indicate binary incompatibility\. Expected 216 from C header, got 232 from PyObject:RuntimeWarning''',
'''ignore:elementwise comparison failed; this will raise an error in the future\.:DeprecationWarning''',
'''ignore:numba is not installed\. This example will be painfully slow\.:UserWarning''',
'''ignore:Could not infer format, so each element will be parsed individually, falling back to `dateutil`\. To ensure parsing is consistent and as-expected, please specify a format\.:UserWarning''',
'''ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version:DeprecationWarning:dateutil''',
'''ignore:\s*Pyarrow will become a required dependency of pandas:DeprecationWarning''',
'''ignore:Exception ignored in. <.*>:pytest.PytestUnraisableExceptionWarning''',
]
[tool.coverage.run]
source = ["src/bokeh"]
omit = ["*/sampledata/*", "*/sphinxext/*", "*/tmp/tmp*.py"]
[tool.mypy]
python_version = "3.10"
mypy_path = "src/typings/"
files = ["src/typings", "src/bokeh", "release", "tests"]
strict = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
disallow_any_unimported = true
implicit_reexport = true
namespace_packages = true
warn_return_any = false
warn_unreachable = true
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"@overload",
]
[tool.ruff]
lint.allowed-confusables = ["σ"]
lint.exclude = [
".git",
'node_modules',
]
lint.per-file-ignores = {"__init__.py" = ["F403"]}
lint.select = ["B", "COM", "E", "F", "NPY", "RUF", "TID", "UP", "W"]
lint.ignore = [
'B005', # Using .strip() with multi-character strings is misleading the reader
'B006', # Do not use mutable data structures for argument defaults
'B007', # Loop control variable not used within the loop body
'B008', # Do not perform function calls in argument defaults
'B009', # Do not call getattr(x, 'attr'), instead use normal property access: x.attr
'B010', # Do not call setattr(x, 'attr', val), instead use normal property access: x.attr = val
'B011', # Do not call assert False since python -O removes these calls
'B015', # Pointless comparison. This comparison does nothing but waste CPU instructions
'B018', # Found useless expression. Either assign it to a variable or remove it
'B020', # Loop control variable overrides iterable it iterates
'B023', # Functions defined inside a loop must not use variables redefined in the loop
'B028', # No explicit `stacklevel` keyword argument found
'B904', # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
'B905', # `zip()` without an explicit `strict=` parameter
'E401', # Multiple imports on one line
'E402', # Module level import not at top of file
'E701', # Multiple statements on one line (colon)
'E702', # Multiple statements on one line (semicolon)
'E731', # Do not assign a lambda expression, use a def
'E741', # Ambiguous variable name: I
'NPY002', # Replace legacy np.random.{method_name} call with np.random.Generator
'UP035', # Import from `collections.abc` instead: `Iterator`
'RUF012', # Mutable class attributes should be annotated with `typing.ClassVar`
'TID252', # Prefer absolute imports over relative imports from parent modules
]
line-length = 165
target-version = "py310"
# For now enable each typed module individually.
[[tool.mypy.overrides]]
module = [
"bokeh.*",
"tests.*",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"bokeh.client.states",
"bokeh.colors.*",
"bokeh.command.*",
"bokeh.core.json_encoder",
"bokeh.core.properties",
"bokeh.core.property", # TODO: .*
"bokeh.core.property_mixins",
#"bokeh.core.property.alias",
"bokeh.core.property.any",
"bokeh.core.property.auto",
#"bokeh.core.property.bases",
"bokeh.core.property.color",
"bokeh.core.property.constraints",
#"bokeh.core.property.container",
#"bokeh.core.property.dataspec",
"bokeh.core.property.datetime",
#"bokeh.core.property.descriptor_factory",
#"bokeh.core.property.descriptors",
#"bokeh.core.property.either",
"bokeh.core.property.enum",
"bokeh.core.property.factors",
"bokeh.core.property.include",
#"bokeh.core.property.instance",
"bokeh.core.property.json",
"bokeh.core.property.nothing",
"bokeh.core.property.nullable",
"bokeh.core.property.numeric",
"bokeh.core.property.override",
"bokeh.core.property.pd",
"bokeh.core.property.primitive",
"bokeh.core.property.readonly",
"bokeh.core.property.required",
"bokeh.core.property.serialized",
"bokeh.core.property.singletons",
"bokeh.core.property.string",
#"bokeh.core.property.struct",
"bokeh.core.property.text_like",
#"bokeh.core.property.validation",
#"bokeh.core.property.vectorization",
#"bokeh.core.property.visual",
#"bokeh.core.property.wrappers",
"bokeh.core.query",
"bokeh.core.serialization",
"bokeh.core.templates",
"bokeh.core.types",
"bokeh.core.validation",
"bokeh.document.callbacks",
"bokeh.document.json",
"bokeh.document.locking",
"bokeh.document.models",
"bokeh.document.modules",
"bokeh.driving",
"bokeh.embed.standalone",
"bokeh.embed.wrappers",
"bokeh.ext.*",
"bokeh.io.*",
"bokeh.palettes",
"bokeh.plotting._tools",
"bokeh.protocol.*",
"bokeh.sampledata.*",
"bokeh.server.callbacks",
"bokeh.server.server",
"bokeh.server.tornado",
"bokeh.server.urls",
"bokeh.server.util",
"bokeh.util.*",
"tests.codebase.*",
"tests.support.defaults",
"tests.test_bokehjs",
"tests.test_cross",
"tests.test_defaults",
"tests.test_examples",
"tests.unit.bokeh.document.test_callbacks__document",
"tests.unit.bokeh.embed.test_standalone",
#"tests.unit.bokeh.models._util_models",
"tests.unit.bokeh.test_layouts__typing",
]
ignore_errors = false