Skip to content

Commit 254e3f3

Browse files
thrcleclaude
andcommitted
style: black 포맷팅 적용
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5b209c2 commit 254e3f3

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

‎src/lang2sql/tools/semantic_federation.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ async def run(self, args: dict[str, Any], ctx: "HarnessContext") -> ToolResult:
257257
if err:
258258
return ToolResult(call_id="", content=err, is_error=True)
259259

260-
entity = (
261-
"" if layer == "org" else (user_id if layer == "user" else channel_id)
262-
)
260+
entity = "" if layer == "org" else (user_id if layer == "user" else channel_id)
263261
key = _kv_key(term, layer, entity)
264262

265263
definition = str(args.get("definition", "")).strip()

‎tests/test_confirm_ingest.py‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ def test_confirm_channel_layer_uses_channel_entity() -> None:
174174
_seed_pending(store, scope, "defs.md", [_SAMPLE[0]])
175175

176176
asyncio.run(
177-
ConfirmIngest().run(
178-
{"ref": "defs.md", "accept": "all", "layer": "team"}, ctx
179-
)
177+
ConfirmIngest().run({"ref": "defs.md", "accept": "all", "layer": "team"}, ctx)
180178
)
181179

182180
ch_id = ctx.identity.effective_channel_id
@@ -196,9 +194,7 @@ def test_confirm_member_layer_uses_user_id() -> None:
196194
ConfirmIngest().run({"ref": "defs.md", "accept": "all", "layer": "user"}, ctx)
197195
)
198196

199-
raw = store.kv_get(
200-
scope, _kv_key("monthly_revenue", "user", ctx.identity.user_id)
201-
)
197+
raw = store.kv_get(scope, _kv_key("monthly_revenue", "user", ctx.identity.user_id))
202198
assert raw is not None
203199

204200

@@ -235,9 +231,7 @@ def test_confirm_channel_layer_blocked_without_channel_id() -> None:
235231
_seed_pending(store, scope, "defs.md", [_SAMPLE[0]])
236232

237233
result = asyncio.run(
238-
ConfirmIngest().run(
239-
{"ref": "defs.md", "accept": "all", "layer": "team"}, ctx
240-
)
234+
ConfirmIngest().run({"ref": "defs.md", "accept": "all", "layer": "team"}, ctx)
241235
)
242236
assert result.is_error
243237
assert "team" in result.content
@@ -250,7 +244,9 @@ def test_confirm_invalid_layer_returns_error() -> None:
250244
_seed_pending(store, scope, "defs.md", [_SAMPLE[0]])
251245

252246
result = asyncio.run(
253-
ConfirmIngest().run({"ref": "defs.md", "accept": "all", "layer": "department"}, ctx)
247+
ConfirmIngest().run(
248+
{"ref": "defs.md", "accept": "all", "layer": "department"}, ctx
249+
)
254250
)
255251
assert result.is_error
256252
assert "layer" in result.content

0 commit comments

Comments
 (0)