-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
216 lines (191 loc) · 4.71 KB
/
pyproject.toml
File metadata and controls
216 lines (191 loc) · 4.71 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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
[project]
name = "cognova-mcp"
version = "1.0.0"
description = "AI-Powered Test Generation MCP Server for IDE Integration"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{name = "Sefa Ertunc", email = "sefaertnc@gmail.com"}
]
keywords = [
"testing", "ai", "automation", "claude", "qa",
"test-generation", "mcp", "ide-integration",
"pytest", "playwright", "robot-framework"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
# Core
"anthropic>=0.40.0",
"pyyaml>=6.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
# Template rendering
"jinja2>=3.1.0",
# Retry logic (for API calls)
"tenacity>=8.2.0",
# MCP Server
"mcp[cli]",
# Vector storage
"lancedb",
"pyarrow",
# Code analysis
"tree-sitter",
"tree-sitter-python",
"tree-sitter-javascript",
"tree-sitter-java",
"tree-sitter-c-sharp",
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.12.0",
"pytest-asyncio>=0.23.0",
"hypothesis>=6.0.0",
# Code quality
"ruff>=0.15.0",
"mypy>=1.0.0",
"pre-commit>=3.6.0",
# Type stubs
"types-PyYAML>=6.0.0",
]
# Local embeddings (heavy: ~3.9 GB with CUDA)
ml = [
"sentence-transformers",
"torch",
]
# Framework validators (optional)
validators = [
"robotframework>=7.0",
"gherkin-official>=29.0.0",
]
# All optional dependencies
all = [
"cognova-mcp[dev]",
"cognova-mcp[ml]",
"cognova-mcp[validators]",
]
[project.scripts]
cognova-mcp = "cognova.mcp_server:main"
[project.urls]
Homepage = "https://github.com/sefaertunc/cognova"
Documentation = "https://github.com/sefaertunc/cognova#readme"
Repository = "https://github.com/sefaertunc/cognova"
Issues = "https://github.com/sefaertunc/cognova/issues"
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
cognova = [
"prompts/**/*.md",
"prompts/**/*.yaml",
"scenario/templates/*.yaml",
"rules/default_rules.json",
]
# Ruff configuration
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src"]
[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 formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["cognova"]
# MyPy configuration
[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
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
show_error_codes = true
show_column_numbers = true
[[tool.mypy.overrides]]
module = ["anthropic.*", "lancedb.*", "tree_sitter.*", "sentence_transformers.*", "mcp.*"]
ignore_missing_imports = true
# Pytest configuration
[tool.pytest.ini_options]
testpaths = [".dev-tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
python_classes = ["Test*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"-ra",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow running tests",
]
asyncio_mode = "auto"
filterwarnings = [
"ignore::DeprecationWarning",
]
# Coverage configuration
[tool.coverage.run]
source = ["src/cognova"]
branch = true
omit = [
"*/.dev-tests/*",
"*/__init__.py",
# Placeholder modules (remove as each feature is implemented)
"src/cognova/analyzer/*",
"src/cognova/context/*",
"src/cognova/feedback/*",
"src/cognova/generator/*",
"src/cognova/healing/*",
"src/cognova/judge/*",
"src/cognova/memory/*",
"src/cognova/queue.py",
"src/cognova/regression/*",
"src/cognova/repair/*",
"src/cognova/rules/*",
"src/cognova/scenario/*",
"src/cognova/utils/*",
"src/cognova/web_server.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
fail_under = 80
show_missing = true