v0.5.0 - Code Quality and Coverage
What's New in v0.5.0
Quality Engineering
- 500 tests - up from 382, covering 85% of the codebase (was 80%)
- Zero lint errors - fixed all 67 ruff errors across the project
- PEP 561 compliance - py.typed marker for downstream type checkers
- Pre-commit hooks - ruff lint+format, trailing whitespace, YAML/TOML checks
- mypy integration - type checking configuration in pyproject.toml
- Enhanced CI/CD - ruff lint step + mypy type check + XML coverage output
Coverage Improvements
| Module | Before | After |
|---|---|---|
| morphology.py | 55% | 93% |
| coherence.py | 68% | 96% |
| paraphrase.py | 71% | 87% |
| watermark.py | 74% | 87% |
| Overall | 80% | 85% |
PHP Fixes
- SentenceSplitter - PREG_OFFSET_CAPTURE offset properly cast to int
- ToneAnalyzer - preg_match offset cast to int for mb_substr() compatibility
Full Changelog
See CHANGELOG.md for details.
Full backward compatibility with v0.4.0 - no breaking changes.