/
pyproject.toml
173 lines (163 loc) · 5.52 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
[tool.poetry]
name = "langroid"
version = "0.1.247"
description = "Harness LLMs with Multi-Agent Programming"
authors = ["Prasad Chalasani <pchalasani@gmail.com>"]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
mkdocs = {version="^1.4.2", optional=true}
mkdocs-material = {version="^9.1.5", optional=true}
mkdocstrings = {extras = ["python"], version = "^0.21.2", optional=true}
mkdocs-awesome-pages-plugin = {version="^2.8.0", optional=true}
mkdocs-rss-plugin = {version="^1.8.0", optional=true}
mkdocs-gen-files = {version="^0.4.0", optional=true}
mkdocs-literate-nav = {version="^0.6.0", optional=true}
mkdocs-section-index = {version="^0.3.5", optional=true}
mkdocs-jupyter = {version="^0.24.1", optional=true}
chromadb = {version=">=0.4.21, <=0.4.23", optional=true}
onnxruntime = "1.16.1"
fire = "^0.5.0"
black = {extras = ["jupyter"], version = "^24.3.0"}
flake8 = "^6.0.0"
mypy = "^1.7.0"
bs4 = "^0.0.1"
autopep8 = "^2.0.2"
python-dotenv = "^1.0.0"
wget = "^3.2"
rich = "^13.3.4"
requests-oauthlib = "^1.3.1"
trafilatura = "^1.5.0"
halo = "^0.0.31"
typer = "^0.9.0"
colorlog = "^6.7.0"
openai = "^1.14.0"
tiktoken = "^0.7.0"
pygithub = "^1.58.1"
pygments = "^2.15.1"
redis = "^5.0.1"
fakeredis = "^2.12.1"
faker = "^18.9.0"
requests = "^2.31.0"
ruff = "^0.2.2"
pre-commit = "^3.3.2"
types-redis = "^4.5.5.2"
types-requests = "^2.31.0.1"
pyparsing = "^3.0.9"
nltk = "^3.8.1"
qdrant-client = "^1.8.0"
pydantic = "1.10.13"
pypdf = "^3.12.2"
momento = "^1.10.2"
pandas = "^2.0.3"
sqlalchemy = "^2.0.19"
prettytable = "^3.8.0"
tantivy = "^0.21.0"
google-api-python-client = "^2.95.0"
lxml = "^4.9.3"
unstructured = {extras = ["docx", "pptx", "pdf"], version = ">=0.10.16,<0.10.18", optional=true}
sentence-transformers = {version="2.2.2", optional=true}
torch = {version="2.0.0", optional=true}
psycopg2 = {version="^2.9.7", optional=true}
pymysql = {version = "^1.1.0", optional = true}
pytest-postgresql = {version = "^5.0.0", optional = true}
pytest-mysql = {version = "^2.4.2", optional = true}
rank-bm25 = "^0.2.2"
thefuzz = "^0.20.0"
pdfplumber = "^0.10.2"
pymupdf = "^1.23.3"
jinja2 = "^3.1.2"
pytest-asyncio = "^0.21.1"
docstring-parser = "^0.15"
meilisearch = "^0.28.3"
meilisearch-python-sdk = "^2.2.3"
litellm = {version = "^1.30.1", optional = true}
scrapy = "^2.11.0"
async-generator = "^1.10"
lancedb = "^0.6.2"
# only needed by lancedb; we're explicitly specifying version since 15.0.1 is "not found"
# Once 15.0.1 is available, we can remove the version specifier here
pyarrow = "15.0.0"
pytest-redis = "^3.0.2"
neo4j = {version = "^5.14.1", optional = true}
python-docx = "^1.1.0"
aiohttp = "^3.9.1"
grpcio = "^1.62.1"
metaphor-python = {version = "^0.1.23", optional = true}
chainlit = {version = "^1.0.400", optional = true}
python-socketio = {version="^5.11.0", optional=true}
duckduckgo-search = "^6.0.0"
huggingface-hub = {version="^0.21.2", optional=true}
pdf2image = "^1.17.0"
pytesseract = "^0.3.10"
types-pyyaml = "^6.0.12.20240311"
types-pillow = "^10.2.0.20240406"
groq = "^0.5.0"
nest-asyncio = "^1.6.0"
python-magic = "^0.4.27"
transformers = {version="^4.40.1", optional=true}
google-generativeai = "^0.5.2"
[tool.poetry.extras]
# install these using `poetry install -E [...]` where [...] is one of the extras below
# or install multiple extras using, e.g., `poetry install -E "litellm mysql"
hf-embeddings = ["sentence-transformers", "torch"]
transformers = ["transformers", "huggingface-hub", "torch"]
unstructured = ["unstructured"]
postgres = ["psycopg2", "pytest-postgresql"]
mysql = ["pymysql", "pytest-mysql"]
litellm = ["litellm"]
neo4j = ["neo4j"]
metaphor = ["metaphor-python"]
chainlit = ["chainlit", "python-socketio"]
chromadb = ["chromadb"]
mkdocs = ["mkdocs", "mkdocs-material", "mkdocstrings", "mkdocs-awesome-pages-plugin",
"mkdocs-gen-files", "mkdocs-literate-nav",
"mkdocs-section-index", "mkdocs-jupyter", "mkdocs-rss-plugin"]
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
coverage = "^7.2.5"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
include = '\.pyi?$'
[tool.mypy]
python_version = "3.11"
#follow_imports = "skip"
#check_untyped_defs = "True"
disallow_untyped_defs = "True"
ignore_missing_imports = "True"
warn_unused_ignores = "False"
strict = true
exclude = [
"docs", ".venv", "venv", "examples", "examples_dev", "langroid/utils/web",
"notebooks",
"langroid/parsing/repo_loader.py",
"langroid/embedding_models/clustering.py",
#TODO revisit why mypy keeps failing on gh actions, but works fine locally
"langroid/agent/callbacks/chainlit.py",
"langroid/vector_store/chromadb.py",
"langroid/embedding_models/protoc" # ignore generated files
]
files=["langroid/*"]
plugins = [
"pydantic.mypy"
]
[tool.ruff]
line-length = 88
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
lint.exclude = ["docs/**", ".venv", "venv", "examples/**", "examples_dev", "langroid/utils/web", "notebooks", "__init__.py", "langroid/embedding_models/protoc/*"]
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
lint.unfixable = []
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]