Skip to content

Add missing ISO alphabetic country codes - #539

Open
Plastic-time wants to merge 1 commit into
python-validators:masterfrom
Plastic-time:codex/complete-country-codes
Open

Plastic-time wants to merge 1 commit into
python-validators:masterfrom
Plastic-time:codex/complete-country-codes

Conversation

@Plastic-time

Copy link
Copy Markdown

country_code("728", iso_format="numeric") succeeds, but the corresponding SS and SSD codes fail. Eight countries/territories already present in the numeric set are missing from the alphabetic mapping.

Add AX/ALA, BQ/BES, BL/BLM, CI/CIV, CW/CUW, MF/MAF, SS/SSD and SX/SXM. The mappings were checked against the ISO country-code table published with OASIS UBL and the UN Statistics Division country list.

Tests cover explicit and automatic format selection, case-insensitive acceptance, and the existing rejection of lowercase codes by default. All eight regression cases fail before the change; the full suite passes afterward (1,524 tests on Python 3.12). Ruff lint/format, Pyright and Bandit checks pass.

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