forked from vitali87/code-graph-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (141 loc) · 4 KB
/
pyproject.toml
File metadata and controls
156 lines (141 loc) · 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
150
151
152
153
154
155
156
[project]
name = "code-graph-rag"
version = "0.0.79"
description = "The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = [
"rag",
"retrieval-augmented-generation",
"knowledge-graph",
"code-analysis",
"tree-sitter",
"mcp",
"mcp-server",
"llm",
"graph-database",
"semantic-search",
"codebase",
"memgraph",
"developer-tools",
"monorepo",
]
dependencies = [
"loguru>=0.7.3",
"mcp>=1.21.1",
"pydantic-ai>=1.27.0",
"pydantic-settings>=2.0.0",
"pymgclient>=1.4.0",
"python-dotenv>=1.1.0",
"toml>=0.10.2",
"tree-sitter-python>=0.23.6",
"tree-sitter==0.25.0",
"watchdog>=6.0.0",
"typer>=0.12.5",
"rich>=13.7.1",
"prompt-toolkit>=3.0.0",
"diff-match-patch>=20241021",
"click>=8.0.0",
"protobuf>=5.27.0",
"defusedxml>=0.7.1",
"huggingface-hub[hf-xet]>=0.36.0",
]
[project.scripts]
code-graph-rag = "codebase_rag.cli:app"
cgr = "codebase_rag.cli:app"
[tool.uv]
package = true
[tool.setuptools]
packages = ["codebase_rag", "codec", "cgr"]
[project.optional-dependencies]
test = [
"pytest>=8.4.1",
"pytest-asyncio>=1.0.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.8.0",
"testcontainers>=4.9.0",
]
treesitter-full = [
"tree-sitter-python>=0.23.6",
"tree-sitter-javascript>=0.23.1",
"tree-sitter-typescript>=0.23.2",
"tree-sitter-rust>=0.24.0",
"tree-sitter-go>=0.23.4",
"tree-sitter-scala>=0.24.0",
"tree-sitter-java>=0.23.5",
"tree-sitter-cpp>=0.23.0",
"tree-sitter-lua>=0.0.19",
]
semantic = [
"qdrant-client>=1.9.0",
"torch>=2.6.0",
"transformers>=4.0.0",
]
[tool.ruff]
line-length = 88
target-version = "py312"
exclude = ["codec/"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "PL", "T201"]
ignore = [
"E501", # line too long
"PLR2004", # magic value comparison (too noisy)
"PLC0415", # import not at top-level (intentional lazy imports)
"PLR0913", # too many arguments (often unavoidable)
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0915", # too many statements
"PLW2901", # loop variable overwritten (intentional for .strip())
"PLW0603", # global statement (singleton pattern)
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**" = ["T201"]
[tool.ruff.format]
quote-style = "double"
[tool.ty.environment]
python-version = "3.12"
[tool.ty.src]
exclude = ["codebase_rag/tests/test_cypher_queries.py", "codebase_rag/tests/test_code_retrieval.py", "codebase_rag/tests/test_call_resolver.py"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["codebase_rag/tests"]
norecursedirs = ["grammars", ".git", "__pycache__", "*.egg-info", ".venv", "venv"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow (may download models or require external services)",
"integration: marks tests as integration tests requiring Docker",
"e2e: marks tests as end-to-end tests",
]
[dependency-groups]
dev = [
"bandit>=1.9.2",
"coverage>=7.13.0",
"pre-commit>=4.2.0",
"pyinstaller>=6.14.1",
"pylint>=4.0.4",
"radon>=6.0.1",
"ruff>=0.5.5",
"semgrep>=1.79.0",
"ty>=0.0.7",
"types-protobuf>=5.0.0",
"types-toml>=0.10.8.20240310",
"vulture>=2.14",
]
[tool.bandit]
exclude_dirs = ["codebase_rag/tests", "scripts"]
skips = ["B101"]