Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (180 loc) · 5.18 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (180 loc) · 5.18 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "code-context-control"
version = "2.158.4"
description = "Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub."
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [
{ name = "Dimitri Tselenchuk", email = "dtselenc@gmail.com" }
]
keywords = [
"claude", "claude-code", "mcp", "ai", "code-intelligence",
"code-context", "developer-tools", "llm-tools",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"tiktoken>=0.7.0",
"fastmcp>=2.0.0",
"tomlkit>=0.13.2",
"watchdog>=4.0.0",
"tree-sitter>=0.22.0",
"tree-sitter-python>=0.21.0",
"tree-sitter-javascript>=0.21.0",
"tree-sitter-typescript>=0.21.0",
"tree-sitter-html>=0.21.0",
"tree-sitter-markdown>=0.3.2",
"tree-sitter-css>=0.21.0",
"tree-sitter-go>=0.21.0",
"tree-sitter-rust>=0.21.0",
"tree-sitter-json>=0.21.0",
"tree-sitter-yaml>=0.6.0",
"flask>=3.0.0",
"rich>=13.0.0",
"click>=8.0.0",
"pyyaml>=6.0.0",
"keyring>=24.0",
"cryptography>=41.0",
"tzdata>=2024.1; sys_platform == 'win32'",
]
[project.optional-dependencies]
vector = [
"scikit-learn>=1.3.0",
"numpy>=1.24.0",
"chromadb>=0.4.24",
]
# Optional cross-encoder reranker for c3_search (opt-in: search_rerank: "auto").
rerank = [
"flashrank>=0.2.10",
]
tui = [
"textual>=0.50.0",
]
telemetry = [
"sentry-sdk>=2.0.0",
]
dev = [
"pytest>=7.0.0",
"pyright>=1.1.350",
"ruff>=0.6.0",
"build>=1.0.0",
"twine>=5.0.0",
# Vector deps so CI exercises the embedding/similarity code paths
# (federated_graph lazy-imports numpy; tests for that path need it).
"numpy>=1.24.0",
"scikit-learn>=1.3.0",
]
[project.urls]
Homepage = "https://github.com/drknowhow/code-context-control"
Documentation = "https://github.com/drknowhow/code-context-control#readme"
Repository = "https://github.com/drknowhow/code-context-control"
Changelog = "https://github.com/drknowhow/code-context-control/blob/main/CHANGELOG.md"
Issues = "https://github.com/drknowhow/code-context-control/issues"
Funding = "https://github.com/sponsors/drknowhow"
[project.scripts]
c3 = "cli.c3:main"
c3-mcp = "cli.mcp_server:main"
c3-hub = "cli.hub_server:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = [
"cli*",
"services*",
"core*",
"oracle*",
"tui*",
]
exclude = [
"tests*",
".c3*",
".github*",
"Marketing*",
"commercial*",
"docs*",
"oracle-guide*",
]
[tool.setuptools.package-data]
"*" = [
"*.html",
"*.css",
"*.js",
"*.json",
"*.tcss",
"*.md",
]
# In-app guide HTML/CSS lives in a subdirectory of the cli package, so it needs
# an explicit pattern (the "*" globs above only match a package's top level).
cli = [
"guide/*.html",
"guide/*.css",
"guide/*.js",
"ui/*.js",
"ui/components/*.js",
"hub_ui/*.js",
"hub_ui/components/*.js",
]
oracle = [
"ui/*.js",
"ui/chat/*.js",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
# tests/fixtures/** holds synthetic repos (search-eval); their test_*.py are data, not tests.
norecursedirs = [".*", "build", "dist", "fixtures"]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = [
".c3",
".pytest_cache",
"dist",
"build",
"docs",
"cli/guide",
"oracle-guide",
"commercial",
"tui/build.bat",
"tui/build.sh",
# map-eval fixtures are parser input, one of them deliberately malformed.
"tests/map_eval/fixtures",
# delegate write-eval fixtures are a separate project (`inv` is first-party there).
"tests/delegate_eval/fixtures",
]
[tool.ruff.lint]
# Conservative ruleset to start: pyflakes, basic style, import sorting.
# Tighten over time; do NOT add rules that mass-rewrite existing code.
select = ["E", "F", "W", "I"]
ignore = [
"E501", # line-too-long: handled by formatter, many existing exceptions
"E402", # module-level imports not at top: needed for sys.path hacks
"E701", # multi-statement-on-one-line: stylistic; common in CLI/argparse code
"E722", # bare-except: tolerated in best-effort/diagnostic paths (TODO: tighten)
"E731", # do-not-assign-lambda: stylistic, many false positives
"E741", # ambiguous-variable-name (l/I/O): rare, low value
"F841", # unused-variable: often left intentionally as documentation
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F811"]
"cli/c3.py" = ["E402"]
"cli/mcp_server.py" = ["E402"]