Files
fastapi-route-loader/scripts/verify.sh

34 lines
694 B
Bash

#!/bin/bash
# Verification script for code quality checks
set -e
echo "🔍 Running code quality checks..."
echo ""
# Run ruff linter
echo "📋 Running ruff linter..."
ruff check src/ tests/ examples/
echo "✅ Ruff linter passed!"
echo ""
# Run ruff formatter check
echo "🎨 Checking code formatting..."
ruff format --check src/ tests/ examples/
echo "✅ Code formatting is correct!"
echo ""
# Run pyright type checker
echo "🔬 Running pyright type checker..."
pyright src/
echo "✅ Pyright type checking passed!"
echo ""
# Run tests with coverage
echo "🧪 Running tests with coverage..."
pytest
echo "✅ All tests passed!"
echo ""
echo "🎉 All checks passed successfully!"