-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (133 loc) · 3.4 KB
/
Copy pathpyproject.toml
File metadata and controls
149 lines (133 loc) · 3.4 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
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
[build-system]
requires = ["setuptools>=75.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nexusrag"
dynamic = ["version"]
description = "Local hybrid retrieval and faithfulness benchmark for scientific papers"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
authors = [
{name = "Urme Bose"}
]
keywords = ["rag", "llm", "scientific-literature", "retrieval-augmented-generation"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"numpy>=1.26.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"pydantic>=2.10.0",
"pydantic-settings>=2.6.0",
"sentence-transformers>=3.3.0",
"httpx>=0.28.0",
"lancedb>=0.17.0",
"pyarrow>=18.0.0",
"pypdf>=5.1.0",
"python-docx>=1.1.0",
"python-multipart>=0.0.18",
"python-dotenv>=1.0.1",
"PyYAML>=6.0.2",
"rank-bm25>=0.2.2",
"slowapi>=0.1.9",
"python-magic>=0.4.27",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.25.0",
"pytest-cov>=6.0.0",
"ruff==0.15.17",
"mypy>=1.13.0",
]
eval = [
"datasets>=3.0.0",
"matplotlib>=3.8.0",
"scipy>=1.11.0",
]
[project.urls]
Homepage = "https://github.com/urme-b/NexusRAG"
Repository = "https://github.com/urme-b/NexusRAG"
[project.scripts]
nexusrag = "nexusrag.cli:main"
nexusrag-eval = "nexusrag.eval.run:main"
nexusrag-report = "nexusrag.eval.report:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "nexusrag.__version__"}
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ARG001", "ARG002", "ARG005"]
# slowapi's @limiter.limit requires a `request: Request` route param it reads reflectively.
"src/nexusrag/api/routes.py" = ["ARG001"]
[tool.ruff.lint.isort]
known-first-party = ["nexusrag"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-v --tb=short"
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"lancedb.*",
"sentence_transformers.*",
"pyarrow",
"pyarrow.*",
"rank_bm25",
"rank_bm25.*",
"datasets",
"datasets.*",
"matplotlib",
"matplotlib.*",
"transformers",
"transformers.*",
"scipy",
"scipy.*",
"slowapi",
"slowapi.*",
"magic",
]
ignore_missing_imports = true
[tool.coverage.run]
source = ["src/nexusrag"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]