Merge pull request #2177 from pipecat-ai/mb/fix-ruff-improvements

Make fix-ruff.sh more flexible, use pyproject rules
This commit is contained in:
Mark Backman
2025-07-09 12:33:05 -07:00
committed by GitHub

View File

@@ -1,5 +1,10 @@
ruff format src
ruff format examples
ruff format tests
ruff format scripts
ruff check --select I,D --fix
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
echo "Running ruff format..."
ruff format "$PROJECT_ROOT"
echo "Running ruff check..."
ruff check --fix "$PROJECT_ROOT"