Skip to content

v3.0.0 - Code Quality, Test Suite & Python 3.13 Support

Choose a tag to compare

@TavoloPerUno TavoloPerUno released this 12 Mar 02:15
· 43 commits to master since this release

What's New

Comprehensive Test Suite

  • 316 tests covering all modules: preprocessing (MAX & TAF), adapted algorithms, filters, common utilities
  • All tests use synthetic data fixtures - no real claims data needed
  • Previously skipped tests (BETOS 2020 crosswalk, low-value care) now run with synthetic data

Code Quality

  • 0 flake8 warnings across entire codebase (fixed 163 pre-existing issues)
  • pylint score: 9.94/10 - fixed unused imports, f-string logging, missing timeouts, unnecessary lambdas, param doc mismatches
  • PEP 8 compliant throughout

Bug Fixes

  • Fixed BETOS betpuf20.txt parsing - restructured reader to handle space-separated fields with quoted descriptions
  • Fixed on_bad_lines parameter for pandas 2.0+ compatibility in BETOS code lookup files
  • Fixed transform(max) to transform("max") eliminating 438 FutureWarnings

Performance Improvements

  • Deduplicated pd.to_numeric() calls in flag_common_exclusions (MAX IP & OT)
  • Merged consecutive map_partitions() calls in MAX PS eligibility processing
  • Consolidated multiple .assign() calls into single operations

Documentation

  • Comprehensive README with usage examples, expected data layout, algorithm references, and package structure
  • SEO-optimized package description

CI/CD

  • GitHub Actions updated to Python 3.13 with latest action versions

Dependencies

  • Python >= 3.11 (tested on 3.13)
  • Updated to pandas 2.0+, dask 2024.1.0+, pyarrow 15.0.0+