Spaces:
Sleeping
Sleeping
Download dev-tools/format.sh from sethmcknight/msse-ai-engineering: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/sethmcknight/msse-ai-engineering/resolve/main/dev-tools/format.sh
- Command line
-
hf download hf://spaces/sethmcknight/msse-ai-engineering/dev-tools/format.sh
-
curl -L -o format.sh https://huggingface.co/spaces/sethmcknight/msse-ai-engineering/resolve/main/dev-tools/format.sh
699 Bytes
| # 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}" | |