mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Some checks are pending
Lint / lint (push) Waiting to run
Test / test (macos-latest, 3.10) (push) Waiting to run
Test / test (macos-latest, 3.11) (push) Waiting to run
Test / test (macos-latest, 3.12) (push) Waiting to run
Test / test (ubuntu-latest, 3.10) (push) Waiting to run
Test / test (windows-latest, 3.10) (push) Waiting to run
Test / test (windows-latest, 3.11) (push) Waiting to run
Test / test (windows-latest, 3.12) (push) Waiting to run
Test / test (windows-latest, 3.13) (push) Waiting to run
Test / test-examples (3.11) (push) Blocked by required conditions
Test / test-examples (3.12) (push) Blocked by required conditions
Test / test-examples (3.13) (push) Blocked by required conditions
Test / test (macos-latest, 3.13) (push) Waiting to run
Test / test (ubuntu-latest, 3.11) (push) Waiting to run
Test / test (ubuntu-latest, 3.12) (push) Waiting to run
Test / test (ubuntu-latest, 3.13) (push) Waiting to run
Test / test-examples (3.10) (push) Blocked by required conditions
Test / test-e2e (macos-latest, 3.10) (push) Blocked by required conditions
Test / test-e2e (macos-latest, 3.11) (push) Blocked by required conditions
Test / test-e2e (macos-latest, 3.12) (push) Blocked by required conditions
Test / test-e2e (macos-latest, 3.13) (push) Blocked by required conditions
Test / test-e2e (ubuntu-latest, 3.10) (push) Blocked by required conditions
Test / test-e2e (ubuntu-latest, 3.11) (push) Blocked by required conditions
Test / test-e2e (ubuntu-latest, 3.12) (push) Blocked by required conditions
Test / test-e2e (ubuntu-latest, 3.13) (push) Blocked by required conditions
Test / test-e2e (windows-latest, 3.10) (push) Blocked by required conditions
Test / test-e2e (windows-latest, 3.11) (push) Blocked by required conditions
Test / test-e2e (windows-latest, 3.12) (push) Blocked by required conditions
Test / test-e2e (windows-latest, 3.13) (push) Blocked by required conditions
Adds a committable pre-push hook that runs ruff checks before pushing, matching the CI lint workflow. Developers run ./scripts/initial-setup.sh to install the hook locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
30 lines
723 B
Bash
Executable file
30 lines
723 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Pre-push hook to run lint checks (matches .github/workflows/lint.yml)
|
|
|
|
echo "Running lint checks before push..."
|
|
echo ""
|
|
|
|
# Run ruff check
|
|
echo "→ Running ruff check..."
|
|
python -m ruff check src/ tests/
|
|
if [ $? -ne 0 ]; then
|
|
echo ""
|
|
echo "❌ ruff check failed. Fix lint issues before pushing."
|
|
echo " Run: python -m ruff check src/ tests/ --fix"
|
|
exit 1
|
|
fi
|
|
|
|
# Run ruff format check
|
|
echo "→ Running ruff format check..."
|
|
python -m ruff format --check src/ tests/
|
|
if [ $? -ne 0 ]; then
|
|
echo ""
|
|
echo "❌ ruff format check failed. Fix formatting before pushing."
|
|
echo " Run: python -m ruff format src/ tests/"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "✓ All lint checks passed!"
|
|
exit 0
|