-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (106 loc) · 2.14 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
[tool.poetry]
name = "nChain"
version = "0.13.post5"
description = "nchain is a flexible and efficent framework to create LLM bots using embeddings over extensible dataset"
authors = ["James Liu <[email protected]>"]
license = "Apache License"
readme = "README.md"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.ruff]
select = ["E", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 120
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
[tool.ruff.mccabe]
max-complexity = 10
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.per-file-ignores]
"nchain/__init__.py" = ["E401"]
[tool.black]
line-length = 120
target-version = ["py310", "py311"]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.pants.d
| \.pytype
| \.ruff_cache
| \.svn
| \.tox
| \.venv
| __pypackages__
| _build
| buck-out
| build
| dist
| node_modules
| venv
)/
'''
[tool.black.format]
color = true
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python-dotenv = "^1.0.0"
requests = "^2.31.0"
openai = "^0.27.5"
beautifulsoup4 = "^4.12.2"
lxml = "^4.9.2"
pypdf = "^3.11.0"
click = "^8.1.7"
arxiv = "^1.4.8"
sqlite-utils = "^3.35.1" # replace with the version you need
nltk = ">=3.5"
sentence-transformers = "^2.2.2"
pydantic = "^2.4.2"
numpy = "^1.26.0"
annoy = "^1.17.3"
faiss-cpu = "^1.7.1"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
pre-commit = "^3.2.2"
ruff = "^0.0.220"
pytest = "^7.3.1"
pytest-mock = "^3.10.0"
pytest-env = "^0.8.1"
click = "^8.1.3"
isort = "^5.12.0"
[tool.poetry.extras]
opensource = ["sentence-transformers", "torch"]
test = ["pytest"]
[tool.poetry.group.docs.dependencies]
[tool.poetry.scripts]
nchain = "nchain.cli:cli"