Make fix-ruff.sh more flexible, use pyproject rules

This commit is contained in:
Mark Backman
2025-07-09 11:48:17 -07:00
parent f04f047428
commit a48f5d5796

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"