-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
565 lines (496 loc) · 16.7 KB
/
pyproject.toml
File metadata and controls
565 lines (496 loc) · 16.7 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "codeflow-engine"
version = "0.2.0-alpha.1"
description = "AI-Powered GitHub PR Automation and Issue Management"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "VeritasVault Team", email = "dev@veritasvault.net"}
]
maintainers = [
{name = "VeritasVault Team", email = "dev@veritasvault.net"}
]
keywords = [
"github", "pull-request", "automation", "ai", "code-review",
"ci-cd", "workflow", "integration", "slack", "linear", "autogen",
"llm", "openai", "anthropic", "issue-management", "quality-gates",
"platform-detection", "multi-agent"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
dynamic = ["dependencies"]
[project.urls]
Homepage = "https://github.com/JustAGhosT/codeflow-engine/tree/master/engine"
Documentation = "https://github.com/JustAGhosT/codeflow-engine/tree/master/docs"
Repository = "https://github.com/JustAGhosT/codeflow-engine"
"Bug Tracker" = "https://github.com/JustAGhosT/codeflow-engine/issues"
Changelog = "https://github.com/JustAGhosT/codeflow-engine/blob/master/engine/CHANGELOG.md"
Discussions = "https://github.com/JustAGhosT/codeflow-engine/discussions"
[project.scripts]
codeflow = "codeflow_engine.cli.main:main"
codeflow-server = "codeflow_engine.server:main"
codeflow-worker = "codeflow_engine.worker:main"
codeflow-migration = "codeflow_engine.migration:main"
[project.entry-points."codeflow.actions"]
platform_detector = "codeflow_engine.actions.platform_detector:PlatformDetector"
pr_review_analyzer = "codeflow_engine.actions.pr_review_analyzer:PRReviewAnalyzer"
issue_creator = "codeflow_engine.actions.issue_creator:IssueCreator"
ai_comment_analyzer = "codeflow_engine.actions.ai_comment_analyzer:AICommentAnalyzer"
quality_gates = "codeflow_engine.actions.quality_gates:QualityGates"
autogen_multi_agent = "codeflow_engine.actions.autogen_multi_agent:AutoGenMultiAgent"
[project.entry-points."codeflow.integrations"]
github = "codeflow_engine.integrations.github:GitHubIntegration"
linear = "codeflow_engine.integrations.linear:LinearIntegration"
slack = "codeflow_engine.integrations.slack:SlackIntegration"
axolo = "codeflow_engine.integrations.axolo:AxoloIntegration"
[project.entry-points."codeflow.llm_providers"]
openai = "codeflow_engine.ai.providers.openai:OpenAIProvider"
anthropic = "codeflow_engine.ai.providers.anthropic:AnthropicProvider"
mistral = "codeflow_engine.ai.providers.mistral:MistralProvider"
groq = "codeflow_engine.ai.providers.groq:GroqProvider"
[tool.poetry]
name = "codeflow-engine"
version = "0.2.0-alpha.1"
description = "AI-Powered GitHub PR Automation and Issue Management"
authors = ["VeritasVault Team <dev@veritasvault.net>"]
maintainers = ["VeritasVault Team <dev@veritasvault.net>"]
license = "MIT"
readme = "README.md"
packages = [{include = "codeflow_engine"}]
keywords = [
"github", "pull-request", "automation", "ai", "code-review",
"ci-cd", "workflow", "integration", "slack", "linear", "autogen",
"llm", "openai", "anthropic", "issue-management", "quality-gates",
"platform-detection", "multi-agent"
]
[tool.poetry.dependencies]
python = "^3.12.0"
pydantic = "^2.9.0"
pydantic-settings = "^2.0.0"
aiohttp = "^3.10.0"
structlog = "^24.4.0"
click = "^8.1.0"
pyyaml = "^6.0.1"
opentelemetry-sdk = ">=1.22.0"
jinja2 = "^3.1.4"
pygithub = "^2.4.0"
GitPython = "^3.1.43"
openai = "^1.99.0"
anthropic = "^0.34.0"
mistralai = "^1.2.0"
groq = "^0.11.0"
httpx = "^0.27.0"
websockets = "^13.1.0"
python-dateutil = "^2.8.0"
pytz = "^2024.1"
python-dotenv = "^1.0.1"
tomli = "^2.0.1"
dependency-injector = "^4.0.0"
psutil = "^6.0.0"
numpy = "^2.3.0"
psycopg2-binary = "^2.9.11"
flask-socketio = "^5.5.1"
alembic = "^1.17.2"
# Deprecated: Use [project.urls] instead (kept for backward compatibility)
[tool.poetry.urls]
Homepage = "https://github.com/JustAGhosT/codeflow-engine/tree/master/engine"
Documentation = "https://github.com/JustAGhosT/codeflow-engine/tree/master/docs"
Repository = "https://github.com/JustAGhosT/codeflow-engine"
"Bug Tracker" = "https://github.com/JustAGhosT/codeflow-engine/issues"
Changelog = "https://github.com/JustAGhosT/codeflow-engine/blob/master/engine/CHANGELOG.md"
Discussions = "https://github.com/JustAGhosT/codeflow-engine/discussions"
# Deprecated: Use [project.scripts] instead (kept for backward compatibility)
[tool.poetry.scripts]
codeflow = "codeflow_engine.cli.main:main"
codeflow-server = "codeflow_engine.server:main"
codeflow-worker = "codeflow_engine.worker:main"
codeflow-migration = "codeflow_engine.migration:main"
# Deprecated: Use [project.entry-points] instead (kept for backward compatibility)
[tool.poetry.plugins."codeflow.actions"]
"platform_detector" = "codeflow_engine.actions.platform_detector:PlatformDetector"
"pr_review_analyzer" = "codeflow_engine.actions.pr_review_analyzer:PRReviewAnalyzer"
"issue_creator" = "codeflow_engine.actions.issue_creator:IssueCreator"
"ai_comment_analyzer" = "codeflow_engine.actions.ai_comment_analyzer:AICommentAnalyzer"
"quality_gates" = "codeflow_engine.actions.quality_gates:QualityGates"
"autogen_multi_agent" = "codeflow_engine.actions.autogen_multi_agent:AutoGenMultiAgent"
[tool.poetry.plugins."codeflow.integrations"]
"github" = "codeflow_engine.integrations.github:GitHubIntegration"
"linear" = "codeflow_engine.integrations.linear:LinearIntegration"
"slack" = "codeflow_engine.integrations.slack:SlackIntegration"
"axolo" = "codeflow_engine.integrations.axolo:AxoloIntegration"
[tool.poetry.plugins."codeflow.llm_providers"]
"openai" = "codeflow_engine.ai.providers.openai:OpenAIProvider"
"anthropic" = "codeflow_engine.ai.providers.anthropic:AnthropicProvider"
"mistral" = "codeflow_engine.ai.providers.mistral:MistralProvider"
"groq" = "codeflow_engine.ai.providers.groq:GroqProvider"
[tool.poetry.group.dev.dependencies]
pytest = "8.2.0"
pytest-asyncio = ">=0.24.0"
pytest-cov = ">=5.0.0"
pytest-mock = ">=3.14.0"
black = ">=24.8.0"
isort = ">=5.13.0"
flake8 = ">=7.0.0"
mypy = ">=1.11.0"
pre-commit = ">=3.0.0"
sphinx = ">=8.1.0"
sphinx-rtd-theme = ">=3.0.0"
myst-parser = ">=4.0.0"
types-pyyaml = ">=6.0.12"
types-requests = ">=2.32.4"
[tool.poetry.group.monitoring.dependencies]
prometheus-client = ">=0.17.0"
sentry-sdk = {extras = ["fastapi"], version = ">=1.32.0"}
datadog = ">=0.47.0"
[tool.poetry.group.memory.dependencies]
mem0ai = "^0.1.0"
chromadb = "^0.4.0"
qdrant-client = "^1.5.0"
[tool.poetry.group.ai.dependencies]
[tool.poetry.group.database.dependencies]
asyncpg = "^0.30.0"
sqlalchemy = {extras = ["asyncio"], version = "^2.0.0"}
alembic = "^1.12.0"
redis = "^4.6.0"
aioredis = "^2.0.0"
[tool.poetry.group.server.dependencies]
fastapi = "^0.103.0"
uvicorn = {extras = ["standard"], version = "^0.23.0"}
gunicorn = "^22.0.0"
[tool.poetry.group.resilience.dependencies]
pybreaker = "^1.0.0"
tenacity = "^8.2.0"
limits = "^3.6.0"
[tool.poetry.group.sidecar.dependencies]
fastapi = "^0.103.0"
uvicorn = {extras = ["standard"], version = "^0.23.0"}
websockets = "^13.1.0"
[tool.setuptools.package-dir]
"" = "."
[tool.setuptools.package-data]
codeflow_engine = [
"workflows/*.yaml",
"workflows/*.yml",
"config/*.yaml",
"config/*.yml",
"templates/*.j2",
"templates/*.jinja",
"static/*"
]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--tb=short", "--maxfail=10", "-p", "no:langsmith"]
testpaths = ["tests"]
norecursedirs = []
# pytest-asyncio configuration
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
# Warning filters are now controlled by volume settings in codeflow/utils/volume_utils.py
# Default to 'ignore' but will be overridden by volume settings when tests run
filterwarnings = [
# Always show deprecation warnings
"error",
# Default to ignoring other warnings - volume settings will adjust this
"ignore"
]
[tool.coverage.run]
source = ["codeflow_engine"]
omit = ["*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod"
]
[tool.flake8]
max-line-length = 100
extend-ignore = ["E203", "W503"]
per-file-ignores = ["__init__.py:F401"]
[tool.ruff]
# Same as Black.
line-length = 100
# Assume Python 3.12 (latest supported by ruff)
target-version = "py312"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"htmlcov",
"packages",
"templates/example-hybrid/test_early_enhanced_file_generator",
]
[tool.ruff.lint]
# Enable pycodestyle (`E`), Pyflakes (`F`), and isort (`I`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"T201", # print statements (only in scripts)
"TID", # flake8-tidy-imports
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"G", # flake8-logging-format
"PT", # flake8-pytest-style
"SLF", # flake8-self
"TRY", # tryceratops
"ERA", # eradicate
"FIX", # ruff
"INP", # isort
"PGH", # pygrep-hooks
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
# Allow print statements in scripts
"scripts/**/*.py" = ["T201"]
# Allow all issues in volume control scripts
"scripts/volume-control/volume_knob.py" = ["ALL"]
# Allow various issues in test files
"tests/**/*.py" = [
"S101", "ERA001", # assert statements and commented code
"PLR0912", "PLR0913", "PLR0915", # complexity issues
"ARG001", "ARG002", "ARG004", # unused arguments
"SLF001", # private member access
"PLR2004", # magic numbers
"S110", # try-except-pass
"G004", # f-strings in logging
"DTZ005", # datetime.now() without tz
]
# Allow specific issues in volume-control scripts
"scripts/volume-control/**/*.py" = [
"T201", # print statements
"PTH110", "PTH123", "PTH103", "PTH107", "PTH118", # pathlib issues
"PLR0911", "PLR0912", "PLR2004", # complexity issues
"TRY003", "TRY300", "TRY301", "TRY302", # try-except issues
"EM101", "EM102", # exception message issues
"F811", "F821", "F841", # pyflakes issues
"ARG002", # unused arguments
"SIM102", "SIM105", "SIM117", # simplify issues
"S603", "S607", "S110", "S112", # security issues
"N814", "N999", # naming issues
"RUF012", # mutable class attributes
"FBT001", "FBT002", # boolean issues
"A002", # argument shadowing
"B904", # exception chaining
"G004", # logging f-strings
"PGH003", # pygrep-hooks
]
# Allow specific issues in template discovery
"templates/discovery/**/*.py" = [
"PTH123", # pathlib issues
"PLR0912", "PLR0913", "PLR0915", "PLR2004", # complexity issues
"S112", "S110", # security issues
"TRY300", # try-except issues
"DTZ005", # datetime issues
"ARG001", "ARG002", "ARG004", # argument issues
"FBT001", "FBT002", # boolean issues
"B019", # lru_cache on methods
"PLW0602", "PLW0603", # global issues
"G004", # logging f-strings
"TRY401", # exception object in logging
"PLW2901", # loop variable overwritten
"PGH003", # pygrep-hooks
"B904", # exception chaining
]
# Allow specific issues in tools
"tools/**/*.py" = [
"T201", # print statements
"PTH123", "PTH110", "PTH103", "PTH107", # pathlib issues
"PLR0912", "PLR0913", "PLR0915", "PLR2004", # complexity issues
"S603", "S607", "S110", "S112", # security issues
"TRY300", "TRY301", "TRY302", # try-except issues
"TD002", "TD003", "FIX002", # TODO issues
"E741", # ambiguous variable names
"FBT001", "FBT002", # boolean issues
"ARG002", # unused arguments
"N999", # invalid module names
"PGH003", # pygrep-hooks
"B007", # unused loop variables
"G004", # logging f-strings
"TRY401", # exception object in logging
]
[tool.ruff.lint.isort]
# Force sort within sections
force-sort-within-sections = true
# Use deterministic sorting
force-wrap-aliases = true
force-single-line = false
lines-after-imports = 2
# Known first party modules
known-first-party = ["codeflow_engine"]
# Known third party modules
known-third-party = [
"aiohttp",
"anthropic",
"click",
"crewai",
"git",
"github",
"httpx",
"jinja2",
"linear",
"mistralai",
"openai",
"pydantic",
"pytest",
"pyyaml",
"structlog",
"websockets",
]
# Import section order (deterministic)
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.flake8-tidy-imports]
# Allow `from ... import ...` style imports.
ban-relative-imports = "all"
[tool.bandit]
# Expanded skips to align with project-safe usages and reduce false positives
skips = [
"B101", "B601", "B603", "B607", "B110", "B112", "B404",
"B105", "B311", "B324", "B608"
]
# Exclude dependency and build directories from scanning
exclude_dirs = [
"tests", "docs", "migrations", ".venv", "venv", "env",
"node_modules", "build", "dist", "site-packages"
]
[tool.pydocstyle]
inherit = false
match = "(?!test_).*\\.py"
match_dir = "[^\\.].*"
ignore = [
"D100", "D101", "D102", "D103", "D104", "D105", "D107",
"D200", "D203", "D212", "D213", "D400", "D401", "D415"
]
[tool.sphinx]
project = "CodeFlow Engine"
copyright = "2025, VeritasVault Team"
author = "VeritasVault Team"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"sphinx.ext.autosummary"
]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
[tool.vulture]
min_confidence = 80
exclude = [
"*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*",
"*/node_modules/*", "*/build/*", "*/dist/*", "*.egg-info/*"
]
[tool.interrogate]
fail-under = 80
exclude = [
"*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*",
"*/node_modules/*", "*/build/*", "*/dist/*", "*.egg-info/*"
]
ignore-init-module = true
ignore-init-method = true
ignore-semiprivate = true
ignore-private = true
ignore-property-decorators = true
ignore-special = true
[tool.radon]
cc_min = "A"
mi_min = "A"
exclude = [
"*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*",
"*/node_modules/*", "*/build/*", "*/dist/*", "*.egg-info/*"
]
[tool.xenon]
max-absolute-A = 10
max-absolute-B = 20
max-absolute-C = 30
max-absolute-D = 40
max-absolute-E = 50
max-absolute-F = 60
exclude = [
"*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*",
"*/node_modules/*", "*/build/*", "*/dist/*", "*.egg-info/*"
]
[tool.semgrep]
configs = [
"p/security-audit", "p/bandit", "p/owasp-top-ten", "p/secrets",
"p/ci", "p/performance", "p/error-prone", "p/best-practices"
]
exclude = [
"*/tests/*", "*/migrations/*", "*/venv/*", "*/__pycache__/*",
"*/node_modules/*", "*/build/*", "*/dist/*", "*.egg-info/*"
]
[tool.setuptools.packages.find]
exclude = ["tests*", "docs*", "examples*"]