[ty] Replace strsim with CPython-based Levenshtein implementation by AlexWaygood · Pull Request #23291 · astral-sh/ruff (original) (raw)

added 3 commits

February 15, 2026 18:01

@claude

Replace the strsim::damerau_levenshtein dependency with a Levenshtein implementation ported from CPython's suggestion algorithm. The new implementation uses case-insensitive character matching with weighted costs (matching CPython's approach) and improved max-distance heuristics, rather than the simple Damerau-Levenshtein with lowercased comparison.

This removes the strsim crate dependency from ty_python_semantic.

https://claude.ai/code/session_014vwDhReNbswR4MXhYNcvBW

@claude

https://claude.ai/code/session_014vwDhReNbswR4MXhYNcvBW

@claude

@claude

@AlexWaygood AlexWaygood changed the titleReplace strsim with CPython-based Levenshtein implementation [ty] Replace strsim with CPython-based Levenshtein implementation

Feb 15, 2026

@claude

…nostic.rs`

https://claude.ai/code/session_014vwDhReNbswR4MXhYNcvBW

@claude

@AlexWaygood

@AlexWaygood AlexWaygood changed the title[ty] Replace strsim with CPython-based Levenshtein implementation [ty] Replace strsim with CPython-based Levenshtein implementation

Feb 15, 2026

@AlexWaygood AlexWaygood deleted the claude/upgrade-levenshtein-impl-tLEYU branch

February 16, 2026 10:36

carljm added a commit that referenced this pull request

Feb 16, 2026

@carljm

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})