|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
echo "Cleaning up generated files..." |
|
|
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" |
|
|
|
|
|
|
|
|
PROJECT_ROOT="$( cd "$SCRIPT_DIR/.." &> /dev/null && pwd )" |
|
|
|
|
|
|
|
|
echo "Removing Python cache files..." |
|
|
find "$PROJECT_ROOT" -type d -name "__pycache__" -exec rm -rf {} + |
|
|
find "$PROJECT_ROOT" -type f -name "*.pyc" -delete |
|
|
find "$PROJECT_ROOT" -type f -name "*.pyo" -delete |
|
|
find "$PROJECT_ROOT" -type f -name "*.pyd" -delete |
|
|
|
|
|
|
|
|
echo "Removing model files..." |
|
|
rm -rf "$PROJECT_ROOT/models"/*.pkl |
|
|
|
|
|
|
|
|
echo "Removing cache files..." |
|
|
rm -rf "$PROJECT_ROOT/cache"/* |
|
|
|
|
|
|
|
|
echo "Removing Poetry cache files..." |
|
|
rm -rf "$PROJECT_ROOT/.pytest_cache" |
|
|
rm -rf "$PROJECT_ROOT/.ruff_cache" |
|
|
|
|
|
echo "Cleanup complete!" |
|
|
|