#!/bin/bash # Quick Format Check Script # Fast formatting check and auto-fix for common issues set -e echo "🎨 Quick Format Check & Fix" echo "==========================" # Colors GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' echo -e "${YELLOW}🔧 Running black formatter...${NC}" black . echo -e "${YELLOW}🔧 Running isort import sorter...${NC}" isort . echo -e "${YELLOW}🔍 Checking flake8 compliance...${NC}" if flake8 --max-line-length=88 --exclude venv; then echo -e "${GREEN}✅ All formatting checks passed!${NC}" else echo "❌ Flake8 issues found. Please fix manually." exit 1 fi echo "" echo -e "${GREEN}🎉 Formatting complete! Your code is ready.${NC}"