Skip to content

Accept current SLE, XCG and ZWG currency codes - #542

Open
mjanthony819 wants to merge 2 commits into
python-validators:masterfrom
mjanthony819:fix-current-currency-codes
Open

mjanthony819 wants to merge 2 commits into
python-validators:masterfrom
mjanthony819:fix-current-currency-codes

Conversation

@mjanthony819

Copy link
Copy Markdown

currency() rejects SLE (Sierra Leone's leone), XCG (Caribbean guilder) and ZWG (Zimbabwe Gold), although all three are in the current ISO 4217 list published by SIX, the maintenance agency.

Add those three codes without removing any previously accepted codes. The regression tests cover the symbol flag, case-sensitive and ignore_case behavior, and continued acceptance of SLL, ANG and ZWL.

Source: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml (published 2026-09-17).

Nine new cases fail before the change. With the change, all 1,528 tests pass on Python 3.12, including the configured doctests. Repository-wide Ruff lint and formatting checks pass. Strict Pyright passes with the test environment selected explicitly.

This is a targeted addition of three circulating-currency codes, not a full refresh of fund, metal or historical codes. AI assistance covered research, implementation, tests and this description.

This branch has not been deployed

No deployments
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.

1 participant