-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
150 lines (135 loc) · 4.08 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "lumen"
dynamic = ["version"]
description = "A monitoring solution built on Panel."
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 :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"bokeh",
"holoviews >=1.17.0",
"hvplot",
"intake <2",
"jinja2 >3.0",
"numpy",
"packaging",
"pandas",
"panel >=1.5.0",
"param >=1.9.0",
]
[project.urls]
Homepage = "https://lumen.holoviz.org"
Source = "https://github.com/holoviz/lumen"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
tests = ['pytest', 'pytest-rerunfailures', 'pytest-asyncio']
sql = ['duckdb', 'intake-sql', 'sqlalchemy']
ai = ['nbformat', 'duckdb', 'pyarrow', 'openai', 'instructor >=1.4.3', 'pydantic >=2.8.0', 'datashader', 'pydantic-extra-types']
ai-local = ['lumen[ai]', 'huggingface_hub']
ai-llama = ['lumen[ai-local]', 'llama-cpp-python']
[project.scripts]
lumen = "lumen.command:main"
lumen-ai = "lumen.command.ai:main"
[project.entry-points.'panel.io.rest']
lumen = "lumen.rest:lumen_rest_provider"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["lumen"]
[tool.hatch.build.targets.sdist]
include = ["lumen", "scripts", "examples"]
[tool.hatch.build.hooks.vcs]
version-file = "lumen/_version.py"
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
"--color=yes",
"--pyargs",
"--doctest-modules",
"--doctest-ignore-import-errors",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
minversion = "7"
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning:dateutil.tz.tz", # https://github.com/dateutil/dateutil/pull/1285
]
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
# "B",
"E",
"F",
"FLY",
"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`
"UP038", # isinstance and issubclass uses a |-separated union
]
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.isort]
force_grid_wrap = 4
multi_line_output = 5
combine_as_imports = true
lines_between_types = 1
include_trailing_comma = true