mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
CLAUDE.md
This commit is contained in:
parent
739a5723f9
commit
3b56577b2f
1 changed files with 27 additions and 0 deletions
27
CLAUDE.md
Normal file
27
CLAUDE.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Workflow
|
||||
|
||||
```bash
|
||||
# Lint and style
|
||||
# Check for issues and fix automatically
|
||||
python -m ruff check src/ test/ --fix
|
||||
python -m ruff format src/ test/
|
||||
|
||||
# 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_code_sdk/` - Main package
|
||||
- `client.py` - ClaudeSDKClient for interactive sessions
|
||||
- `query.py` - One-shot query function
|
||||
- `types.py` - Type definitions
|
||||
- `_internal/` - Internal implementation details
|
||||
- `transport/subprocess_cli.py` - CLI subprocess management
|
||||
- `message_parser.py` - Message parsing logic
|
||||
Loading…
Add table
Add a link
Reference in a new issue