-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (143 loc) · 4.05 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (143 loc) · 4.05 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
150
151
152
153
154
155
[build-system]
requires = ["setuptools>=82.0.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "coderag"
version = "1.0.0"
description = "Standalone, local-first semantic code-search engine for large and custom codebases."
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Neverdecel" }]
keywords = [
"code-search",
"semantic-code-search",
"rag",
"retrieval-augmented-generation",
"embeddings",
"faiss",
"semantic-search",
"hybrid-search",
"vector-search",
"retrieval",
"tree-sitter",
"local-first",
"mcp",
"llm",
]
dependencies = [
"lancedb>=0.33,<1",
"pylance>=0.10",
"pyarrow>=16,<25",
"numpy>=2.4.6,<3",
"python-dotenv>=1.2.2,<2",
"tenacity>=9.1.4,<10",
"watchdog>=6.0.0,<7",
"fastembed>=0.8.0,<1",
"pathspec>=0.12,<2",
"tree-sitter>=0.25.2,<0.26",
"tree-sitter-python>=0.25.0,<0.26",
"tree-sitter-javascript>=0.25.0,<0.26",
"tree-sitter-typescript>=0.23.2,<0.26",
"tree-sitter-go>=0.25.0,<0.26",
"tree-sitter-rust>=0.24.2,<0.26",
"tree-sitter-java>=0.23.5,<0.26",
"tqdm>=4.68.2,<5",
]
[project.urls]
Homepage = "https://github.com/Neverdecel/CodeRAG"
Documentation = "https://github.com/Neverdecel/CodeRAG#readme"
Repository = "https://github.com/Neverdecel/CodeRAG"
Demo = "https://coderag-ui.neverdecel.com/"
Issues = "https://github.com/Neverdecel/CodeRAG/issues"
[project.optional-dependencies]
server = [
"fastapi>=0.137.1,<1",
"uvicorn[standard]>=0.49.0,<1",
]
ui = [
"fastapi>=0.137.1,<1",
"uvicorn[standard]>=0.49.0,<1",
"jinja2>=3.1.6,<4",
"pygments>=2.20.0,<3",
]
# MCP server surface: lets AI coding agents (Claude Code, Codex, Cursor) use CodeRAG's
# index as their retrieval tool instead of slow grep/glob/read loops.
mcp = [
"mcp>=1.9.0,<2",
]
openai = [
"openai>=2.41.1,<3",
]
# GPU embedding for the local fastembed backend on an NVIDIA box. Installs the CUDA
# onnxruntime so `CODERAG_EMBED_DEVICE=auto` (or `cuda`) runs embeddings on the GPU —
# typically 10-50x faster indexing. Install with: pip install 'coderag[gpu]'.
gpu = [
"onnxruntime-gpu>=1.17,<2",
]
anthropic = [
"anthropic>=0.109.2,<1",
]
all = [
"fastapi>=0.137.1,<1",
"uvicorn[standard]>=0.49.0,<1",
"jinja2>=3.1.6,<4",
"pygments>=2.20.0,<3",
"mcp>=1.9.0,<2",
"openai>=2.41.1,<3",
"anthropic>=0.109.2,<1",
]
dev = [
"ruff>=0.15.17,<1",
"mypy>=2.1.0,<3",
"pre-commit>=4.6.0,<5",
"pytest>=9.1.0,<10",
"pytest-cov>=7.1.0,<8",
"httpx>=0.28.1,<1",
]
[project.scripts]
coderag = "coderag.surfaces.cli:main"
[tool.setuptools.packages.find]
include = ["coderag*"]
[tool.setuptools.package-data]
# Ship the web UI's templates and static assets inside the wheel.
"coderag.surfaces" = [
"templates/*.html",
"static/*.css",
"static/*.js",
"static/*.png",
"static/*.ico",
]
[tool.pytest.ini_options]
markers = [
"integration: tests that download models or hit the network (deselected in CI)",
]
addopts = "-q"
# Put the repo root on sys.path so `from tests.conftest import ...` resolves under a
# bare `pytest` invocation (not just `python -m pytest`).
pythonpath = ["."]
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = ["build", "dist", "venv", ".venv", "env"]
[tool.ruff.lint]
# pycodestyle (E/W) + pyflakes (F) + flake8-bugbear (B) + isort (I).
# Replaces the former black + isort + flake8 + flake8-bugbear stack.
select = ["E", "W", "F", "B", "I"]
# E203 and line length (E501) are owned by the formatter; don't double-enforce
# line width on prose/docstrings (the formatter already wraps code at 88).
ignore = ["E203", "E501"]
[tool.ruff.lint.isort]
known-first-party = ["coderag"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
disallow_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
check_untyped_defs = true
exclude = ['venv/', 'build/']
[[tool.mypy.overrides]]
# Tests favor readability over exhaustive annotations.
module = ["tests.*"]
disallow_untyped_defs = false