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:
dienakdz
2026-04-09 14:30:51 +07:00
parent 103055b3df
commit 87f2845483
157 changed files with 19026 additions and 17773 deletions
+19 -19
View File
@@ -84,25 +84,25 @@ services:
# ========================
# Frontend (Nginx serving prebuilt dist)
# ========================
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
args:
RUNTIME_IMAGE: ${IMAGE_PREFIX:-}nginx:1.25-alpine
container_name: quantdinger-frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-8888}:80"
depends_on:
- backend
networks:
- quantdinger-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
# frontend:
# build:
# context: .
# dockerfile: frontend/Dockerfile
# args:
# RUNTIME_IMAGE: ${IMAGE_PREFIX:-}nginx:1.25-alpine
# container_name: quantdinger-frontend
# restart: unless-stopped
# ports:
# - "${FRONTEND_PORT:-8888}:80"
# depends_on:
# - backend
# networks:
# - quantdinger-network
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost/health"]
# interval: 30s
# timeout: 10s
# retries: 3
volumes:
postgres_data: