fix(normalize): validate symbol currencies - #940
Conversation
Signed-off-by: Mr-Neutr0n <harikp2002@gmail.com>
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoFix currency code validation for symbol-parsed currencies
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Signed-off-by: Mr-Neutr0n <harikp2002@gmail.com>
|
Thanks for flagging this. I confirmed the substring matcher could classify words such as ruby and wilson as currency codes after the supported-code list was expanded. The latest commit uses alphabetic boundaries, while still accepting digit-adjacent forms such as 100RUB. Regression coverage now includes valid RUB inputs and the false-positive word cases. Verification: the focused number-normalizer command passes 8 tests, and both touched Python files compile cleanly. |
ZohaibHassan16
left a comment
There was a problem hiding this comment.
Looks good. Approved.
Summary
validate_currency_code()consistentVerification
uv run --no-project --with pytest --with chardet --with loguru --with tqdm --with numpy --with pandas pytest tests/normalize/test_number_normalizer.py -qThis keeps parsed RUB, KRW, ILS, NGN, and PKR values from being rejected by the same normalizer API that produced them.