mirror of
https://github.com/anthropics/claude-agent-sdk-python.git
synced 2025-10-06 01:00:03 +03:00
677 B
677 B
Workflow
# Lint and style
# Check for issues and fix automatically
python -m ruff check src/ tests/ --fix
python -m ruff format src/ tests/
# Typecheck (only done for src/)
python -m mypy src/
# Run all tests
python -m pytest tests/
# Run specific test file
python -m pytest tests/test_client.py
Codebase Structure
src/claude_agent_sdk/- Main packageclient.py- ClaudeSDKClient for interactive sessionsquery.py- One-shot query functiontypes.py- Type definitions_internal/- Internal implementation detailstransport/subprocess_cli.py- CLI subprocess managementmessage_parser.py- Message parsing logic