Skip to content

Release v0.13.3: Code Quality Improvements

Choose a tag to compare

@jwesleye jwesleye released this 15 Oct 17:27
· 70 commits to main since this release

Code Quality Improvements

🔍 Structured Logging

  • Migrated 157 print statements to Python logging framework
  • Added BOAT_LOG_LEVEL environment variable for log level control (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  • Default log level: WARNING (to avoid verbose output in production)
  • Created centralized _logging.py utility with consistent formatting

🛡️ Enhanced Error Handling

  • Replaced all 7 assert statements with explicit type checking
  • Improved error messages with descriptive TypeError and ValueError exceptions
  • Better debugging with clear error context

🧹 Code Quality

  • Improved type safety across 13 modules
  • Enhanced debugging capabilities
  • Consistent exception raising patterns
  • Maintained 100% ruff and mypy compliance

Files Modified

  • Created: src/basic_open_agent_tools/_logging.py
  • Updated: 13 modules with structured logging (crypto, archive, data, file_system, network, text, todo)
  • Updated: 3 modules with improved error handling (xml, utilities)

Full Changelog: v0.13.2...v0.13.3