-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (139 loc) · 3.86 KB
/
pyproject.toml
File metadata and controls
150 lines (139 loc) · 3.86 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
[project]
name = "uqlm"
version = "0.5.7"
description = "UQLM (Uncertainty Quantification for Language Models) is a Python package for UQ-based LLM hallucination detection."
readme = "assets/README_PYPI.md"
license = "Apache-2.0"
requires-python = ">=3.10, <4.0"
authors = [
{ name = "Dylan Bouchard", email = "dylan.bouchard@cvshealth.com" },
{ name = "Mohit Singh Chauhan", email = "mohitsingh.chauhan@cvshealth.com" },
]
maintainers = [
{ name = "Dylan Bouchard", email = "dbouchard92@gmail.com" },
{ name = "Mohit Singh Chauhan", email = "mohitcek@gmail.com" },
{ name = "David Skarbrevik", email = "skarbrevik@gmail.com" },
{ name = "Ho-Kyeong Ra", email = "doyajii1@gmail.com" },
{ name = "Viren Bajaj", email = "virenbajaj4@gmail.com" },
{ name = "Zeya Ahmad", email = "zeyahmd@gmail.com" },
]
keywords = ["LLM", "large language model", "LLM evaluation", "hallucination", "uncertainty quantification"]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"langchain>=0.3.7",
"langchain-model-profiles>=0.0.3",
"transformers>=4.45.2,<5.0.0",
"scikit-learn>=1.5.2,<2.0.0; python_version < '3.13'",
"scikit-learn>=1.7.0,<2.0.0; python_version >= '3.13'",
"numpy>=1.26.4,<2.0.0; python_version < '3.13'",
"numpy>=2.3.1; python_version >= '3.13'",
"scipy>=1.15.0,<2.0.0; python_version >= '3.13'",
"matplotlib>=3.10.0,<4.0.0",
"optuna>=4.0.0,<5.0.0",
"bert-score>=0.3.0,<0.4.0",
"pandas>=2.3.0,<3.0.0",
"sentence-transformers>=3.4,<6.0",
"datasets>=3.3.2,<5.0.0",
"rich>=13.8.0,<15.0.0",
"ipywidgets>=8.1.7,<9.0.0",
]
[project.urls]
repository = "https://github.com/cvs-health/uqlm"
homepage = "https://github.com/cvs-health/uqlm"
documentation = "https://cvs-health.github.io/uqlm/latest/index.html"
[dependency-groups]
dev = [
"python-dotenv>=1.2.0,<2.0.0",
"ruff==0.9.7",
"pre-commit>=4.1.0,<5.0.0",
"ipykernel>=6.29.5,<7.0.0",
"langchain-openai>=0.2.6",
"langchain-google-vertexai>=2.0.8",
]
docs = [
"sphinx==7.4.7",
"pydata_sphinx_theme==0.16.1",
"sphinxcontrib-bibtex==2.6.3",
"sphinx-autodoc-typehints==2.3.0",
"sphinx-gallery==0.20.0",
"sphinx-favicon==1.0.1",
"nbsphinx==0.9.8",
]
test = [
"ipykernel>=6.29.5,<7.0.0",
"langchain-openai>=0.2.6",
"pytest>=8.3.5,<9.0.0",
"langchain-google-vertexai>=2.0.8",
"pytest-asyncio>=0.25.3,<1.4.0",
"pytest-cov>=6,<8",
"pytest-rerunfailures>=16.0,<17.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["uqlm"]
[tool.pytest.ini_options]
testpaths = ["tests"]
reruns = 3
reruns_delay = 2.0
markers = [
"asyncio"
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Core settings
line-length = 400
[tool.ruff.lint]
#What rules to enable
select = ["E", "F"]
# E = pycodestyle errors
# F = pyflakes
# I = isort (import sorting)
# B = bugbear (best practices)
# UP = pyupgrade (modernization)
# D = pydocstyle (docstring rules)
# S = bandit (security)
#What rules to ignore
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = true
line-ending = "lf"
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"uqlm/utils/prompts/*.py" = ["ALL"]