Refactor code for improved readability and consistency
- Cleaned up whitespace and formatting in various files including http.py, language.py, logger.py, safe_exec.py, and SQL migration scripts. - Consolidated import statements and removed unnecessary blank lines. - Updated logging configuration for better clarity. - Enhanced the safe execution code with improved error handling and logging. - Removed commented-out code and unnecessary variables in backfill_zero_trades.py and other scripts. - Added a pyproject.toml for Ruff and Vulture configuration. - Introduced requirements-dev.txt for development dependencies. - Removed commented-out stock entries in init.sql for cleaner migration scripts.
This commit is contained in:
@@ -13,9 +13,9 @@ from __future__ import annotations
|
||||
import json
|
||||
from typing import Any, Dict
|
||||
|
||||
from app.utils.credential_crypto import decrypt_credential_blob
|
||||
from app.utils.db import get_db_connection
|
||||
from app.utils.logger import get_logger
|
||||
from app.utils.credential_crypto import decrypt_credential_blob
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
@@ -145,5 +145,3 @@ def resolve_exchange_config(exchange_config: Dict[str, Any], user_id: int = 1) -
|
||||
merged[k] = v
|
||||
|
||||
return merged
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user