-
-
Notifications
You must be signed in to change notification settings - Fork 518
/
pyproject.toml
279 lines (258 loc) · 7.01 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
276
277
278
279
[build-system]
requires = [
"hatchling",
"hatch-vcs",
"param >=2.1.0",
"bokeh >=3.5.0,<3.6.0",
"pyviz_comms >=0.7.4",
"requests",
"packaging",
]
build-backend = "hatchling.build"
[project]
name = "panel"
dynamic = ["version"]
description = 'The powerful data exploration & web app framework for Python.'
readme = "README.md"
license = { text = "BSD" }
requires-python = ">=3.10"
authors = [{ name = "HoloViz developers", email = "developers@holoviz.org" }]
maintainers = [
{ name = "HoloViz developers", email = "developers@holoviz.org" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"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",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Office/Business",
"Topic :: Office/Business :: Financial",
"Topic :: Software Development :: Libraries",
]
dependencies = [
'bokeh >=3.5.0,<3.6.0',
'param >=2.1.0,<3.0',
'pyviz_comms >=2.0.0',
'markdown',
'markdown-it-py',
'linkify-it-py',
'mdit-py-plugins',
'requests',
'bleach',
'typing_extensions',
'pandas >=1.2',
'packaging',
'tqdm', # TODO: Should this be optional?
]
[project.urls]
Homepage = "https://panel.holoviz.org"
Source = "https://github.com/holoviz/panel"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
recommended = [
'jupyterlab',
'holoviews >=1.16.0',
'matplotlib',
'pillow',
'plotly',
]
fastapi = [
'bokeh-fastapi == 0.1.0',
'uvicorn',
]
dev = [
'watchfiles',
]
tests = [
'psutil' ,
'pytest',
'pytest-asyncio',
'pytest-rerunfailures',
'pytest-xdist',
]
mypy = [
"mypy",
"pandas-stubs",
"types-bleach",
"types-croniter",
"types-Markdown",
"types-psutil",
"types-requests",
"types-tqdm",
"typing-extensions",
]
[project.scripts]
panel = "panel.command:main"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["panel"]
[tool.hatch.build.targets.wheel.force-include]
"panel/dist" = "panel/dist"
[tool.hatch.build.targets.wheel.shared-data]
"scripts/jupyter-config/notebook.json" = "etc/jupyter/jupyter_notebook_config.d/panel-client-jupyter.json"
"scripts/jupyter-config/server.json" = "etc/jupyter/jupyter_server_config.d/panel-client-jupyter.json"
[tool.hatch.build.targets.sdist]
include = ["panel", "scripts", "examples"]
exclude = ["scripts/jupyterlite"]
[tool.hatch.build.targets.sdist.force-include]
"panel/dist" = "panel/dist"
[tool.hatch.build.hooks.vcs]
version-file = "panel/_version.py"
[tool.hatch.build.hooks.custom]
path = 'hatch_build.py'
[tool.ruff]
exclude = [
".git",
"__pycache__",
".tox",
".eggs",
"*.egg",
"doc",
"dist",
"build",
"_build",
"examples",
".ipynb_checkpoints",
"node_modules",
"apps",
]
line-length = 165
fix = true
[tool.ruff.lint]
ignore = [
"E402", # Module level import not at top of file
"E712", # Avoid equality comparisons to True; use if {cond}: for truth checks
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"W605", # Invalid escape sequence
"E701", # Multiple statements on one line
"B006", # Do not use mutable data structures for argument defaults
"B905", # `zip()` without an explicit `strict=` parameter
]
select = [
"B",
"E",
"F",
"W",
"PIE",
"T20",
"RUF006",
"UP004",
"UP006",
"UP020",
"UP028",
"UP030",
"UP031",
"UP032",
"UP034",
"UP036",
]
unfixable = [
"F401", # Unused imports
"F841", # Unused variables
]
[tool.ruff.lint.per-file-ignores]
"panel/tests/ui/jupyter_server_test_config.py" = ["F821"]
"panel/compiler.py" = ["T201"]
"panel/io/convert.py" = ["T201"]
"panel/pane/vtk/synchronizable_*.py" = ["T201"]
"scripts/*.py" = ["T201"]
"hatch_build.py" = ["T201"]
[tool.isort]
force_grid_wrap = 4
multi_line_output = 5
combine_as_imports = true
lines_between_types = 1
include_trailing_comma = true
[tool.codespell]
ignore-words-list = "nd,doubleclick,ser"
skip = "doc/generate_modules.py,examples/reference/templates/FastGridTemplate.ipynb,panel/.eslintrc.js,panel/package-lock.json,panel/package.json"
write-changes = true
[tool.pytest.ini_options]
# addopts = "-v --pyargs --doctest-ignore-import-errors --color=yes"
addopts = "--pyargs --doctest-ignore-import-errors --color=yes"
norecursedirs = "doc .git dist build _build .ipynb_checkpoints panel/examples"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
xfail_strict = true
minversion = "7"
log_cli_level = "INFO"
filterwarnings = [
"error",
# 2023-11: `pkg_resources` is deprecated
"ignore:Deprecated call to `pkg_resources.+?'zope:DeprecationWarning", # https://github.com/zopefoundation/meta/issues/194
"ignore: pkg_resources is deprecated as an API:DeprecationWarning:streamz.plugins", # https://github.com/python-streamz/streamz/issues/460
# 2024-06: Adding error to the filterwarnings
"ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning", # OK
"ignore:distutils Version classes are deprecated:DeprecationWarning:ipywidgets_bokeh.kernel", # OK
"ignore:unclosed file <_io.TextIOWrapper name='(/dev/null|nul)' mode='w':ResourceWarning", # OK
"ignore:Deprecated in traitlets 4.1, use the instance .metadata dictionary directly", # OK (ipywidgets internal)
]
[tool.mypy]
namespace_packages = true
explicit_package_bases = true
mypy_path = ""
exclude = []
[[tool.mypy.overrides]]
module = [
"altair.*",
"bokeh_django.*",
"bokeh.*",
"cachecontrol.*",
"cryptography.*",
"diskcache.*",
"flask.*",
"fsspec.*",
"holoviews.*",
"ipympl.*",
"ipywidgets_bokeh",
"ipywidgets.*",
"js.*",
"jupyter_bokeh.*",
"jupyter_server.*",
"langchain.*",
"lumen.*",
"magic.*",
"matplotlib.*",
"mdit_py_emoji.*",
"memray.*",
"myst_parser.*",
"nbconvert.*",
"nbformat.*",
"param.*",
"playwright.*",
"plotly.*",
"pydeck.*",
"pyecharts.*",
"pyinstrument.*",
"pyodide_http.*",
"pyodide.*",
"pyviz_comms.*",
"reacton.*",
"rpy2.*",
"scipy.*",
"setuptools_scm.*",
"snakeviz.*",
"streamz.*",
"textual.*",
"tranquilizer.*",
"vtk.*",
]
ignore_missing_imports = true