Commit Graph

2 Commits

Author SHA1 Message Date
Joseph O'Brien c39f9aab36 Add pre-commit hooks and ruff code quality configuration
- Add .pre-commit-config.yaml with trailing whitespace, ruff linter/formatter
- Configure ruff in pyproject.toml with selected rules (E, F, W, I, UP, B, C4, SIM)
- Add F401 to unfixable to preserve re-exported imports in __init__.py files
- Fix BacktestMetrics import in backtesting/engine.py
- Update todos.md with enhanced trade discovery and database implementation tasks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 11:22:13 -05:00
Joseph O'Brien eba9048b5a test: add comprehensive integration tests for agent workflow
Add 47 integration tests covering:
- Agent state structures (InvestDebateState, RiskDebateState, AgentState)
- Conditional logic for analyst tool calls and debate flow
- Propagator state initialization and configuration
- Graph setup with various analyst combinations
- End-to-end workflow state transitions
- Validation integration with TradingAgentsGraph

Tests verify:
- State creation and mutation
- Debate round progression (Bull/Bear, Risk analysts)
- Graph compilation with different analyst configurations
- Input validation for tickers and dates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 03:14:03 -05:00