-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (192 loc) · 6.2 KB
/
pyproject.toml
File metadata and controls
206 lines (192 loc) · 6.2 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
[project]
name = "codeoptix"
version = "0.1.3"
description = "Agentic Code Optimization & Deep Evaluation for Superior Coding Agent Experience. Built by Superagentic AI."
readme = "README.md"
requires-python = ">=3.12"
authors = [
{name = "Shashi Jagtap", email = "shashi@super-agentic.ai"},
{name = "Shashi Jagtap", email = "shashikant.jagtap@icloud.com"}
]
maintainers = [
{name = "Shashi Jagtap", email = "team@super-agentic.ai"},
{name = "Shashi Jagtap", email = "shashikant.jagtap@icloud.com"}
]
license = {text = "Apache-2.0"}
keywords = ["ai", "coding-agents", "behavioral-optimization", "code-evaluation", "agent-experience", "deep-evaluation", "agentic-coding"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Operating System :: OS Independent",
"Framework :: Pydantic",
]
dependencies = [
"pydantic>=2.0.0",
"pyyaml>=6.0",
"click>=8.0.0",
"anthropic>=0.75.0",
"openai>=2.0.0",
"google-genai>=0.8.0",
"numpy>=1.24.0",
"litellm>=1.80.0",
"tenacity>=8.0.0",
"gepa==0.0.22",
"agent-client-protocol>=0.7.0",
]
[project.urls]
Homepage = "https://github.com/SuperagenticAI/codeoptix"
Documentation = "https://superagenticai.github.io/codeoptix"
Repository = "https://github.com/SuperagenticAI/codeoptix"
Issues = "https://github.com/SuperagenticAI/codeoptix/issues"
Changelog = "https://github.com/SuperagenticAI/codeoptix/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"coverage>=7.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
]
testing = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"coverage>=7.0.0",
"bandit>=1.7.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.4.0",
"pymdown-extensions>=10.0.0",
"mkdocs-minify-plugin>=0.7.0",
]
all = [
"codeoptix[dev,testing,docs]",
]
accessibility = [
# Note: pa11y is a Node.js tool, not a Python package
# Install separately: npm install -g pa11y
]
[project.scripts]
codeoptix = "codeoptix.cli:main"
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = [
".git",
"__pycache__",
".venv",
"venv",
".eggs",
"*.egg",
"build",
"dist",
"site",
"src/codeoptix/vendor/",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"EM", # flake8-errmsg
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"E741", # ambiguous variable name (l, O, I)
"ARG002", # unused method argument (intentional in base classes)
"B007", # loop variable not used (intentional in some cases)
"B904", # raise from err (too noisy)
"C416", # unnecessary dict comprehension
"DTZ", # datetime timezone (not critical for this project)
"EM101", # exception message string literal
"EM102", # exception message f-string
"PLC0415", # import should be at top level (too many existing violations)
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR2004", # magic value used in comparison
"PLW2901", # loop variable overwritten
"PTH", # prefer pathlib (too invasive for existing codebase)
"RET503", # missing explicit return
"RET504", # unnecessary assignment before return
"RSE102", # unnecessary parentheses on raise
"RUF001", # ambiguous unicode (intentional for emojis)
"RUF012", # mutable class attributes
"RUF015", # prefer next() over [0]
"SIM101", # merge isinstance calls
"SIM102", # collapsible if statements
"SIM105", # use contextlib.suppress
"SIM108", # use ternary operator
"TRY003", # avoid specifying long messages outside exception class
"TRY300", # consider returning in try block
"TRY400", # use logging.exception instead of error
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"F841", # unused variable (common in tests)
"PT011", # pytest.raises too broad
"RUF013", # implicit Optional
]
"examples/**/*.py" = [
"ERA001", # commented-out code (intentional in examples)
"F841", # unused variable (common in examples)
"E722", # bare except (simplified for examples)
"I001", # unsorted imports (allowed in examples)
"F401", # unused imports (may be for demonstration)
]
[tool.ruff.lint.isort]
known-first-party = ["codeoptix"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.bandit]
exclude_dirs = ["tests", "examples", "docs", "scripts", "reference_code", "site"]
skips = ["B101"] # Skip assert_used test (tests use assert)