forked from holoviz/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
203 lines (184 loc) · 5.3 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
[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 = "[email protected]" }]
maintainers = [
{ name = "HoloViz developers", email = "[email protected]" },
]
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',
]
standard = [
'watchfiles',
]
tests = [
'psutil' ,
'pytest',
'pytest-asyncio',
'pytest-rerunfailures',
'pytest-xdist',
]
[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"]
[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"
xfail_strict = true
minversion = "7"
log_cli_level = "INFO"
filterwarnings = [
# 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
]