forked from run-llama/llama_index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
211 lines (197 loc) · 4.86 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.codespell]
check-filenames = true
check-hidden = true
ignore-words-list = "astroid,gallary,momento,narl,ot,rouge"
# Feel free to un-skip examples, and experimental, you will just need to
# work through many typos (--write-changes and --interactive will help)
skip = "./llama_index/core/_static,./examples,./experimental,*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
[tool.mypy]
disallow_untyped_defs = true
# Remove venv skip when integrated with pre-commit
exclude = ["_static", "build", "examples", "llama_index/ingestion/client", "notebooks", "venv"]
explicit_package_bases = true
ignore_missing_imports = true
mypy_path = "llama_index"
namespace_packages = true
python_version = "3.8"
[tool.poetry]
authors = ["Jerry Liu <jerry@llamaindex.ai>"]
classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
description = "Interface between LLMs and your data"
documentation = "https://docs.llamaindex.ai/en/stable/"
homepage = "https://llamaindex.ai"
keywords = ["LLM", "NLP", "RAG", "data", "devtools", "index", "retrieval"]
license = "MIT"
maintainers = [
"Andrei Fajardo <andrei@runllama.ai>",
"Haotian Zhang <ht@runllama.ai>",
"Jerry Liu <jerry@llamaindex.ai>",
"Logan Markewich <logan@llamaindex.ai>",
"Simon Suo <simon@llamaindex.ai>",
"Sourabh Desai <sourabh@llamaindex.ai>",
]
name = "llama-index"
packages = [{from = "_llama-index", include = "llama_index"}]
readme = "README.md"
repository = "https://github.com/run-llama/llama_index"
version = "0.10.55"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
llama-index-legacy = "^0.9.48"
llama-index-llms-openai = "^0.1.13"
llama-index-embeddings-openai = "^0.1.5"
llama-index-program-openai = "^0.1.3"
llama-index-question-gen-openai = "^0.1.2"
llama-index-agent-openai = ">=0.1.4,<0.3.0"
llama-index-readers-file = "^0.1.4"
llama-index-readers-llama-parse = ">=0.1.2"
llama-index-indices-managed-llama-cloud = ">=0.2.0"
llama-index-core = "0.10.55"
llama-index-multi-modal-llms-openai = "^0.1.3"
llama-index-cli = "^0.1.2"
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = ">=23.7.0,<=24.3.0"}
codespell = {extras = ["toml"], version = ">=v2.2.6"}
mypy = "0.991"
pre-commit = "3.2.0"
pylint = "2.15.10"
pytest = ">=8.2.1"
pytest-asyncio = ">=0.23.7"
pytest-mock = ">=3.14.0"
ruff = "0.0.292"
types-Deprecated = ">=0.1.0"
types-PyYAML = "^6.0.12.12"
types-protobuf = "^4.24.0.4"
types-redis = "4.5.5.0"
types-requests = "2.28.11.8" # TODO: unpin when mypy>0.991
types-setuptools = "67.1.0.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.0"
mkdocs-include-dir-to-nav = "^1.2.0"
mkdocs-jupyter = "^0.24.7"
mkdocs-material = "^9.5.25"
mkdocs-redirects = "^1.2.1"
mkdocstrings = {extras = ["python"], version = "^0.25.1"}
[tool.poetry.scripts]
llamaindex-cli = 'llama_index.cli.command_line:main'
[[tool.poetry.source]]
name = "nvidia-pypi"
priority = "supplemental"
url = "https://pypi.nvidia.com"
[tool.ruff]
exclude = [
"_static",
"examples",
"llama_index/ingestion/client",
"notebooks",
]
ignore = [
"COM812", # Too aggressive
"D212", # Using D213
"D417", # Too aggressive
"F541", # Messes with prompts.py
"TCH002",
"UP006", # Messes with pydantic
"UP007", # Wants | over Union, which breaks 3.8
]
# Feel free to add more here
select = [
"ANN204",
"B009",
"B010",
"B011",
"B013",
"B014",
"C4",
"COM812",
"COM819",
"D201",
"D202",
"D203",
"D204",
"D207",
"D208",
"D209",
"D211",
"D213",
"D214",
"D215",
"D3",
"D4",
"E7",
"EXE004",
"F401",
"F504",
"F541",
"F632",
"FLY",
"G010",
"I002",
"PERF1",
"PIE790",
"PIE794",
"PIE808",
"PIE810",
"PLC0414",
"PLE2510",
"PLE2512",
"PLE2513",
"PLE2514",
"PLE2515",
"PLR1701",
"PLR1711",
"PT001",
"PT003",
"PT006",
"PT02",
"PTH201",
"PYI",
"Q",
"RET501",
"RET502",
"RET503",
"RET504",
"RSE",
"RUF005",
"RUF010",
"RUF015",
"RUF1",
"SIM101",
"SIM103",
"SIM109",
"SIM118",
"SIM2",
"SIM300",
"SIM9",
"TCH005",
"TD006",
"TID",
"TRY201",
"UP",
"W",
]
target-version = "py38"
unfixable = [
"ERA001",
]
[tool.ruff.flake8-annotations]
mypy-init-return = true
[tool.ruff.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
in_place = true
spaces_before_inline_comment = 2 # Match Python PEP 8
spaces_indent_inline_array = 4 # Match Python PEP 8
trailing_comma_inline_array = true
[tool.tomlsort.overrides."tool.poetry.dependencies"]
table_keys = false