-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
244 lines (230 loc) · 8.31 KB
/
pyproject.toml
File metadata and controls
244 lines (230 loc) · 8.31 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
[project]
name = "robosystems"
version = "1.4.67"
description = "RoboSystems"
requires-python = ">=3.13"
authors = [
{name = "RFS LLC"},
]
license = {text = "Apache-2.0"}
keywords = ["robosystems", "financial", "graph", "knowledge graph", "intelligence"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Typing :: Typed",
]
dependencies = [
# Web Framework & API
"fastapi>=0.135.0,<1.0",
"starlette>=0.52.0,<1.0",
"sse-starlette>=3.3.0,<4.0",
"strawberry-graphql[fastapi]>=0.314.0,<1.0",
"uvicorn>=0.44.0,<1.0",
"uvloop>=0.21.0,<1.0",
# Cloud Service (AWS)
"boto3>=1.42.0,<2.0",
# OLAP Staging/Vector/Graph Databases
"duckdb==1.4.4",
"lancedb>=0.30.0,<1.0",
"real-ladybug==0.13.1",
# OLTP Database (Postgres)
"alembic>=1.18.0,<2.0",
"psycopg2-binary>=2.9.0,<3.0",
"sqlalchemy>=2.0.0,<3.0",
# In-Memory Database (Valkey)
"redis>=7.0.0,<8.0",
# Document Search (OpenSearch)
"opensearch-py>=2.8.0,<3.0",
# Data Orchestration (Dagster)
"dagster>=1.13.1,<2.0",
"dagster-webserver>=1.13.0,<2.0",
"dagster-postgres>=0.29.0,<1.0",
"dagster-aws>=0.29.0,<1.0",
# Data Transformation (dbt)
"dbt-core>=1.11.0,<2.0",
"dbt-duckdb>=1.10.0,<2.0",
# Data Processing & Analytics
"arelle-release==2.39.5",
"fastembed>=0.8.0,<1.0",
"icebug>=12.0,<13.0",
"numpy>=2.4.0,<3.0",
"pandas>=2.3.0,<3.0",
"pyarrow>=23.0.0",
"rdflib>=7.0.0,<8.0",
# External API Integrations
"intuit-oauth>=1.2.0,<2.0",
"python-quickbooks>=0.9.0,<1.0",
"stripe>=11.1.0,<12.0",
# Observability
"opentelemetry-api>=1.41.0,<2.0",
"opentelemetry-exporter-otlp>=1.41.0,<2.0",
"opentelemetry-sdk>=1.41.0,<2.0",
"opentelemetry-instrumentation-aiohttp-client>=0.55b0,<1.0",
"opentelemetry-instrumentation-fastapi>=0.55b0,<1.0",
"opentelemetry-instrumentation-psycopg2>=0.55b0,<1.0",
"opentelemetry-instrumentation-requests>=0.55b0,<1.0",
# Utilities
"aiohttp>=3.12.0",
"bcrypt>=4.3.0,<5.0",
"beautifulsoup4>=4.13.0,<5.0",
"email-validator>=2.2.0,<3.0",
"holidays>=0.76.0,<1.0",
"httptools>=0.6.0,<1.0",
"httpx-sse>=0.4.0",
"httpx>=0.28.0",
"lxml>=5.4.0,<6.0",
"pillow>=12.2.0",
"psutil>=7.2.1,<8.0",
"pydantic[email]>=2.11.0,<3.0",
"pyjwt>=2.10.0,<3.0",
"python-multipart>=0.0.16,<1.0",
"python-ulid>=3.0.0",
"pyyaml>=6.0.0,<7.0",
"requests>=2.32.0,<3.0",
"retrying>=1.4.0,<2.0",
"uuid6>=2025.0.0",
"robosystems-client>=0.3.14",
]
[project.optional-dependencies]
dev = [
# RoboSystems client for demo and testing
"robosystems-client==0.3.17",
# Testing framework
"pytest>=8.4.0,<9.0",
"pytest-asyncio>=1.0.0,<2.0",
"pytest-cov>=6.2.0",
"pytest-env>=1.1.0,<2.0",
"pytest-mock>=3.14.0,<4.0",
# Code quality tools
"ruff>=0.12.0,<1.0",
"basedpyright>=1.22.0,<2.0",
# AWS development tools
"awscli-local>=0.22.0,<1.0",
"cfn-lint>=1.37.0,<2.0",
"moto[s3]>=5.1.6,<6.0",
# Development utilities
"rich>=14.0.0,<15.0"
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
# PEP 735 dependency groups - isolated from main project dependencies
# Use: uv export --only-group lambda --no-hashes --frozen
[dependency-groups]
lambda = [
"boto3>=1.39.0,<2.0", # AWS SDK (all Lambdas)
"psycopg2-binary>=2.9.0,<3.0", # PostgreSQL (postgres-init, postgres-rotation)
"redis>=7.0.0,<8.0", # Valkey/Redis (valkey-rotation)
"urllib3>=2.0.0,<3.0", # HTTP client (graph-volume-monitor)
]
[tool.setuptools]
packages = ["robosystems"]
[tool.setuptools.package-data]
robosystems = ["**/*.py"]
[tool.setuptools.exclude-package-data]
"*" = ["data/*", "notebooks/*", "cloudformation/*"]
[tool.ruff]
exclude = [
".git",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"examples",
"robosystems/adapters/sec/arelle",
]
line-length = 88
indent-width = 2
target-version = "py313"
[tool.ruff.lint]
select = [
"E4", "E7", "E9", "F", # Original: pyflakes, pycodestyle errors
"I", # isort - import sorting
"B", # bugbear - common bugs and design problems
"C4", # flake8-comprehensions - better comprehensions
"UP", # pyupgrade - modern Python syntax
"S", # bandit - security issues
"SIM", # flake8-simplify - code simplification
"RUF", # ruff-specific rules
]
ignore = [
# Security - acceptable patterns for this codebase
"S101", # assert usage (needed for tests)
"S104", # binding to all interfaces (intentional in containers)
"S105", # hardcoded password detection (false positives)
"S106", # hardcoded password in func args (false positives)
"S107", # hardcoded password default (false positives in tests)
"S110", # try-except-pass (often intentional)
"S112", # try-except-continue (intentional in loaders)
"S202", # tarfile.extractall (controlled input - Arelle cache)
"S310", # suspicious URL open (file: scheme intentional for Arelle)
"S311", # pseudo-random generators (acceptable for non-crypto)
"S324", # insecure hash MD5 (used for cache keys, not security)
"S602", # subprocess shell=True (internal admin CLI only)
"S603", # subprocess call (internal tools, not user input)
"S607", # partial executable path (internal tools)
"S608", # hardcoded-sql-expression (Cypher queries, not SQL)
"S108", # hardcoded-temp-file (common in tests)
# Bugbear - patterns acceptable in this codebase
"B007", # unused-loop-control-variable (style)
"B008", # function call in default argument (FastAPI Depends pattern)
"B017", # assert-raises-exception (test pattern)
"B023", # function-uses-loop-variable (usually fine)
"B904", # raise-without-from-inside-except (nice-to-have, not a bug)
# Simplify - style preferences
"SIM102", # collapsible-if (style preference)
"SIM103", # needless-bool (style preference)
"SIM105", # suppressible-exception (style preference)
"SIM108", # if-else-block-instead-of-if-exp (style preference)
"SIM113", # enumerate-for-loop (style preference)
"SIM116", # if-else-block-instead-of-dict (style preference)
"SIM117", # multiple-with-statements (often clearer as separate)
# Ruff-specific - patterns acceptable in this codebase
"RUF001", # ambiguous-unicode-character (intentional in tests)
"RUF006", # asyncio-dangling-task (fire-and-forget pattern)
"RUF012", # mutable-class-default (config classes, immutable in practice)
"RUF034", # useless-if-else (minor)
"RUF059", # unused unpacked variable (common tuple unpacking pattern)
# Pyupgrade - deferred migrations
"UP042", # replace-str-enum (StrEnum migration deferred - __str__ behavior differs)
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.basedpyright]
include = ["robosystems", "main.py"]
exclude = ["**/__pycache__", ".venv", "examples", "robosystems/adapters/sec/arelle", "tests"]
extraPaths = ["."]
pythonVersion = "3.13"
venvPath = "."
venv = ".venv"
typeCheckingMode = "standard"
reportArgumentType = "none"
reportAttributeAccessIssue = "none"
reportGeneralTypeIssues = "none"
reportOptionalMemberAccess = "none"
reportReturnType = "none"
reportCallIssue = "none"
reportMissingImports = "none"