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:
@@ -17,7 +17,7 @@ jobs:
|
||||
python-check:
|
||||
name: Python Syntax Check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -59,12 +59,12 @@ jobs:
|
||||
python -c "
|
||||
import sys
|
||||
sys.path.insert(0, '.')
|
||||
|
||||
|
||||
# Import key modules to verify they are loadable
|
||||
from app import create_app
|
||||
from app.config import settings
|
||||
from app.routes import health
|
||||
|
||||
|
||||
print('✓ Core modules imported successfully')
|
||||
print('✓ No critical import errors detected')
|
||||
"
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
frontend-check:
|
||||
name: Frontend Build Check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user