-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
190 lines (172 loc) · 4.9 KB
/
pyproject.toml
File metadata and controls
190 lines (172 loc) · 4.9 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
[project]
name = "quantum-code"
version = "0.1.4"
description = "Multi-Model Code Review and Analysis MCP Server for Claude Code"
readme = "README_PYPI.md"
requires-python = ">=3.11,<3.15"
license = "MIT"
authors = [
{name = "Nishant Gaurav", email = "codewithevilxd@gmail.com"}
]
keywords = [
"agents",
"ai",
"ai-agents",
"ai-agents-cli",
"ai-code-review",
"anthropic",
"claude",
"claude-commands",
"claude-mcp",
"claude-skills",
"code-analysis",
"developer-tools",
"gemini",
"gpt",
"llm",
"llm-orchestration",
"mcp",
"mcp-agent",
"model-context-protocol",
"multi-agent",
"multi-model",
"openai",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.127.0",
"fastmcp>=2.13",
"litellm>=1.80.8",
"orjson>=3.11.5",
"pydantic>=2.12.0",
"pydantic-settings>=2.12.0",
"python-dotenv>=1.0.0",
"pyyaml>=6.0",
]
[project.scripts]
quantum = "quantum_code.cli:main"
quantum-server = "quantum_code.server:main"
quantum-code = "quantum_code.server:main"
[project.optional-dependencies]
dev = [
# Testing
"pytest>=9.0.0",
"pytest-asyncio>=0.23.0",
"pytest-mock>=3.15.0",
"pytest-cov>=4.1.0",
"pytest-timeout>=2.2.0",
"pytest-xdist>=3.5.0",
"pytest-recording>=0.13.4",
"vcrpy>=7.0.0",
"httpx>=0.26.0",
# Linting & formatting
"ruff>=0.14.0",
"pyright>=1.1.407",
# Dead code detection (YAGNI)
"vulture>=2.11",
# Publishing
"twine>=6.0.0",
]
[project.urls]
Homepage = "https://github.com/Codewithevilxd/quantum-code"
Repository = "https://github.com/Codewithevilxd/quantum-code"
Issues = "https://github.com/Codewithevilxd/quantum-code/issues"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["quantum_code*"]
exclude = ["tests*", "docs*", "ref*", "tmp*"]
[tool.setuptools.package-data]
quantum_code = ["config/*.yaml", "prompts/*.md"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
pythonpath = ["."]
norecursedirs = ["tmp", "ref", "docs", ".git", ".venv"]
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
"--tb=short",
"--color=yes",
"--disable-recording", # Disable VCR due to httpx/litellm compatibility issues
]
markers = [
"e2e: End-to-end tests using Claude CLI (deselect with '-m \"not e2e\"')",
"slow: Tests that take >5 seconds to execute",
"integration: Integration tests",
"unit: Unit tests",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.ruff]
line-length = 140
target-version = "py311"
exclude = ["tests/data/**", ".venv/**", "build/**", "dist/**", "ref/**", "tmp/**"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes (F401=unused imports, F841=unused variables)
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe complexity (KISS)
"UP", # pyupgrade
"SIM", # flake8-simplify (DRY/KISS suggestions)
"PIE", # flake8-pie (misc simplifications)
"RUF", # Ruff-specific rules (unused noqa, etc.)
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"SIM108", # use ternary operator (not always cleaner)
]
[tool.ruff.lint.mccabe]
max-complexity = 15 # KISS: Flag functions over this cyclomatic complexity
[tool.ruff.lint.per-file-ignores]
# Pre-existing complex functions - candidates for future refactoring
"quantum_code/models/cli_executor.py" = ["C901"] # execute, _parse_output
"quantum_code/tools/codereview.py" = ["C901"] # codereview_impl (31)
# Tests often use nested with statements (pytest.raises + mocks)
"tests/**/*.py" = ["SIM117"]
# Scripts are utility code, not production
"scripts/**/*.py" = ["SIM110", "SIM117"]
[tool.ruff.lint.isort]
known-first-party = ["quantum_code"]
[tool.pyright]
include = ["quantum_code"]
exclude = ["**/__pycache__", "ref/", "tmp/", "**/.pytest_cache", "tests/data/"]
typeCheckingMode = "basic"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.11"
pythonPlatform = "All"
[tool.coverage.run]
source = ["quantum_code"]
branch = true
omit = ["quantum_code/__init__.py"]
[tool.coverage.report]
fail_under = 80 # Minimum coverage threshold
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]