Update linting scripts to use ruff version installed by uv
This commit is contained in:
@@ -5,6 +5,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
echo "Running ruff format..."
|
||||
ruff format "$PROJECT_ROOT"
|
||||
uv run ruff format "$PROJECT_ROOT"
|
||||
echo "Running ruff check..."
|
||||
ruff check --fix "$PROJECT_ROOT"
|
||||
uv run ruff check --fix "$PROJECT_ROOT"
|
||||
|
||||
@@ -12,14 +12,14 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
# Format check
|
||||
echo "📝 Checking code formatting..."
|
||||
if ! NO_COLOR=1 ruff format --diff --check; then
|
||||
echo -e "${RED}❌ Code formatting issues found. Run 'ruff format' to fix.${NC}"
|
||||
if ! NO_COLOR=1 uv run ruff format --diff --check; then
|
||||
echo -e "${RED}❌ Code formatting issues found. Run 'uv run ruff format' to fix.${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Lint check
|
||||
echo "🔍 Running linter..."
|
||||
if ! ruff check; then
|
||||
if ! uv run ruff check; then
|
||||
echo -e "${RED}❌ Linting issues found.${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user