-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
139 lines (122 loc) · 4.09 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
[tool.ruff]
# description of all rules are available on https://docs.astral.sh/ruff/rules/
lint.select = ["D", "E", "F", "W", "C", "S", "I", "TCH", "SLOT", "RUF", "C90", "N", "YTT", "ASYNC", "A", "C4", "T10", "PGH"]
# we need to check 'mood' of all docstrings, this needs to be enabled explicitly
lint.extend-select = ["D401"]
lint.ignore = []
target-version = "py311"
lint.pydocstyle.convention = "google"
line-length = 100
[tool.coverage.report]
# unit tests fails if the total coverage measurement is under this threshold value
fail_under = 90
[tool.mypy]
disable_error_code = ["union-attr", "return-value", "arg-type", "import-untyped"]
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.bandit]
skips = []
exclude_dirs = ["tests", "scripts"]
[tool.pdm]
distribution = false
[tool.pdm.dev-dependencies]
dev = [
"black==24.10.0",
"pydocstyle==6.3.0",
"fastparquet==2024.5.0", # Required for model evaluation (runtime, if parquet qna file is used)
"httpx==0.27.0",
"mypy==1.12.1", # Usually needs to be set to latest stable version available
"pytest==8.3.2",
"pytest-cov==5.0.0",
"pytest-asyncio==0.24.0",
"pydantic==2.9.1",
"rouge-score==0.1.2", # Required for model evaluation
"ruff==0.6.9",
"bandit==1.7.9",
"types-requests==2.32.0.20240622",
"gradio==4.44.0",
"boto3==1.34.145",
"reportportal-client==5.5.6",
"pytest-reportportal==5.4.1",
"pytest-benchmark[histogram]>=4.0.0",
]
# The following section is needed only for torch[cpu] variant on Linux,
# because this variant need to be downloaded from external link, not from
# standard Python package index:
#
# [[tool.pdm.source]]
# type = "find_links"
# url = "https://download.pytorch.org/whl/cpu/torch_stable.html"
# name = "torch"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "ols"
version = "0.2.0"
description = "OpenShift LightSpeed is an AI powered assistant that runs on OpenShift and provides answers to product questions using backend LLM services."
authors = []
dependencies = [
"pdm==2.18.1",
"torch==2.4.1",
"pandas==2.1.4",
"fastapi==0.115.2",
"langchain==0.2.16",
"langchain-ibm==0.1.12",
"llama-index==0.10.62",
"llama-index-vector-stores-faiss==0.1.2",
"llama-index-embeddings-huggingface==0.2.2",
"uvicorn==0.30.6",
"redis==5.0.8",
"faiss-cpu==1.8.0.post1",
"sentence-transformers==3.0.1",
"openai==1.46.0",
"ibm-generative-ai==3.0.0",
"ibm-cos-sdk==2.13.6",
"langchain-openai==0.1.15",
"pydantic==2.9.1",
"setuptools==72.1.0",
"prometheus-client==0.20.0",
"kubernetes==30.1.0",
"psycopg2-binary==2.9.9",
"azure-identity==1.17.1",
"langchain-community==0.2.16",
"SQLAlchemy==2.0.35",
"huggingface_hub==0.23.4",
"ibm-watsonx-ai==1.1.8",
"certifi==2024.8.30",
"cryptography==43.0.1",
"urllib3==2.2.2",
"nltk==3.9.1",
"aiohttp==3.10.5",
"zipp==3.20.1",
"jinja2==3.1.4",
"scikit-learn==1.5.1",
"starlette==0.40.0",
"tqdm==4.66.5",
]
requires-python = "==3.11.*"
readme = "README.md"
license = {file = "LICENSE"}
[tool.pdm.scripts]
start = "pdm run make run"
test = "pdm run make test"
test-unit = "pdm run make test-unit"
test-integration = "pdm run make test-integration"
test-e2e = "pdm run make test-e2e"
coverage-report = "pdm run make coverage-report"
unit-tests-coverage-report = "pdm run make unit-tests-coverage-report"
integration-tests-coverage-report = "pdm run make integration-tests-coverage-report"
check-types = "pdm run make check-types"
generate-schema = "pdm run make schema"
security-check = "pdm run make security-check"
benchmarks = "pdm run make benchmarks"
[tool.setuptools]
packages = ["ols"]
[tool.pylint."MESSAGES CONTROL"]
good-names = ["e"]
disable = ["W1203", "C0103", "C0301", "C0302", "C0415", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0603", "W0613", "W0621", "W0622", "W0707", "W0718", "W0719", "W1514", "E0401", "R0801", "R0917"]