You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate from separate RBS files to inline annotations (#83)
* refactor: migrate from separate RBS files to inline annotations
- Add rbs-inline annotations to source files
- Remove separate sig/*.rbs files (now generated from source)
- Update CI to generate RBS with rbs-inline before validation
- Configure RuboCop to allow #: inline annotation syntax
- Skip RBS generation for stdlib extensions (Array, Vector, Matrix)
to avoid generic parameter conflicts
Fixes#57
* refactor: add proper parameter types to RBS inline annotations
Updated method signatures in lsi.rb and word_hash.rb to include proper
parameter types instead of empty (). Methods now have full type signatures
like `# @RBS (String, ?Float) -> ReturnType` instead of `# @RBS () -> ReturnType`.
This completes the migration to inline RBS annotations with proper types
for all method parameters.
* feat: add Steep static type checking
- Add steep gem for static type analysis
- Create Steepfile configuration (ignoring stdlib extension files and
complex LSI dual-mode code for now)
- Add vendor RBS stubs for fast-stemmer, GSL, and Matrix dependencies
- Fix type issues in Bayes#classify (handle nil from min_by)
- Fix respond_to_missing? to return proper boolean
- Add steep check to CI workflow
* style: use single quotes in Steepfile
* fix: skip steep on Ruby 4.0 (ffi incompatible)
* chore: use Ruby 3.4 as default for lint job
* fix: use install_if for steep to avoid lockfile conflict
* fix: raise explicit error when no classifications available
* fix: remove duplicate @categories RBS annotation
0 commit comments