(Chore): Commit the helper scripts.
This commit is contained in:
33
scripts/verify.sh
Normal file
33
scripts/verify.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/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!"
|
||||
Reference in New Issue
Block a user