Skip to content

Commit 63d9a7b

Browse files
style: auto-format code with ruff [skip ci]
1 parent f7b2b01 commit 63d9a7b

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/orb/infrastructure/storage/components/sql_query_builder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ def build_query(self, query_spec: dict[str, Any]) -> str:
7373
return sql
7474
raise ValueError(f"Unknown query type: {query_type}")
7575

76-
def execute_query(
77-
self, query: str, parameters: Optional[dict[str, Any]] = None
78-
) -> Any:
76+
def execute_query(self, query: str, parameters: Optional[dict[str, Any]] = None) -> Any:
7977
"""
8078
Reject direct execution — execution belongs to SQLConnectionManager.
8179

src/orb/infrastructure/storage/sql/registration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ def create_sql_unit_of_work(config: Any) -> Any:
118118
echo=getattr(sql_config, "echo", False),
119119
)
120120

121-
return SQLUnitOfWork(engine)
121+
return SQLUnitOfWork(engine)
122122
else:
123123
# For testing or other scenarios - assume it's a dict with connection info
124124
connection_string = config.get("connection_string", "sqlite:///data/test.db")
125125
engine = create_engine(connection_string)
126-
return SQLUnitOfWork(engine)
126+
return SQLUnitOfWork(engine)
127127

128128

129129
def register_sql_storage() -> None:

tests/integration/storage/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def dynamodb_strategy() -> Iterator:
7878

7979

8080
@pytest.fixture(params=["json", "sql", "dynamodb"])
81-
def storage_strategy(
82-
request, json_strategy, sql_strategy, dynamodb_strategy
83-
):
81+
def storage_strategy(request, json_strategy, sql_strategy, dynamodb_strategy):
8482
"""Parameterised strategy fixture used by contract tests."""
8583
return {
8684
"json": json_strategy,

0 commit comments

Comments
 (0)