forked from bokeh/bokeh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
239 lines (213 loc) · 6.94 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>=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.9"
dependencies = [
"Jinja2 >=2.9",
"contourpy >=1",
"numpy >=1.16",
"packaging >=16.8",
"pandas >=1.2",
"pillow >=7.1.0",
"PyYAML >=3.10",
"tornado >=5.1",
"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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"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 = 60
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",
]
[tool.coverage.run]
source = ["src/bokeh"]
omit = ["*/sphinxext/*", "*/tmp/tmp*.py"]
[tool.mypy]
python_version = "3.9"
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_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.ruff]
exclude = [
".git",
'node_modules',
]
per-file-ignores = {"__init__.py" = ["F403"]}
select = ["B", "E", "F", "RUF", "UP", "W"]
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
'B020', # Loop control variable overrides iterable it iterates
'B023', # Functions defined inside a loop must not use variables redefined in the loop
'B904', # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
'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
'RUF001',
'RUF005',
]
line-length = 165
target-version = "py38"
[tool.ruff.pyupgrade]
keep-runtime-typing = true
# 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.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_defaults",
"tests.test_examples",
"tests.unit.bokeh.document.test_callbacks__document",
"tests.unit.bokeh.embed.test_standalone",
#"tests.unit.bokeh.models._util_models",
]
ignore_errors = false