Skip to content

Commit 9922c41

Browse files
committed
Keep the consolidated branch aligned with repository Black
Format the two files identified by the repository-pinned Black 26.1.0 hook so CI evaluates behavior instead of a formatter diff. Constraint: Preserve the already-reviewed ContextFlow integration without behavioral edits Rejected: Weaken or exclude the repository-wide Black hook | it is an existing project gate Confidence: high Scope-risk: narrow Directive: Run the pinned Black hook, not only Ruff format, before future pushes Tested: Black 26.1.0 check across 136 files; 3 targeted semantic enrichment tests Not-tested: Full suite was unchanged since the prior 357-test verifier run
1 parent 67bc120 commit 9922c41

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/lang2sql/tenancy/concierge.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,12 @@ async def build_context(
359359
semantic_attention_state=(
360360
"candidate_schema_too_large"
361361
if semantic_query is not None and semantic_query.schema_blocker
362-
else attention.state
363-
if attention
364-
else ""
362+
else attention.state if attention else ""
365363
),
366364
semantic_attention_message=(
367365
semantic_query.schema_blocker
368366
if semantic_query is not None and semantic_query.schema_blocker
369-
else attention.message
370-
if attention
371-
else ""
367+
else attention.message if attention else ""
372368
),
373369
semantic_table_ids=attention.table_ids if attention else (),
374370
semantic_query=semantic_query,

tests/test_semantic_disclosure_gate.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,11 @@ async def describe_table(self, name):
375375
# TEST_ONLY_SYNTHETIC_METADATA: exercises the real DB-comment path
376376
# without treating a fabricated description as product truth.
377377
columns = [
378-
replace(column, description="Gross billed amount.")
379-
if column.name == "value"
380-
else column
378+
(
379+
replace(column, description="Gross billed amount.")
380+
if column.name == "value"
381+
else column
382+
)
381383
for column in table.columns
382384
]
383385
return replace(table, columns=columns)

0 commit comments

Comments
 (0)