Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
301 lines (284 loc) · 8.52 KB
/
Copy pathpyproject.toml
File metadata and controls
301 lines (284 loc) · 8.52 KB
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
[build-system]
requires = [
"hatchling >=1.25.0",
"hatch-vcs >=0.4.0",
]
build-backend = "hatchling.build"
[project]
name = "hvplot"
dynamic = ["version"]
description = "A high-level plotting API for the PyData ecosystem built on HoloViews."
readme = "README.md"
license = { text = "BSD" }
requires-python = ">=3.11"
authors = [
{ name = "Philipp Rudiger", 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.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"bokeh >=3.1",
"colorcet >=2",
"holoviews >=1.19.0",
"numpy >=1.21",
"packaging",
"pandas >=1.3",
"panel >=1.0",
"param >=1.12.0,<3.0",
]
[project.entry-points."pandas_plotting_backends"]
holoviews = "hvplot:plotting"
hvplot = "hvplot:plotting"
[project.urls]
Homepage = "https://hvplot.holoviz.org"
Source = "http://github.com/holoviz/hvplot"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
tests-core = [
"dask[dataframe]",
"ipywidgets",
"matplotlib",
"plotly",
"pooch",
"pre-commit",
"pytest-cov",
"pytest-randomly",
"pytest-socket",
"pytest-xdist",
"pytest",
"ruff",
"scipy",
"xarray",
"bokeh_sampledata",
"psutil",
"cftime",
"numpydoc",
]
# Optional tests dependencies, i.e. one should be able
# to run and pass the test suite without installing any
# of those.
tests = [
"hvplot[tests-core]",
"fugue[sql]",
"hvplot[fugue-sql]",
# end fugue
"ibis-framework[duckdb]", # ibis-duckdb on conda
"polars",
"dask",
"spatialpandas",
"duckdb",
]
# In 0.9 fugue added the sql extra but didn't add a fugue-sql package, removing the sql deps from fugue
# Adding them manually here
fugue-sql = [
"fugue-sql-antlr >=0.2.4",
"sqlglot",
"jinja2",
]
geo = [
"cartopy",
"fiona",
"geopandas",
"geoviews >=1.9.0",
"pyproj",
"rasterio",
"rioxarray",
"spatialpandas >=0.4.3",
]
# graphviz is difficult to install with pip, ok with conda.
graphviz = [
"pygraphviz",
]
# Dependencies required to run the notebooks
examples = [
"dask[dataframe] >=2021.3.0",
"datashader >=0.6.5",
"duckdb",
"fugue[sql]",
"hvplot[fugue-sql]",
"ibis-framework[duckdb]", # ibis-duckdb on conda
"ipywidgets",
"networkx >=2.6.3",
"matplotlib",
"netcdf4",
"notebook >=5.4",
"numba >=0.51.0",
"pillow >=8.2.0",
"plotly",
"polars",
"pooch >=1.6.0",
"s3fs >=2022.1.0",
"scikit-image >=0.17.2",
"scikit-learn >=1.4.0",
"scipy >=1.5.3",
"playwright",
"xarray >=0.18.2",
"xyzservices >=2022.9.0",
"geodatasets >=2023.12.0",
"bokeh_sampledata >=2025.0",
"hvsampledata >=0.1.4a2",
"xugrid >=0.15.0",
]
tests-nb = [
"pytest-xdist",
"nbval",
]
# Run the example tests by installing examples_tests together with tests
examples-tests = [
"hvplot[examples]",
"hvplot[tests-nb]",
]
# Additional packages required to build the docs
doc = [
"hvplot[examples]",
# PNG export with Playwright
"bokeh >=3.10",
"nbsite >=0.9.0a12",
"sphinxext-rediraffe",
"numpydoc",
"sphinxcontrib-mermaid",
]
# Trick to let pip know we want to install dev dependencies
hvdev = [
"colorcet >=0.0.1a1",
"datashader >=0.0.1a1",
"holoviews >=0.0.1a1",
"panel >=0.0.1a1",
"param >=0.0.1a1",
"pyviz_comms >=0.0.1a1",
]
hvdev-geo = [
"geoviews >=0.0.1a1",
]
dev-extras = [
# To keep __version__ up-to-date in editable installs
"setuptools_scm >= 6"
]
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["hvplot"]
[tool.hatch.build.targets.sdist]
include = ["hvplot", "scripts", "doc"]
[tool.hatch.build.hooks.vcs]
version-file = "hvplot/_version.py"
[tool.pytest.ini_options]
addopts = "--pyargs --strict-markers"
norecursedirs = "*.egg dist build _build jupyter_execute .*"
xfail_strict = true
markers = [
"slow: slow tests, run with --slow (always run on CI)",
"geo: tests using GeoViews, skipped when geoviews or cartopy are missing",
"render_xfail: xfail that only applies when the plots are rendered (i.e. without --no-render)",
"lib_xfail(*libs, **xfail_kwargs): xfail for the tests run with these data libraries (tabular_lib or gridded_lib)",
"lib_render_xfail(*libs, **xfail_kwargs): lib_xfail that only applies when the plots are rendered",
"lib_skip(*libs, reason): skip the tests run with these data libraries, which they don't apply to",
]
python_files = "test_*.py"
filterwarnings = [
# 2023-09: See https://github.com/matplotlib/matplotlib/issues/25244
"ignore:Deprecated call to `pkg_resources.+?'mpl_toolkits:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.+?'sphinxcontrib:DeprecationWarning",
# 2023-09: See https://github.com/ibis-project/ibis/pull/6973
"ignore:.+? is deprecated and will be removed in a future version:FutureWarning:ibis.formats.pandas",
# 2023-09: See https://github.com/Unidata/MetPy/pull/3117
"ignore: 'xdrlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:metpy.io.nexrad",
# 2023-09: See https://github.com/python-streamz/streamz/issues/460
"ignore: pkg_resources is deprecated as an API:DeprecationWarning:streamz.plugins",
# 2025-10
"ignore:'_UnionGenericAlias' is deprecated and slated for removal in Python 3.17", # OK
# 2025-12
"ignore:pkg_resources is deprecated as an API:UserWarning:fugue_sql_antlr.parser",
# 2025-12
"ignore:The 'shapely.geos' module is deprecated:DeprecationWarning:geopandas._compat",
# 2026-11: HoloViews calls .values and np.ix_ on dask objects when rendering Bars/Histogram
"ignore:Dask currently has limited support for converting pandas extension dtypes:UserWarning:dask.dataframe",
"ignore:The `numpy.ix_` function is not implemented by Dask array:FutureWarning:dask.array",
# 2026-11: Harmless Cython/NumPy ABI check, raised by the abi3 netCDF4 build
"ignore:numpy.ndarray size changed:RuntimeWarning",
]
[tool.codespell]
ignore-words-list = "ser,assertIn"
skip = "doc/generate_modules.py"
write-changes = true
[tool.ruff]
fix = true
line-length = 99
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"FLY", # flynt
"FURB", # refurb
"I", # isort
"NPY", # numpy
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLC", # pylint convention
"PLE", # pylint error
"PLR", # pylint refactor
"PLW", # pylint warning
# "PT", # flake8-pytest-style
"RUF", # ruff
# "SIM", # flake8-simplify
# "TC", # flake8-type-checking
"TRY002", # raises Exception or BaseException directly
"UP", # pyupgrade
"W", # pycodestyle warning
]
ignore = [
"D205", # Missing-blank-line-after-summary
"D401", # Non-imperative-mood
"PLC0415", # `import` should be at the top-level of a file
"PLR091", # Too many arguments/branches/statements
"PLR2004", # Magic value used in comparison
"PLW0108", # Lambda may be unnecessary; consider inlining inner function
"PLW2901", # `for` loop variable is overwritten
"RUF012", # Mutable class attributes should use `typing.ClassVar`
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["I", "RUF100"]
"hvplot/tests/*" = [
"B904",
"D",
"NPY002", # Replace legacy `np.random.rand` call with Generator
]
"scripts/*" = ["D"]
"hvplot/util.py" = ["D"]
"hvplot/interactive.py" = ["D105"]
"doc/*.py" = ["D"]
"doc/*.ipynb" = [
"C408", # unnecessary-collection-call
"D", # pydocstyle
"I", # isort
"NPY002", # Replace legacy `np.random.rand` call with Generator
"PGH004", # blanket-noqa
"RUF100", # unused-noqa
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
quote-style = "single"
exclude = ["*.ipynb", "*.md"]