From 8b942303112b0342f7ed782890b324b85d6eaf6b Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Wed, 20 Nov 2024 14:21:05 +0000 Subject: [PATCH] Revert "ci/test_font_tags.py: Ignore SC families" --- .ci/test_font_tags.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.ci/test_font_tags.py b/.ci/test_font_tags.py index f3e174a8447..7263e0f0f6d 100644 --- a/.ci/test_font_tags.py +++ b/.ci/test_font_tags.py @@ -2,10 +2,10 @@ from urllib.request import urlopen import sys -prod_data = json.loads( +dev_data = json.loads( urlopen("https://fonts.google.com/metadata/fonts").read().decode("utf-8") ) -prod_families = set(f["family"] for f in prod_data["familyMetadataList"]) +dev_families = set(f["family"] for f in dev_data["familyMetadataList"]) csv_data = ( urlopen("https://raw.githubusercontent.com/google/fonts/main/tags/all/families.csv") @@ -19,8 +19,7 @@ if line.split(",")[0] != "Family" ) -families_missing_tags = sorted(prod_families - csv_families) -families_missing_tags = [f for f in families_missing_tags if not f.endswith("SC")] +families_missing_tags = sorted(dev_families - csv_families) if families_missing_tags: missing_list = "\n".join(families_missing_tags)