Spaces:
Sleeping
Sleeping
File size: 699 Bytes
89aa2b4 1589e06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#!/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}"
|