-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (71 loc) · 2.18 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
[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", "TRIO"]
# 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
[tool.pdm]
distribution = false
[tool.pdm.dev-dependencies]
dev = [
]
[[tool.pdm.source]]
type = "find_links"
url = "https://download.pytorch.org/whl/cpu/torch_stable.html"
name = "torch"
[project]
name = "ols"
version = "0.1.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 = [
"torch==2.3.0",
"fastapi==0.111.0",
"gradio==4.31.5",
"langchain==0.2.1",
"langchain-ibm==0.1.7",
"llama-index==0.10.39",
"llama-index-vector-stores-faiss==0.1.2",
"llama-index-embeddings-huggingface==0.2.0",
"uvicorn==0.29.0",
"redis==5.0.4",
"faiss-cpu==1.8.0",
"sentence-transformers==2.7.0",
"openai==1.30.3",
"ibm-watson-machine-learning==1.0.357",
"ibm-generative-ai==2.3.0",
"langchain-openai==0.1.7",
"pydantic==2.7.1",
"setuptools==70.0.0",
"prometheus-client==0.20.0",
"kubernetes==29.0.0",
"pytest-asyncio==0.23.7",
"psycopg2-binary==2.9.9",
"black==24.4.2",
"httpx==0.27.0",
"mypy==1.10.0",
"pytest==8.2.1",
"pytest-cov==5.0.0",
"pytest_asyncio==0.23.7",
"ruff==0.4.5",
"types-requests==2.32.0.20240523"
]
requires-python = "==3.11.*"
readme = "README.md"
license = "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"