-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (156 loc) · 6.48 KB
/
pyproject.toml
File metadata and controls
173 lines (156 loc) · 6.48 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
# Copyright © 2025 Novatrax Labs LLC. All Rights Reserved.
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "code-factory"
version = "1.0.0"
description = "Unified Code Factory Platform - AI-driven ecosystem for automated software development and maintenance"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Proprietary"}
authors = [
{name = "Novatrax Labs", email = "support@novatraxlabs.com"}
]
keywords = ["ai", "code-generation", "self-healing", "automation", "devops"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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 :: Code Generators",
"Topic :: Software Development :: Quality Assurance",
]
# Note: This is a unified platform consisting of three integrated modules:
# - generator: README-to-App Code Generator (RCG)
# - omnicore_engine: OmniCore Omega Pro Engine
# - self_fixing_engineer: Self-Fixing Engineer (SFE) powered by Arbiter AI
# All modules share a single unified requirements.txt
[tool.setuptools]
packages = ["generator", "omnicore_engine", "self_fixing_engineer", "server", "shared", "shared.security", "shared.stubs"]
[tool.pytest.ini_options]
minversion = "7.4"
pythonpath = ["."]
# Explicit test paths - pytest will only scan these directories
# This prevents automatic scanning of the entire repository during collection
testpaths = [
"tests",
"generator/tests",
"omnicore_engine/tests",
"self_fixing_engineer/tests",
"server/tests",
]
# Optimized addopts for fast test collection and execution
# NOTE: Does NOT include marker filtering - use -m flag explicitly
# Examples:
# pytest -m "not (heavy or slow)" # Skip heavy/slow tests (fast local dev)
# pytest -m "not heavy" # Skip only heavy tests (used in CI)
# pytest # Run all tests (full suite)
addopts = [
"-ra", # Show extra test summary info
"-q", # Quiet mode
"--tb=short", # Short traceback format
"-p no:randomly", # Disable pytest-randomly plugin
"-p no:cacheprovider", # Disable cache for faster collection
"--import-mode=importlib", # Use importlib for imports
"--maxfail=100", # Stop after 100 failures
]
python_files = ["test_*.py"]
# Async test configuration
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
# Timeout configuration - prevent individual tests from hanging
# Increased from 30s to 300s to accommodate arbiter simulation tests
# which can take 60+ seconds. Consider investigating and optimizing
# slow tests if timeouts become an issue.
timeout = 300
timeout_method = "signal"
timeout_func_only = true
# Directories to ignore during collection
norecursedirs = ".* _* build dist venv env node_modules __pycache__"
# Custom markers for test categorization
markers = [
"unit: marks tests as unit tests (fast, no external dependencies)",
"integration: marks tests as integration tests (requires external services)",
"external: marks tests that call external LLM/API providers (OpenAI, Anthropic, Gemini, Ollama)",
"slow: marks tests as slow (execution time > 5 seconds)",
"heavy: marks tests requiring heavy dependencies (numpy, pandas, torch, transformers)",
"requires_redis: marks tests that require Redis connection",
"requires_db: marks tests that require database connection",
"forked: marks tests that should run in isolated forked process",
"flaky: marks tests as flaky (may need retries)",
"serial: marks tests to run serially without xdist parallelization",
]
# NOTE: Environment variables for tests are set in the CI workflow (.github/workflows/pytest-all.yml)
# The 'env' configuration option requires pytest-env plugin which is not installed.
# Required env vars for tests: TESTING=1, CI=1, SKIP_AUDIT_INIT=1, SKIP_BACKGROUND_TASKS=1,
# NO_MONITORING=1, DISABLE_TELEMETRY=1, OTEL_SDK_DISABLED=1
# Filter warnings from various modules
filterwarnings = [
# Pydantic V1 -> V2 Deprecation Warnings (from omnicore_engine)
"ignore:.*PydanticDeprecatedSince20.*:DeprecationWarning",
"ignore:Pydantic V1 style `@validator` validators are deprecated:DeprecationWarning",
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
# SQLAlchemy warnings (from omnicore_engine)
"ignore:The ``declarative_base\\(\\)`` function is now available as sqlalchemy\\.orm\\.declarative_base\\(\\).:DeprecationWarning",
# OpenTelemetry warnings (from self_fixing_engineer)
"ignore:Overriding of current TracerProvider is not allowed:UserWarning",
"ignore:.*OpenTelemetry.*:UserWarning",
"ignore:Transient error StatusCode.UNAVAILABLE:UserWarning",
# Prometheus warnings (from self_fixing_engineer)
"ignore:.*duplicated timeseries.*:UserWarning",
"ignore:prometheus_client version.*:UserWarning",
"ignore:Duplicated timeseries in CollectorRegistry.*:UserWarning",
# Package warnings (from self_fixing_engineer)
"ignore:pkg_resources is deprecated:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning",
# LangChain warnings (from self_fixing_engineer)
"ignore:Field \"model_name\" in .*:UserWarning",
# General deprecation warnings
"ignore::DeprecationWarning",
]
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
include = '.pyi?$'
exclude = '''
/(
.git
| .hg
| .mypy_cache
| .tox
| .venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [".git", "__pycache__", "build", "dist", ".venv"]
[tool.ruff.lint]
extend-ignore = [
"E402", # module level import not at top
"E712", # comparison to True/False
"E721", # type comparison - use isinstance() instead
"E741", # ambiguous variable name
"F401", # unused import
"F403", # undefined local with import star
"F405", # may be undefined from star imports
"F811", # redefinition of unused variable
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true