mirror of
https://github.com/isaiahbjork/Auto-GPT-Crypto-Plugin.git
synced 2026-04-16 03:00:35 -04:00
43 lines
871 B
Bash
Executable File
43 lines
871 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
clean() {
|
|
# Remove build artifacts and temporary files
|
|
rm -rf build 2>/dev/null || true
|
|
rm -rf dist 2>/dev/null || true
|
|
rm -rf __pycache__ 2>/dev/null || true
|
|
rm -rf *.egg-info 2>/dev/null || true
|
|
rm -rf **/*.egg-info 2>/dev/null || true
|
|
rm -rf *.pyc 2>/dev/null || true
|
|
rm -rf **/*.pyc 2>/dev/null || true
|
|
rm -rf reports 2>/dev/null || true
|
|
}
|
|
|
|
qa() {
|
|
# Run static analysis tools
|
|
flake8 .
|
|
python run_pylint.py
|
|
}
|
|
|
|
style() {
|
|
# Format code
|
|
isort .
|
|
black --exclude=".*\/*(dist|venv|.venv|test-results)\/*.*" .
|
|
}
|
|
|
|
if [ "$1" = "clean" ]; then
|
|
echo Removing build artifacts and temporary files...
|
|
clean
|
|
elif [ "$1" = "qa" ]; then
|
|
echo Running static analysis tools...
|
|
qa
|
|
elif [ "$1" = "style" ]; then
|
|
echo Running code formatters...
|
|
style
|
|
else
|
|
echo "Usage: $0 [clean|qa|style]"
|
|
exit 1
|
|
fi
|
|
|
|
echo Done!
|
|
echo
|
|
exit 0 |