-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (167 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
186 lines (167 loc) · 3.98 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cc_executor"
version = "1.0.0"
description = "MCP WebSocket Service for remote command execution with Claude Code"
authors = [{ name = "Graham Anderson", email = "[email protected]" }]
requires-python = ">=3.10.11"
readme = "README.md"
license = "GPL-3.0-or-later"
keywords = [
"mcp",
"websocket",
"claude",
"executor",
"fastapi"
]
# Core dependencies for cc_executor
dependencies = [
"mcp-logger-utils>=0.2.0",
"fastapi>=0.110.0",
"uvicorn[standard]>=0.29.0",
"websockets>=12.0",
"pydantic>=2.0",
"pydantic-settings>=2.0.0",
"loguru>=0.7.2",
"python-dotenv>=1.0.0",
"aiofiles>=23.0.0",
"asyncio>=3.4.3",
"redis>=5.0.0", # For timeout tracking
"tenacity>=9.1.2",
"litellm>=1.73.2",
"numpy>=2.2.6",
"psutil>=7.0.0",
"scipy>=1.15.3",
"ipykernel>=6.29.5",
"matplotlib>=3.10.3",
"pandas>=2.3.0",
"typer>=0.16.0",
"rich>=14.0.0",
"claude-code-sdk>=0.0.14",
"anyio>=4.9.0",
"anthropic>=0.56.0",
"fastmcp>=0.1.0",
"pytest>=8.4.1",
"httpx>=0.28.1",
"rank-bm25>=0.2.2",
"tqdm>=4.66.0", # For progress bars in examples
"python-daemon>=3.1.2",
"json-repair>=0.47.6",
"python-arango>=8.2.1",
"google-cloud-aiplatform>=1.103.0",
"google-auth>=2.40.3",
"networkx>=3.4.2",
"tree-sitter>=0.24.0",
"tree-sitter-language-pack>=0.9.0",
"tree-sitter-languages>=1.10.2",
"uvloop>=0.21.0",
"pylint>=3.3.7",
"python-arango-async>=0.0.5",
"sentence-transformers>=5.0.0",
"tiktoken>=0.9.0",
"faiss-cpu>=1.11.0.post1",
"python-louvain>=0.16",
"faiss-gpu>=1.7.2",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.12.0",
"ruff>=0.1.0",
"black>=23.0.0",
"mypy>=1.0.0",
"httpx>=0.27.0", # For testing
]
stress = [
"aiohttp>=3.11.18", # For stress testing
"numpy>=1.26.4", # For statistics
]
[project.urls]
Repository = "https://github.com/grahama1970/cc_executor"
[project.scripts]
# Main CLI entry point
cc-executor = "cc_executor.cli.main:app"
# Utility scripts
check-file-rules = "cc_executor.prompts.commands.check_file_rules:main"
transcript-helper = "cc_executor.prompts.commands.transcript_helper:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
path = "src/cc_executor/__init__.py"
[tool.hatch.envs.default]
features = ["dev", "stress"]
python = "3.10.11"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"README.md",
"LICENSE",
"Dockerfile",
"docker-compose.yml",
"requirements.txt"
]
[tool.hatch.build.targets.wheel]
packages = ["src/cc_executor"]
# Ruff configuration
[tool.ruff]
line-length = 120
target-version = "py310"
select = ["E", "W", "F", "I", "UP", "B", "C4", "RUF"]
ignore = ["E501"] # Line too long
[tool.ruff.lint.isort]
known-first-party = ["cc_executor"]
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"stress: Stress tests",
"slow: Slow tests",
]
filterwarnings = ["ignore::Warning"]
addopts = "-v"
# MyPy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = "loguru.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "websockets.*"
ignore_missing_imports = true
# Black configuration
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''