forked from Arize-ai/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
248 lines (216 loc) · 4.76 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
[project]
name = "arize-phoenix"
description = "ML Observability in your notebook"
readme = "README.md"
requires-python = ">=3.8, <3.11"
license = "Elastic-2.0"
license-files = { paths = ["LICENSE", "IP_NOTICE"] }
keywords = [
"Observability",
"Monitoring",
"Explainability",
]
authors = [
{ name = "Arize AI", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"numpy",
"pandas",
"umap-learn",
"hdbscan",
"starlette",
"uvicorn",
"psutil",
"strawberry-graphql==0.155.3",
"pyarrow",
"typing_extensions",
"scipy",
"portpicker",
"wrapt",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"black[jupyter]",
"hatch",
"jupyter",
"pandas-stubs",
"pytest",
"pytest-cov",
"pytest-lazy-fixture",
"strawberry-graphql[debug-server]==0.155.3",
"pre-commit",
"arize[AutoEmbeddings, LLM_Evaluation]",
]
[project.urls]
Documentation = "https://docs.arize.com/phoenix/"
Issues = "https://github.com/Arize-ai/phoenix/issues"
Source = "https://github.com/Arize-ai/phoenix"
[tool.hatch.version]
path = "src/phoenix/__init__.py"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/phoenix"]
artifacts = ["src/phoenix/server/static"]
[tool.hatch.build]
only-packages = true
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/phoenix/server/static/index.js", "src/phoenix/server/static/index.html"]
skip-if-exists = ["src/phoenix/server/static/index.js", "src/phoenix/server/static/index.html"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "app"
source_dir = "app"
[tool.hatch.build.targets.sdist]
artifacts = ["src/phoenix/server/static"]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"pytest-lazy-fixture",
"arize",
]
[tool.hatch.envs.type]
dependencies = [
"mypy==0.991",
"pandas-stubs",
"pytest",
"types-psutil",
]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black~=23.1.0",
"black[jupyter]~=23.1.0",
"ruff~=0.0.254",
]
[tool.hatch.envs.notebooks]
detached = true
dependencies = [
"jupyter",
]
[tool.hatch.envs.docs]
detached = true
dependencies = [
"interrogate",
]
[tool.hatch.envs.default.scripts]
tests = "pytest {args}"
coverage = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/phoenix --cov=tests {args}"
[[tool.hatch.envs.test.matrix]]
python = ["3.8"]
[tool.pytest.ini_options]
addopts = [
"-rA",
"--import-mode=importlib",
"--doctest-modules",
]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"**/__init__.py",
]
[tool.coverage.report]
fail_under=30
show_missing=true
sort="cover"
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.envs.type.scripts]
check = [
"mypy .",
]
[tool.hatch.envs.style.scripts]
check = [
"black --check --diff --color .",
"ruff .",
]
fix = [
"black .",
"ruff --fix .",
]
[tool.hatch.envs.notebooks.scripts]
clean = [
"jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --inplace tutorials/*.ipynb",
]
[tool.hatch.envs.publish]
dependencies = [
"check-wheel-contents",
"twine",
]
[tool.hatch.envs.publish.scripts]
testpypi = [
"check-wheel-contents dist/",
"twine upload --verbose --repository testpypi dist/*",
]
pypi = [
"check-wheel-contents dist/",
"twine upload --verbose dist/*",
]
[tool.black]
line-length = 100
[tool.hatch.envs.docs.scripts]
check = [
"interrogate -vv src/",
]
[tool.hatch.envs.gql]
[tool.hatch.envs.gql.scripts]
build = 'strawberry export-schema phoenix.server.api.schema:schema > app/schema.graphql'
[tool.interrogate]
fail-under = 0
# generate-badge = "badges/"
omit-covered-files = true
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = false
ignore-setters = false
[tool.mypy]
plugins = ["strawberry.ext.mypy_plugin"]
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
strict = true
exclude = [
"dist/",
"sdist/",
"tests/",
]
[[tool.mypy.overrides]]
module = [
"hdbscan",
"umap",
"scipy.*",
"sklearn.*",
"arize.*",
"portpicker",
"wrapt",
]
ignore_missing_imports = true
[tool.ruff]
exclude = ["__init__.py", ".git", "__pycache__", "docs/source/conf.py"]
ignore = []
line-length = 100
select = ["E", "F", "W", "I"]
target-version = "py38"