Skip to content

fix: add fasttext as optional dependency for slither-simil#2899

Merged
dguido merged 1 commit intomasterfrom
fix/simil-optional-dependency
Jan 16, 2026
Merged

fix: add fasttext as optional dependency for slither-simil#2899
dguido merged 1 commit intomasterfrom
fix/simil-optional-dependency

Conversation

@dguido
Copy link
Member

@dguido dguido commented Jan 16, 2026

Summary

  • Add simil optional dependency extra containing fasttext>=0.9.0
  • Update error message in slither-simil to show new installation methods

Users can now install with:

pip install slither-analyzer[simil]
uv pip install slither-analyzer[simil]
uv tool install slither-analyzer[simil]

Fixes #2621

Test plan

  • Verify pip install slither-analyzer[simil] installs fasttext
  • Verify slither-simil runs without import error after installation
  • Verify error message displays correctly when fasttext is not installed

🤖 Generated with Claude Code

Add `[project.optional-dependencies]` section with `simil` extra so users
can install with `pip install slither-analyzer[simil]` instead of manually
installing fasttext.

Update error message to show the new installation method.

Fixes #2621

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dguido dguido requested a review from smonicas as a code owner January 16, 2026 06:58
@dguido dguido merged commit d6f9243 into master Jan 16, 2026
37 checks passed
@dguido dguido deleted the fix/simil-optional-dependency branch January 16, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slither-simil doesn't work with pipx

1 participant

Comments