-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathpyproject.toml
More file actions
220 lines (206 loc) · 6.12 KB
/
pyproject.toml
File metadata and controls
220 lines (206 loc) · 6.12 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
[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 = [
"aiocache==0.12.3",
"aiohttp==3.13.3",
"alembic-postgresql-enum==1.7.0",
"alembic==1.13.2",
"async-lru==2.0.4",
"asyncpg==0.29.0",
"authlib==1.6.9",
"claude-agent-sdk==0.1.51",
"cloudpickle==3.1.1",
"cramjam==2.11.0",
"croniter==6.0.0",
"cryptography==46.0.5",
"dateparser==1.2.2",
"defusedxml==0.7.1",
"email-validator==2.2.0",
"fastapi-users[sqlalchemy,oauth]==15.0.2",
"fastapi[standard]==0.120.3",
"fastmcp==3.0.0",
"google-auth==2.48.0",
"greenlet==3.0.3",
"httpx==0.28.1",
"jsonpath_ng==1.7.0",
"lark==1.1.9",
"loguru==0.7.3",
"minio==7.2.18",
"orjson==3.11.7",
"paramiko==3.5.0",
"polyfile==0.5.6",
"protobuf==6.33.5",
"psycopg[binary]==3.1.19",
"pydantic-ai-slim[anthropic,bedrock,google,mcp,openai]==1.62.0",
"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",
"sentry-sdk==2.24.1",
"sqlalchemy==2.0.45",
"starlette==0.49.3",
"temporalio==1.19.0",
"tenacity==8.3.0",
"tomli==2.2.1",
"tracecat-ee",
"tracecat-registry",
"uv==0.9.15",
"uvicorn==0.35.0",
"uvloop==0.21.0",
]
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]
# Override dependency pins to resolve conflicts between packages:
# - chardet 7.0 removed chardet.universaldetector, breaking polyfile 0.5.6
override-dependencies = [
"pyasn1==0.6.3",
"requests==2.33.0",
"uvicorn==0.35.0",
"boto3==1.40.61",
"python-multipart==0.0.22",
"rich==13.9.4",
"grpcio==1.75.1",
"grpcio-tools==1.75.1",
"pillow==12.1.1",
"PyJWT==2.12.1",
"chardet<7",
"fickling==0.1.10",
]
[dependency-groups]
admin = ["tracecat-admin"]
lint = [
"basedpyright==1.37.1",
"types-aioboto3[sts,s3]==15.5.0",
"types-boto3[sts,s3]==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==8.3.2",
"python-dotenv==1.1.1",
"respx==0.22.0",
"ruff==0.15.0",
{include-group = "lint"},
]
[tool.hatch.version]
path = "tracecat/__init__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
line-length = 88
fix = 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]
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"]
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",
"regression: marks regression tests",
]
[tool.basedpyright]
pythonVersion = "3.12"
typeCheckingMode = "standard"
include = ["tracecat", "packages", "alembic", "tests"]
exclude = ["scripts/", "**/__pycache__", "**/node_modules"]
# 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