Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (116 loc) · 2.84 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (116 loc) · 2.84 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "code-rag-me"
version = "0.1.2"
description = "RAG-based Q&A system for code repositories with verifiable citations"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Sebastian", email = "segamozi@gmail.com" }
]
keywords = ["rag", "code", "qa", "llm", "embeddings", "chromadb"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"pydantic>=2.10.0",
"pydantic-settings>=2.6.0",
"gradio>=4.44.0",
"transformers>=4.46.0",
"accelerate>=1.1.0",
"bitsandbytes>=0.44.0",
"torch>=2.5.0",
"sentence-transformers>=3.3.0",
"chromadb>=0.5.0",
"tree-sitter>=0.23.0",
"tree-sitter-python>=0.23.0",
"gitpython>=3.1.0",
"python-dotenv>=1.0.0",
"structlog>=24.4.0",
"pyyaml>=6.0.0",
"httpx>=0.27.0",
"einops>=0.8.0",
"openai>=1.50.0",
"mcp>=1.0.0",
"click>=8.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"black>=24.10.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"pre-commit>=4.0.0",
]
[project.scripts]
coderag = "coderag.cli:main"
coderag-mcp = "coderag.mcp.cli:main"
[project.urls]
Homepage = "https://github.com/Sebastiangmz/CodeRAG"
Repository = "https://github.com/Sebastiangmz/CodeRAG"
[tool.hatch.build.targets.wheel]
packages = ["src/coderag"]
[tool.black]
line-length = 100
target-version = ["py311"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hatch
| \.mypy_cache
| \.venv
| _build
| build
| dist
| __pycache__
)/
'''
[tool.ruff]
line-length = 100
target-version = "py311"
[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 black)
"B008", # do not perform function calls in argument defaults
"B009", # do not call getattr with a constant attribute value
]
[tool.ruff.lint.isort]
known-first-party = ["coderag"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"