- Add matplotlib.use("Agg") backend configuration to prevent runtime errors in headless environments
- Add error handling guards for script results that might return None
- Fix AI targeting logic to exclude already-fired cells in super hunter and hunter modes
- Update CLAUDE.md with matplotlib best practices
1,012 B
1,012 B
Claude Instructions
Commit Messages
- NEVER add Claude attributions like "🤖 Generated with Claude Code" to commit messages
- Keep commit messages focused on the actual changes and their purpose
- Use conventional commit format when appropriate
- Be concise but descriptive about what was changed and why
Code Style
- Follow existing code conventions in the project
- Use appropriate linting tools (black, ruff, etc.) when available
- Maintain consistent naming and formatting
Testing
- Run existing tests before committing when available
- Write tests for new functionality when appropriate
- Verify changes work as expected
Documentation
- Update relevant documentation when making significant changes
- Keep README files current with new features or setup changes
- Document any new environment variables or configuration options
Python/Matplotlib Best Practices
- Always add
matplotlib.use("Agg")before importing matplotlib.pyplot to prevent runtime errors in headless environments