#!/usr/bin/env python
"""Quick syntax validation"""
import py_compile
import sys

try:
    py_compile.compile('loans/minimal_analytics.py', doraise=True)
    print("✅ Syntax check PASSED - File is valid Python")
    sys.exit(0)
except SyntaxError as e:
    print(f"❌ Syntax Error: {e}")
    sys.exit(1)
