Skip to content

Commit 47080e6

Browse files
committed
style: Format code with ruff and fix linting issues
- Applied ruff formatting to all example files - Fixed unused variable warning (prefixed with underscore) - Fixed sys.exit() usage instead of exit() - All ruff checks now pass
1 parent eaf8a71 commit 47080e6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

examples/03_fassets_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def demonstrate_minting_workflow(fassets: FAssets) -> None:
141141
)
142142
minted_amount = await fassets.execute_minting(
143143
FAssetType.FXRP,
144-
int(reservation_id.get('reservation_id', 0)),
144+
int(reservation_id.get("reservation_id", 0)),
145145
payment_reference,
146146
executor,
147147
)
@@ -169,7 +169,7 @@ async def perform_redemption_operations(fassets: FAssets) -> None:
169169
print(f"Redemption Request ID: {redemption_id}")
170170

171171
# Get redemption request details
172-
request_id = int(redemption_id.get('request_id', 0))
172+
request_id = int(redemption_id.get("request_id", 0))
173173
if request_id > 0:
174174
redemption_details: dict[str, Any] = await fassets.get_redemption_request(
175175
FAssetType.FXRP, request_id

examples/06_turnkey_wallet_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def main() -> None:
330330
wallet = await setup_turnkey_wallet()
331331

332332
# 2. Create demo wallet
333-
wallet_id, wallet_address = await create_demo_wallet(wallet)
333+
wallet_id, _wallet_address = await create_demo_wallet(wallet)
334334

335335
# 3. Set up TEE security manager
336336
tee_manager = TEESecurityManager()

examples/07_rag_vector_demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from pathlib import Path
23

34
from qdrant_client import QdrantClient
@@ -43,8 +44,8 @@
4344
print("❌ GEMINI_API_KEY environment variable not set.")
4445
print("Please set the GEMINI_API_KEY environment variable to run this demo.")
4546
print("Example: export GEMINI_API_KEY='your_api_key_here'")
46-
exit(1)
47-
47+
sys.exit(1)
48+
4849
embedding_model = GeminiEmbedding(
4950
api_key=agent.gemini_api_key.get_secret_value(),
5051
model=vector_db.embeddings_model,

0 commit comments

Comments
 (0)