forked from truera/trulens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
165 lines (143 loc) · 4.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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core",
]
[tool.poetry]
name = "trulens"
version = "1.0.1a1"
description = "Library to systematically track and evaluate LLM based applications."
authors = [
"Snowflake Inc. <[email protected]>",
]
license = "MIT"
readme = "README.md"
packages = [
{ from = "_trulens", include = "trulens" },
]
homepage = "https://trulens.org/"
documentation = "https://trulens.org/trulens/getting_started/"
repository = "https://github.com/truera/trulens"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
]
[tool.poetry.dependencies]
python = "^3.9,!=3.9.7"
trulens-core = { version = "^1.0.0", extras = [
"snowflake",
], allow-prereleases = true }
trulens-feedback = { version = "^1.0.0", allow-prereleases = true }
trulens-dashboard = { version = "^1.0.0", allow-prereleases = true }
# Remove after deprecation period:
trulens_eval = { version = "^1.0.0", allow-prereleases = true }
[tool.poetry.group.benchmark.dependencies]
trulens-benchmark = { path = "src/benchmark", develop = true }
[tool.poetry.group.tests-db]
optional = true
[tool.poetry.group.tests-db.dependencies]
psycopg2-binary = "^2.9"
pymysql = "^1.1"
cryptography = "^41.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7"
ruff = "^0.5"
mypy = "^1.11"
build = "^1.2"
twine = "^5.1"
[tool.poetry.group.docs.dependencies]
mkdocs = ">=1.6"
mkdocstrings-python = "^1.10"
mkdocstrings = "^0.25"
mkdocs-material = "^9.5"
mkdocs-material-extensions = "^1.3"
mkdocs-autorefs = "^1.0"
mkdocs-redirects = "^1.2"
mkdocs-jupyter = "^0.24"
mkdocs-include-markdown-plugin = "^6.2"
python-markdown-math = "^0.8"
markdown-include = "^0.8"
notebook = "^7.2"
black = "^24.4"
mkdocs-gen-files = "^0.5"
mkdocs-literate-nav = "^0.6"
mkdocs-section-index = "^0.3"
[tool.poetry.group.instrument.dependencies]
trulens-instrument-langchain = { path = "src/instrument/langchain", develop = true, python = "<3.13" }
trulens-instrument-llamaindex = { path = "src/instrument/llamaindex", develop = true }
trulens-instrument-nemo = { path = "src/instrument/nemo", develop = true, python = "<3.12" }
[tool.poetry.group.providers.dependencies]
trulens-providers-bedrock = { path = "src/providers/bedrock", develop = true }
trulens-providers-langchain = { path = "src/providers/langchain", develop = true }
trulens-providers-cortex = { path = "src/providers/cortex", develop = true, python = "<3.12" }
trulens-providers-huggingface = { path = "src/providers/huggingface", develop = true }
trulens-providers-openai = { path = "src/providers/openai", develop = true }
trulens-providers-litellm = { path = "src/providers/litellm", develop = true }
[tool.poetry.group.connectors.dependencies]
trulens-connectors-snowflake = { path = "src/connectors/snowflake", develop = true, python = "<3.12" }
[tool.poetry.group.required.dependencies]
python = "^3.9,!=3.9.7"
trulens-core = { path = "src/core", develop = true }
trulens-feedback = { path = "src/feedback", develop = true }
trulens-dashboard = { path = "src/dashboard", develop = true, python = "!=3.9.7" }
# Remove after deprecation period.
trulens_eval = { path = "src/trulens_eval", develop = true, python = "!=3.9.7" }
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
pytest = "^8.3"
nbconvert = "^7.16"
nbformat = "^5.10"
pytest-subtests = "^0.13"
pytest-azurepipelines = "^1.0"
ruff = "^0.5"
pre-commit = "^3.7"
pytest-cov = "^5.0"
frozendict = "^2.4"
jsondiff = "^2.2"
[tool.poetry.group.tests-optional]
optional = true
[tool.poetry.group.tests-optional.dependencies]
llama-index-embeddings-huggingface = "^0.2.2"
llama-index-embeddings-openai = "^0.1.10"
[tool.ruff]
line-length = 80
extend-exclude = [
"examples/expositional",
]
[tool.ruff.format]
preview = true
[tool.ruff.lint]
preview = true
ignore = [
"E731",
]
extend-select = [
"I",
"E303",
]
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
single-line-exclusions = [
"typing",
]
known-first-party = [
"src",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.mypy]
files = [
"src",
"tests",
]
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true