-
-
Notifications
You must be signed in to change notification settings - Fork 403
/
pyproject.toml
195 lines (178 loc) · 8.16 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "holoviews"
dynamic = ["version"]
description = "A high-level plotting API for the PyData ecosystem built on HoloViews."
readme = "README.md"
license = { text = "BSD" }
requires-python = ">=3.9"
authors = [
{ name = "Jean-Luc Stevens", email = "[email protected]" },
{ name = "Philipp Rudiger", 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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Framework :: Matplotlib",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"bokeh >=3.1",
"colorcet",
"numpy >=1.21",
"packaging",
"pandas >=1.3",
"panel >=1.0",
"param >=2.0,<3.0",
"pyviz_comms >=2.1",
]
[project.urls]
Homepage = "https://holoviews.org"
Source = "https://github.com/holoviz/holoviews"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
recommended = ["matplotlib >=3", "plotly >=4.0"]
tests = ["pytest", "pytest-rerunfailures", "pytest-asyncio"]
[project.scripts]
holoviews = "holoviews.util.command:main"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["holoviews"]
[tool.hatch.build.targets.sdist]
include = ["holoviews", "scripts"]
[tool.hatch.build.targets.sdist.force-include]
examples = "holoviews/examples"
[tool.hatch.build.hooks.vcs]
version-file = "holoviews/_version.py"
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers", "--color=yes"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
minversion = "7"
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
# Numpy warning triggered in Bokeh, when timedelta or datetime numpy scalar are compared to a numerical scalar
"ignore:elementwise comparison failed:DeprecationWarning:bokeh.core.property.bases",
"ignore:dropping variables using `drop` will be deprecated; using drop_vars is encouraged:PendingDeprecationWarning:xarray.core.dataarray",
# 2022-12: Plotly don't use packagings version yet
"ignore:distutils Version classes are deprecated:DeprecationWarning:plotly.graph_objs",
# 2022-12: A weird warning which could be related to Datashader
"ignore:Please use `append` from the:DeprecationWarning:pickle",
# 2022-12: Warnings which should be fixed in Panel
"ignore:make_current is deprecated; start the event loop first:DeprecationWarning:panel.io.server",
# 2023-01: Numpy 1.24 warnings
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:bokeh", # https://github.com/bokeh/bokeh/pull/12690
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:cupy", # https://github.com/cupy/cupy/pull/7245
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:plotly.express.imshow_utils", # https://github.com/plotly/plotly.py/pull/3997
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:skimage.util.dtype", # https://github.com/scikit-image/scikit-image/pull/6637
# 2023-01: Sqlalchemy 2.0 warning:
"ignore: Deprecated API features detected:DeprecationWarning:ibis.backends.base.sql.alchemy", # https://github.com/ibis-project/ibis/issues/5048
# 2023-03: Already handling the nested sequence
"ignore:Creating an ndarray from ragged nested sequences::holoviews.core.data.spatialpandas",
# 2023-09: Dash needs to update their code to use the comm module and pkg_resources
"ignore:The `.+?` class has been deprecated:DeprecationWarning:dash._jupyter",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:dash.dash",
# 2023-09: See https://github.com/bokeh/bokeh/issues/13324
"ignore:log_path has been deprecated, please use log_output:DeprecationWarning:bokeh.io.webdriver",
# 2023-09: Not a relevant warning for HoloViews
"ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
# 2023-09: `pkg_resources` is deprecated
"ignore:Deprecated call to `pkg_resources.+?'mpl_toolkits:DeprecationWarning", # https://github.com/matplotlib/matplotlib/issues/25244
"ignore:Deprecated call to `pkg_resources.+?'sphinxcontrib:DeprecationWarning", # https://github.com/mgaitan/sphinxcontrib-mermaid/issues/119
"ignore: pkg_resources is deprecated as an API:DeprecationWarning:streamz.plugins", # https://github.com/python-streamz/streamz/issues/460
# 2023-10: Datetime's utctimestamp() and utcnow() is deprecated in Python 3.12
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning:dateutil.tz.tz", # https://github.com/dateutil/dateutil/pull/1285
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning:bokeh", # https://github.com/bokeh/bokeh/issues/13125
"ignore:datetime.datetime.utcnow():DeprecationWarning:bokeh", # https://github.com/bokeh/bokeh/issues/13125
# 2024-01: Pandas 2.2
"ignore:\\s*Pyarrow will become a required dependency of pandas:DeprecationWarning", # Will go away by itself in Pandas 3.0
"ignore:Passing a (SingleBlockManager|BlockManager) to (Series|GeoSeries|DataFrame|GeoDataFrame) is deprecated:DeprecationWarning", # https://github.com/holoviz/spatialpandas/issues/137
# 2024-04
"ignore:No data was collected:coverage.exceptions.CoverageWarning", # https://github.com/pytest-dev/pytest-cov/issues/627
# 2024-05
"ignore:backend2gui is deprecated since IPython 8.24:DeprecationWarning", # https://github.com/holoviz/holoviews/pull/6227#issuecomment-2104401396
# 2024-06
"ignore:\\s*Dask dataframe query planning is disabled because dask-expr is not installed:FutureWarning", # OK
"ignore:unclosed file <_io.TextIOWrapper name='/dev/null' mode='w':ResourceWarning", # OK
# 2024-07
"ignore:The (non_)?interactive_bk attribute was deprecated in Matplotlib 3.9", # OK - Only happening in debug mode
"ignore: Jitify is performing a one-time only warm::cupy", # OK,
# 2024-10
"ignore::ResourceWarning",
]
[tool.coverage]
omit = ["holoviews/__version.py"]
exclude_also = ["if __name__ == .__main__.:", "if TYPE_CHECKING:", "if ._pyodide. in sys.modules:"]
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
"B",
"E",
"F",
"FLY",
"I",
"ICN",
"NPY",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"UP",
"W",
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E701", # Multiple statements on one line
"E712", # Comparison to true should be is
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"F405", # From star imports
"PLE0604", # Invalid object in `__all__`, must contain only strings
"PLE0605", # Invalid format for `__all__`
"PLR091", # Too many arguments/branches/statements
"PLR2004", # Magic value used in comparison
"PLW2901", # `for` loop variable is overwritten
"RUF005", # Consider {expr} instead of concatenation
"RUF012", # Mutable class attributes should use `typing.ClassVar`
]
extend-unsafe-fixes = [
"F401", # Unused imports
"F841", # Unused variables
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"holoviews/tests/*" = [
"RUF001", # Ambiguous unicode character
"RUF002", # Ambiguous unicode character
"RUF003", # Ambiguous unicode character
"NPY002", # Replace legacy `np.random.rand` call with Generator
"B904", # Within an `except` clause, raise exceptions with from err or None
]
[tool.ruff.lint.isort]
known-first-party = ["holoviews"]
combine-as-imports = true
[tool.codespell]
ignore-words-list = "lod,nd,ndoes,reenabled,spreaded,whn,ser,assertIn"
skip = "doc/generate_modules.py"
write-changes = true