forked from LIF-Initiative/lif-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (154 loc) · 5.71 KB
/
Copy pathpyproject.toml
File metadata and controls
167 lines (154 loc) · 5.71 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
[project]
name = "lif-main"
version = "0.1.0"
description = "Monorepo for LIF Components"
readme = "README.md"
requires-python = ">=3.13,<3.14"
dependencies = [
"boto3~=1.43",
"dagster~=1.11",
"dagster-graphql~=1.11",
"deepdiff~=8.6",
"fastapi~=0.115",
"fastmcp~=2.9",
"httpx~=0.28",
"jsonata-python~=0.6",
"jsonpath-ng~=1.7",
"jsonref~=1.1",
"jsonschema~=4.25",
"langchain~=0.3",
"langchain-mcp-adapters>=0.1.14,<0.2.0",
"langchain-openai~=0.3",
"langgraph~=0.4",
"langgraph-prebuilt~=0.2",
"langmem~=0.0",
"mcp>=1.10,<2.0",
"mcp-graphql~=0.3",
"mkdocs-material~=9.6",
"numpy~=2.3",
"pandas~=2.2",
"pydantic~=2.11",
"pyjwt[crypto]~=2.10",
"pymongo~=4.13",
"pymysql~=1.1",
"pyyaml~=6.0",
"sentence-transformers~=4.1",
"sqlalchemy~=2.0",
"sqlmodel~=0.0",
"strawberry-graphql[asgi]~=0.275.0",
"testing-postgresql>=1.3.0",
"uvicorn~=0.34",
]
[dependency-groups]
dev = [
"asyncpg~=0.30",
"dagster-cloud~=1.11",
"dagster-dg-cli~=1.11",
"dagster-webserver~=1.11",
"greenlet~=3.2",
"mysql-connector-python~=8.3",
"passlib[bcrypt]~=1.7",
"polylith-cli~=1.30",
"pre-commit~=4.2",
"psycopg2-binary~=2.9",
"pytest~=8.4",
"pytest-asyncio~=1.1",
"ruff~=0.11",
"strawberry-graphql[debug-server]~=0.275.0",
"testcontainers[postgres]~=4.13",
"ty~=0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
dev-mode-dirs = ["components", "bases", "development", "."]
[tool.uv]
dev-dependencies = ["polylith-cli"]
[tool.pytest.ini_options]
testpaths = ["test"]
asyncio_mode = "auto"
[tool.polylith.bricks]
"bases/lif/query_cache_module" = "lif/query_cache_module"
"bases/lif/query_cache_restapi" = "lif/query_cache_restapi"
"bases/lif/query_planner_restapi" = "lif/query_planner_restapi"
"components/lif/datatypes" = "lif/datatypes"
"components/lif/mongodb_connection" = "lif/mongodb_connection"
"components/lif/query_cache_read" = "lif/query_cache_read"
"components/lif/query_cache_read_store_mongodb" = "lif/query_cache_read_store_mongodb"
"components/lif/query_cache_read_store_in_memory" = "lif/query_cache_read_store_in_memory"
"components/lif/query_cache_service" = "lif/query_cache_service"
"components/lif/query_planner_service" = "lif/query_planner_service"
"components/lif/logging" = "lif/logging"
"bases/lif/api_graphql" = "lif/api_graphql"
"components/lif/openapi_to_graphql" = "lif/openapi_to_graphql"
"components/lif/string_utils" = "lif/string_utils"
"components/lif/mdr_client" = "lif/mdr_client"
"components/lif/mdr_services" = "lif/mdr_services"
"bases/lif/semantic_search_mcp_server" = "lif/semantic_search_mcp_server"
"components/lif/semantic_search_service" = "lif/semantic_search_service"
"components/lif/openapi_schema_parser" = "lif/openapi_schema_parser"
"bases/lif/advisor_restapi" = "lif/advisor_restapi"
"components/lif/langchain_agent" = "lif/langchain_agent"
"components/lif/auth" = "lif/auth"
"components/lif/advisor_service" = "lif/advisor_service"
"components/lif/exceptions" = "lif/exceptions"
"components/lif/composer" = "lif/composer"
"bases/lif/orchestrator_restapi" = "lif/orchestrator_restapi"
"components/lif/orchestrator_service" = "lif/orchestrator_service"
"components/lif/orchestrator_query_plan_parser" = "lif/orchestrator_query_plan_parser"
"components/lif/orchestrator_clients" = "lif/orchestrator_clients"
"bases/lif/identity_mapper_restapi" = "lif/identity_mapper_restapi"
"components/lif/identity_mapper_service" = "lif/identity_mapper_service"
"components/lif/identity_mapper_storage" = "lif/identity_mapper_storage"
"components/lif/identity_mapper_storage_sql" = "lif/identity_mapper_storage_sql"
"components/lif/data_source_adapters" = "lif/data_source_adapters"
"bases/lif/example_data_source_rest_api" = "lif/example_data_source_rest_api"
"bases/lif/mdr_restapi" = "lif/mdr_restapi"
"bases/lif/translator_restapi" = "lif/translator_restapi"
"components/lif/mdr_auth" = "lif/mdr_auth"
"components/lif/example_data_source_service" = "lif/example_data_source_service"
"components/lif/translator" = "lif/translator"
"components/lif/mdr_utils" = "lif/mdr_utils"
"components/lif/mdr_dto" = "lif/mdr_dto"
"components/lif/query_planner_client" = "lif/query_planner_client"
"components/lif/translator_client" = "lif/translator_client"
"components/lif/demo_personas" = "lif/demo_personas"
"components/lif/cognito_auth" = "lif/cognito_auth"
[tool.ruff]
line-length = 120
required-version = "~=0.11.13"
[tool.ruff.format]
docstring-code-format = true
# use '\n' line endings for all files (*nix/mac default)
line-ending = "lf"
skip-magic-trailing-comma = true
[tool.ruff.lint]
ignore = [
"E711",
"E712",
"F811",
"F841", # Eventually should be removed and the code cleaned up
"TD002",
"TD003"
]
[tool.ty.src]
# Entries here are temporary debt, not policy: each production path left in this list
# must have an owning issue, and the list should only ever shrink. See #1137.
exclude = [
"scripts/",
"test/",
"integration_tests/",
"development/",
# Remaining production debt: ~660 diagnostics, tracked by #1137 (sequence against #1132,
# which rewrites much of this brick's storage layer). Do not add to this list.
"components/lif/mdr_services/"
]
# `type_factory` builds Strawberry GraphQL types at runtime from OpenAPI schemas, so
# `List[some_runtime_variable]` is the module's entire purpose rather than a mistake. A static
# checker cannot validate that pattern, and 17 inline suppressions would only add noise. Scoped to
# this one rule in this one file; everything else in the file is still checked.
[[tool.ty.overrides]]
include = ["components/lif/openapi_to_graphql/type_factory.py"]
[tool.ty.overrides.rules]
invalid-type-form = "ignore"