Closed maxbachmann closed 6 months ago
There is an error in CI:
./src/rapidfuzz/cpp_common.pxd:396: TypeError : ('Got unexpected keyword arguments: ', 'process')
Do you have an idea ?
Ah yes it should have used processor
instead of process
.
Hello,
Sorry for the delay but some tests fail with rapidfuzzy : pytest -v tests/test_cpu.py::TestTDP::test_get_matching_cpu
And if I lower the threshold it make another test to fail.
With rapidfuzz v3.0.0
strings are no longer preprocessed by default. Enabling it again should fix this.
@benoit-cty are you still interested in this? I could rebase it in this case. Otherwise I will close this PR.
Hello, yes we are still interested. If all test pass I'm ok to merge it. Thanks for the reminder :+1:
@benoit-cty I rebased the change + fixed the new linter rules
Thanks a lot !
This PR simplifies the implementation of
get_matching_cpu
. In addition it replacesfuzzywuzzy
withrapidfuzz
, sincefuzzywuzzy
is not maintained anymore and is GPL licensed.In theory this new implementation is faster, but since CPU lists should be pretty short this does not really matter here.