v0.2.0 - Code Quality and Type Safety Improvements
What's Changed
Added
- Comprehensive type annotations for all methods
- MyPy strict mode compliance
- Specific exception handling for different error types
- Consistent data storage format with wrapper dictionary
- Code quality standards documentation in CLAUDE.md
Changed
- Improved error messages to be more specific about failure types
- User-Agent header now uses actual GitHub repository URL
- Data storage format now uses
{"formulas": [...]}wrapper for consistency - Updated shebang line to proper format with space after
#
Removed
- Unused
clickdependency from requirements - Unused imports:
timedelta,Set,os
Fixed
- Type safety issues with API response handling
- Data format inconsistency between save and load operations
- Test compatibility with new data format
- Line length issues for flake8 compliance
Developer Experience
- All code now formatted with Black (88-character line limit)
- Flake8 compliance with no warnings
- MyPy strict mode passes with no errors
- All 31 tests pass successfully
Breaking Changes
brew_parser.py update to rebuild their local formula database.
Installation
git clone https://github.com/bluby/brew-parser.git
cd brew-parser
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtFull Changelog
See CHANGELOG.md for complete details.
🤖 Generated with Claude Code