Repository navigation
🧪 Testing Improvements
- 100% Code Coverage Requirement: Tests now enforce 100% code coverage with
pytest-cov - Comprehensive Test Suite Additions:
- Complete DMI tests (
test_DMI.py) with 21 test cases - Complete Ichimoku tests (
test_ichimoku.py) with 33 test cases - Complete utils tests (
test_utils.py) coveringDynamicTimeWarpingandOHLC_finder - Extended tests for Bollinger Trends, MACD, SMIO, TRIX, and TSI
- Added edge case testing for invalid parameters
- Added tests for different data inputs (DataFrame vs Series)
- Added tests for different calculation methods (ratio, absolute, DTW)
- Added tests for various signal methods (SMA, EMA, DEMA, TEMA, RMA)
- Complete DMI tests (
🔧 Code Quality Improvements
- Cleaner Code Structure:
- Removed unreachable
elsebranches in DMI class - Removed unreachable
case _pattern in MACD function - Simplified OHLC_finder utility function
- Improved variable naming consistency (e.g.,
ohlc→hlcwhere appropriate)
- Removed unreachable
🐛 Bug Fixes & Refactoring
- Fixed redundant None assignments in DMI initialization
- Fixed redundant None assignments in OHLC_finder utility
- Improved column detection logic in DMI and utils
🔄 CI/CD Updates
- GitHub Actions workflow now includes coverage requirements
- Tests must achieve 100% code coverage to pass
Full Changelog: v0.1.2.0...v0.1.3