Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
274 lines (259 loc) · 8.16 KB
/
Copy pathpyproject.toml
File metadata and controls
274 lines (259 loc) · 8.16 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
[build-system]
requires = ["hatchling==1.27.0"]
build-backend = "hatchling.build"
[project]
name = "tracecat"
description = "The open source AI automation platform for security teams and agents."
readme = "README.md"
requires-python = ">=3.12"
license = "AGPL-3.0"
authors = [{ name = "Tracecat", email = "founders@tracecat.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Topic :: Security",
"Topic :: System :: Systems Administration",
]
dependencies = [
"aioboto3==15.5.0",
"aiocache==0.12.3",
"aiohttp==3.14.5",
"aiosmtplib==5.1.2",
"alembic-postgresql-enum==1.7.0",
"alembic==1.13.2",
"async-lru==2.0.4",
"asyncpg==0.29.0",
"authlib==1.9.1",
"azure-identity==1.25.3",
"cachetools==7.0.6",
"claude-agent-sdk==0.2.160",
"cloudpickle==3.1.1",
"cramjam==2.11.0",
"croniter==6.0.0",
"cryptography==50.0.0",
"dateparser==1.2.2",
"defusedxml==0.7.1",
"email-validator==2.2.0",
"fastapi-users[sqlalchemy,oauth]==15.0.5",
"fido2==2.2.1",
"fastapi[standard]==0.137.1",
"fastmcp==3.4.10",
"google-auth==2.48.0",
"greenlet==3.0.3",
"griffe==2.0.2",
"httpcore==1.0.9",
"httpx==0.28.1",
"jsonpath_ng==1.7.0",
"lark==1.1.9",
"litellm[proxy]==1.101.3",
"loguru==0.7.3",
"markdown-it-py==4.2.0",
"minio==7.2.18",
"opentelemetry-api==1.45.1",
"opentelemetry-exporter-otlp-proto-http==1.45.1",
"opentelemetry-instrumentation-fastapi==0.66b1",
"opentelemetry-sdk==1.45.1",
"orjson==3.11.7",
"paramiko==5.0.0",
"pathspec==1.1.1",
"pgvector==0.4.2",
"polyfile==0.5.6",
"protobuf==6.33.5",
"psycopg[binary]==3.1.19",
"pydantic-extra-types==2.11.0",
"pydantic==2.12.5",
"pygithub==2.8.1",
"pysaml2==7.5.0",
"python-slugify==8.0.4",
"redis[hiredis]==7.1.0",
"regex==2026.9.3",
"sentry-sdk==2.24.1",
"sqlalchemy==2.0.45",
"sse-starlette==3.4.8",
"starlette==1.3.1",
"temporalio==1.32.0",
"tenacity==8.3.0",
"tiktoken==0.14.0",
"tomli==2.2.1",
"tracecat-ee",
"tracecat-registry",
"uv==0.13.4",
"uvicorn==0.35.0",
"uvloop==0.22.1",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://tracecat.com"
Documentation = "https://docs.tracecat.com/"
Repository = "https://github.com/TracecatHQ/tracecat"
[tool.uv.sources]
tracecat = { workspace = true }
tracecat-admin = { workspace = true }
tracecat-registry = { workspace = true }
tracecat-ee = { workspace = true }
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv]
# Supply-chain cooldown: only resolve releases published at least 7 days ago.
exclude-newer = "7 days"
# Keep overrides only for requirements that conflict with our pinned versions.
override-dependencies = [
# LiteLLM requires boto3>=1.43.1,<2.0; aioboto3 pins boto3<1.40.62.
"boto3==1.40.61",
]
# Preserve transitive pins while respecting upstream dependency requirements.
constraint-dependencies = [
"certifi==2026.10.19",
# Chardet 7.x is incompatible with PolyFile 0.5.6 binary detection.
"chardet==6.0.0.post1",
"fickling==0.1.12",
"mako==1.4.2",
"pillow==13.0.0",
"oauthlib==4.0.1",
"pyasn1==0.6.5",
"python-multipart==0.0.31",
"urllib3==2.8.0",
"virtualenv==21.14.13",
]
[dependency-groups]
admin = ["tracecat-admin"]
lint = [
"basedpyright==1.37.1",
"types-aioboto3[sts,s3,secretsmanager,sns]==15.5.0",
"types-boto3[bedrock,sts,s3,secretsmanager]==1.42.25",
]
dev = [
"pre-commit==4.1.0",
"psycopg==3.1.19",
"pytest-benchmark==5.2.3",
"pytest-mock==3.14.0",
"pytest-repeat==0.9.3",
"pytest-xdist==3.8.0",
"pytest==9.0.3",
"python-dotenv==1.2.2",
"respx==0.22.0",
"ruff==0.15.0",
{include-group = "lint"},
]
[tool.hatch.version]
path = "tracecat/__init__.py"
pattern = '^__pep440_version__ = "(?P<version>[^"]+)"'
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
# Ship the package, including non-Python data files such as built-in skill
# SKILL.md / reference markdown so importlib.resources can find them at runtime.
packages = ["tracecat"]
artifacts = [
"tracecat/agent/skill/builtin/**/*.md",
]
[tool.ruff]
line-length = 88
fix = true
# Vendored third-party skill content ships as upstream wrote it.
extend-exclude = ["tracecat/agent/skill/library/skills"]
force-exclude = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by ruff
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
]
[tool.ruff.lint.per-file-ignores]
"tests/temporal/*" = ["E402"] # pytestmark before imports is intentional
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.pytest.ini_options]
# `scripts/` is not a package; put it on the path so the commit-convention
# tests can import scripts/commit_conventions.py and scripts/check_pr_title.py.
pythonpath = ["scripts"]
addopts = [
"--strict-config",
"--strict-markers",
"-vvrP",
"--benchmark-disable",
]
xfail_strict = true
log_level = "ERROR"
log_cli = true
log_cli_level = "ERROR"
filterwarnings = [
"ignore:Pydantic serializer warnings:UserWarning",
# Sync tests inherit autouse async fixtures such as `test_db_engine` in
# tests/conftest.py. pytest 8 never ran them; pytest 9 errors instead.
# Keep the pytest 8 behavior until those fixtures skip sync tests.
"ignore:.*requested an async fixture:pytest.PytestRemovedIn9Warning",
]
markers = [
"anyio: marks tests as requiring the anyio pytest plugin",
"webtest: marks tests that require the web",
"slow: marks tests as slow",
"dbtest: marks tests that make database calls",
"disable_fixture: marks tests that disable fixtures",
"integration: marks tests that perform live network calls and container operations",
"llm: marks tests that perform LLM calls",
"live_secret: marks tests that require real environment-backed third-party secrets",
"ollama: mark tests that require Ollama",
"temporal: marks tests that require Temporal server",
"requires_api: marks tests that require a live Tracecat API endpoint",
"regression: marks regression tests",
]
[tool.basedpyright]
pythonVersion = "3.12"
typeCheckingMode = "standard"
venvPath = "."
venv = ".venv"
include = ["tracecat", "packages", "alembic", "tests"]
exclude = [
"scripts/",
"**/__pycache__",
"**/node_modules",
"tracecat/agent/skill/library/skills/",
]
# `scripts/` stays out of the checked set, but tests/unit/test_commit_conventions.py
# and tests/unit/test_check_pr_title.py import from it, so it has to resolve.
extraPaths = ["scripts"]
# Core type checking - keep enabled for catching real bugs
reportMissingTypeStubs = false # Don't require stubs for all dependencies
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportUnusedFunction = "warning"
reportDuplicateImport = "warning"
# Disable noisy warnings that don't indicate real bugs
reportAny = false
reportExplicitAny = false
reportUnknownArgumentType = false
reportUnknownLambdaType = false
reportUnknownMemberType = false
reportUnknownParameterType = false
reportUnknownVariableType = false
reportMissingParameterType = false
reportUnannotatedClassAttribute = false
reportUnusedCallResult = false
reportUnusedParameter = false
reportImplicitStringConcatenation = false
reportCallInDefaultInitializer = false
reportImplicitOverride = false
reportPrivateUsage = false
reportPrivateLocalImportUsage = false
reportImportCycles = false
reportUnnecessaryComparison = false
reportUnnecessaryIsInstance = false
reportUnnecessaryCast = false
reportDeprecated = false
reportMissingTypeArgument = false