Commit graph

6 commits

Author SHA1 Message Date
Dakota
e13526d308 Fix API to accept messages without reward field + comprehensive tests
- Made reward field truly optional in messages (no auto-addition)
- Accept custom roles (dog, cat, etc.) beyond standard ones
- Added 24 new tests for edge cases (tuples, unicode, large content)
- Reorganized test structure: moved from testing/ to atroposlib/tests/
- Fixed legacy API tests and removed tests requiring missing data files

All 43 tests pass\! Fixes message handling for SFT use cases.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-09 14:03:08 -05:00
Dakota
55cdb83cbf Update pre-commit hooks to latest versions and fix issues
- Update pre-commit hooks: v5.0.0, black 25.1.0, isort 6.0.1, flake8 7.2.0
- Fix isort import ordering in lean_proof_env.py
- Fix flake8 F824 false positive in spatial_env.py with noqa comment
2025-06-04 10:58:37 -05:00
Shannon Sands
8f08a398c0 linting 2025-05-27 15:46:10 +10:00
Shannon Sands
a353bb6eb1 linting 2025-05-27 15:45:07 +10:00
Shannon Sands
e7e747a396 linting 2025-05-27 15:43:12 +10:00
Shannon Sands
2efb690a24 linting, moved to community 2025-05-27 15:36:24 +10:00