-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (105 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
121 lines (105 loc) · 3.46 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
[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 = []
lint.pydocstyle.convention = "google"
lint.flake8-tidy-imports.banned-api = { "unittest" = { msg = "use pytest instead of unittest" }, "unittest.mock" = { msg = "use pytest-mock instead of unittest.mock" } }
target-version = "py312"
line-length = 100
exclude = ["embeddings_model"]
force-exclude = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "D104", "D100"]
"scripts/*" = ["S101"]
[tool.black]
force-exclude = "embeddings_model"
[tool.pydocstyle]
match-dir = "(?!embeddings_model)[^\\.].*"
[tool.mypy]
disable_error_code = ["union-attr", "return-value", "arg-type", "import-untyped"]
ignore_missing_imports = true
mypy_path = ["src"]
namespace_packages = true
explicit_package_bases = true
exclude = ["^embeddings_model/"]
[tool.pdm]
distribution = true
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "lightspeed-rag-content"
version = "0.4.2"
description = "RAG content for OpenShift LightSpeed."
authors = []
dependencies = [
"PyYAML>=6.0.2",
"huggingface_hub>=0.33.4",
"llama-index>=0.12.51",
"llama-index-vector-stores-faiss>=0.3.0",
"llama-index-embeddings-huggingface>=0.4.0",
"llama-index-readers-file>=0.4.11",
"faiss-cpu>=1.11.0.post1",
"llama-index-vector-stores-postgres>=0.5.4",
# Pin torch/torchvision to versions available as CPU wheels
# torch 2.9.x pairs with torchvision 0.24.x
"llama-stack==0.5.0",
"llama-stack-api==0.5.0",
"llama-stack-client==0.5.0",
"torch>=2.9.0,<2.10.0",
"torchvision>=0.24.0,<0.25.0",
"aiosqlite>=0.21.0",
"sqlite-vec>=0.1.6",
"tomlkit",
"chardet==7.2.0",
"hf-xet>=1.2.0",
"einops>=0.8.1",
# For HTML to Markdown conversion in BYOK workflows
"docling>=2.68.0,<2.73.0",
"python-frontmatter>=1.1.0",
"certifi>=2025.10.5",
]
requires-python = "==3.12.*"
dynamic = ["license", "readme"]
# PyTorch has multiple wheel variants for different backends - cpu, gpu, etc.
# By default on pypi.org is the gpu variant. Forces uv to use the cpu variant.
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
# Require wheels for Linux x86_64 so torchvision resolves to a build that has
# manylinux wheels (the PyTorch CPU index has multiple builds; without this,
# uv can pick a build that only has win_arm64 and then sync fails on Linux).
[tool.uv]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'linux' and platform_machine == 'aarch64'",
]
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
torchvision = [{ index = "pytorch-cpu" }]
[dependency-groups]
dev = [
"black>=25.1.0",
"mypy>=1.15.0",
"ruff>=0.12.4",
"types-requests>=2.32.0.20240622",
"pre-commit>=4.2.0",
"coverage>=7.6.12",
"huggingface-hub>=0.33.4",
"radon>=6.0.1",
"pyright>=1.1.401",
"pylint>=3.3.7",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-mock>=3.15.1",
"pybuild-deps>=0.5.0",
"pip==24.3.1",
]
[tool.pylint.main]
ignore-paths = ["^embeddings_model/"]
[tool.pylint."MESSAGES CONTROL"]
good-names = ["e"]
disable = ["R0902", "R0903", "R0913", "R0917", "W0621", "W0511"]