-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
243 lines (231 loc) · 6.09 KB
/
pyproject.toml
File metadata and controls
243 lines (231 loc) · 6.09 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
[build-system]
requires = ["setuptools>=82.0.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "teaagent"
version = "0.1.0"
description = "Governance-first agent harness for autonomous coding tasks."
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
keywords = ["agent", "governance", "mcp", "audit", "llm"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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 :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"bandit>=1.9.4",
]
[tool.setuptools.packages.find]
include = ["teaagent*"]
[tool.setuptools.package-data]
teaagent = ["py.typed"]
[project.optional-dependencies]
config = [
"tomli>=2.0.1; python_version < '3.11'",
]
file-watching = [
"watchdog>=3.0.0",
]
tui = [
"prompt-toolkit>=3.0.0",
]
code-analysis = [
"tree-sitter>=0.25.0",
"tree-sitter-language-pack>=1.0.0",
]
graphqlite = [
"graphqlite>=0.6.0",
"pysqlite3>=0.6.0",
]
playwright = [
"playwright>=1.40",
]
crypto = [
"cryptography>=48.0.0",
]
oauth = [
"teaagent[crypto]",
]
audit-encryption = [
"teaagent[crypto]",
]
managed-google-adk = [
"google-adk>=2.0.0",
]
managed-vertex = [
"google-cloud-aiplatform>=1.156.0",
]
telemetry = [
"opentelemetry-api>=1.20",
"opentelemetry-sdk>=1.20",
"opentelemetry-exporter-otlp-proto-http>=1.41.1",
]
anthropic = [
"anthropic>=0.40.0",
]
yaml = [
"pyyaml>=6.0",
]
wasm = [
"wasmer>=1.0.0",
]
release = [
"build>=1",
"twine>=5",
]
security = [
"pip-audit>=2",
]
sigstore = [
"sigstore>=4.3.0",
]
github = [
"PyGithub>=2.0.0",
]
dev = [
"graphqlite>=0.6.0",
"pysqlite3>=0.6.0",
"teaagent[crypto]",
"watchdog>=3.0.0",
"prompt-toolkit>=3.0.0",
"playwright>=1.40",
"sigstore>=4.3.0",
"PyGithub>=2.0.0",
"wasmer>=1.0.0",
"pre-commit>=3",
"pytest>=7",
"pytest-cov>=4",
"pytest-random-order>=1.2.0",
"pytest-xdist>=3.5",
"pytest-benchmark>=4.0",
"hypothesis>=6.100",
"ruff>=0.15.16",
"mypy>=1,<3",
"pdoc>=14",
"tomli>=2.0.1; python_version < '3.11'",
"tree-sitter>=0.25.0",
"tree-sitter-language-pack>=1.0.0",
"opentelemetry-api>=1.20",
"opentelemetry-sdk>=1.20",
"opentelemetry-exporter-otlp-proto-http>=1.41.1",
"google-adk>=2.0.0",
"google-cloud-aiplatform>=1.156.0",
"bandit>=1.7",
]
[project.scripts]
teaagent = "teaagent.cli:main"
[tool.uv]
constraint-dependencies = [
"jaraco-context>=6.1.0",
]
override-dependencies = [
"tuf>=7.0.0,<8",
# Pin alpha OpenTelemetry GCP packages to stable versions for production
"opentelemetry-exporter-gcp-logging>=1.12.0,<2.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = [".", "tests"]
addopts = "-p no:cacheprovider"
markers = [
"integration: real entry-point behavioral tests (run with -m integration)",
"smoke: fast PR-gate unit/regression tests (run with scripts/run_test_tier.py --tier smoke)",
"acceptance: user-facing workflow tests under tests/acceptance/",
"nightly: slow, integration, mutation, or full-suite tests (run with --tier nightly)",
"slow: long-running test excluded from smoke tier",
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
exclude = ["examples/", "scripts/", "benchmarks/"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
# Suppress test-noise error codes; keep attr-defined, misc, name-defined etc. as signal
disable_error_code = [
"arg-type",
"union-attr",
"var-annotated",
"index",
"return-value",
"func-returns-value",
"str-bytes-safe",
"list-item",
"dict-item",
"operator",
"method-assign",
"override",
"call-overload",
"misc",
"assignment",
]
[tool.bandit]
exclude_dirs = [
"tests/",
"examples/",
"scripts/",
"benchmarks/",
".git/",
".venv/",
".teaagent/",
"build/",
"dist/",
"docs/",
]
skips = [
"B101", # assert statements are used intentionally in non-production paths
"B102", # exec used - sandboxed execution in child process
"B104", # bind all interfaces validation check
"B105", # hardcoded password string - triggers on env vars with 'secret' or 'token' in name
"B106", # hardcoded password funcarg
"B110", # try_except_pass
"B112", # try_except_continue
"B310", # urllib urlopen - safe/validated URL openings
"B404", # subprocess import - reviewed for safety in workspace tools
"B603", # subprocess_without_shell - false positive for inspect-only calls
"B607", # subprocess_with_partial_path - partial path is intended
"B608", # hardcoded sql expressions - triggers on string-formatted sqlite migration tables
]
targets = ["."]
[tool.coverage.run]
source = ["teaagent"]
# Per-test context reduces memory pressure from coverage tracking
# across 5000+ tests under pydantic-core instrumentation.
context = "test"
omit = [
"teaagent/tui/*",
"teaagent/tournament/*",
"teaagent/validation/*",
"teaagent/workflow_engine.py",
"teaagent/vote_relay.py",
"teaagent/tls_server.py",
"teaagent/webhook_sink.py",
"teaagent/wasm_runtime.py",
"teaagent/wasm_skill.py",
"teaagent/tsb_format.py",
"teaagent/workspace_tools/builder.py",
"teaagent/workspace_tools/_git.py",
"teaagent/workspace_tools/_config.py",
"teaagent/browser_tools.py",
"teaagent/cli/_handlers/_cost.py",
"teaagent/cli/_handlers/_control_plane.py",
]
[tool.ruff]
extend-exclude = [".git", ".teaagent", "__pycache__", ".pytest_cache", ".venv", "build", "dist"]