Run ruff format changes and finalize indentation and lint fixes.

This commit is contained in:
William Valentin
2025-08-09 12:10:16 -07:00
parent 9cec07e9f6
commit 9a5a2f0022
68 changed files with 1272 additions and 4301 deletions

View File

@@ -1,16 +1,21 @@
#!/usr/bin/env python3
"""Verify header visibility across all themes."""
# ruff: noqa: E402
import sys
import tkinter as tk
from pathlib import Path
from init import logger
from theme_manager import ThemeManager
# Ensure the 'src' directory is on sys.path so 'thechart' package is importable
SRC_DIR = Path(__file__).resolve().parent.parent / "src"
if str(SRC_DIR) not in sys.path:
sys.path.insert(0, str(SRC_DIR))
# Add src directory to Python path
src_path = Path(__file__).parent / "src"
sys.path.insert(0, str(src_path))
from thechart.core.constants import LOG_LEVEL
from thechart.core.logger import init_logger
from thechart.ui import ThemeManager
logger = init_logger(__name__, testing_mode=(LOG_LEVEL == "DEBUG"))
def verify_all_themes():
@@ -56,7 +61,6 @@ def verify_all_themes():
darker = min(bg_lum, fg_lum)
contrast_ratio = (lighter + 0.05) / (darker + 0.05)
# Determine status
if contrast_ratio >= 4.5:
status = "✅ EXCELLENT"
elif contrast_ratio >= 3.0: