forked from langroid/langroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
136 lines (126 loc) · 3.73 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
[tool.poetry]
name = "langroid"
version = "0.1.109"
description = "Harness LLMs with Multi-Agent Programming"
authors = ["Prasad Chalasani <[email protected]>"]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.9.1,<3.12"
mkdocs = "^1.4.2"
mkdocs-material = "^9.1.5"
mkdocstrings = {extras = ["python"], version = "^0.21.2"}
mkdocs-awesome-pages-plugin = "^2.8.0"
mkdocs-gen-files = "^0.4.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-section-index = "^0.3.5"
mkdocs-jupyter = "^0.24.1"
chromadb = "^0.3.21"
fire = "^0.5.0"
black = {extras = ["jupyter"], version = "^23.3.0"}
flake8 = "^6.0.0"
mypy = "^1.2.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 = "^0.27.5"
tiktoken = "^0.5.1"
pygithub = "^1.58.1"
pygments = "^2.15.1"
redis = "^4.5.5"
fakeredis = "^2.12.1"
faker = "^18.9.0"
requests = "^2.31.0"
ruff = "^0.0.270"
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.3.1"
pydantic = "1.10.11"
pypdf = "^3.12.2"
momento = "^1.10.2"
pandas = "^2.0.3"
sqlalchemy = "^2.0.19"
prettytable = "^3.8.0"
tantivy = "0.20.1"
google-api-python-client = "^2.95.0"
lxml = "^4.9.3"
unstructured = {extras = ["docx", "pptx", "pdf"], version = ">=0.10.16,<0.10.18"}
# optional; see extras section below
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}
mkdocs-rss-plugin = "^1.8.0"
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"
farm-haystack = {extras = ["ocr", "preprocessing", "file-conversion", "pdf"], version = "^1.21.1"}
meilisearch = "^0.28.3"
meilisearch-python-sdk = "^2.0.1"
litellm = "^0.6.2"
scrapy = "^2.11.0"
async-generator = "^1.10"
lancedb = "^0.3.0"
[tool.poetry.extras]
# install these using `poetry install -E [...]` where [...] is one of the extras below
hf-embeddings = ["sentence-transformers", "torch"]
postgres = ["psycopg2", "pytest-postgresql"]
mysql = ["pymysql", "pytest-mysql"]
[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"
strict = true
exclude = [
"docs", ".venv", "venv", "examples", "examples_dev", "langroid/utils/web",
"notebooks",
"langroid/parsing/repo_loader.py",
"langroid/embedding_models/clustering.py",
]
files=["langroid/*"]
plugins = [
"pydantic.mypy"
]
[tool.ruff]
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
exclude = ["docs", ".venv", "venv", "examples", "examples_dev", "langroid/utils/web", "notebooks", "__init__.py"]
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"]
unfixable = []
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]