Skip to content

Commit

Permalink
Merge pull request #8481 from google/tags-skip-sc
Browse files Browse the repository at this point in the history
ci/test_font_tags.py: Ignore SC families
  • Loading branch information
m4rc1e authored Nov 12, 2024
2 parents 96d49db + e489165 commit 417578b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .ci/test_font_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from urllib.request import urlopen
import sys

dev_data = json.loads(
prod_data = json.loads(
urlopen("https://fonts.google.com/metadata/fonts").read().decode("utf-8")
)
dev_families = set(f["family"] for f in dev_data["familyMetadataList"])
prod_families = set(f["family"] for f in prod_data["familyMetadataList"])

csv_data = (
urlopen("https://raw.githubusercontent.com/google/fonts/main/tags/all/families.csv")
Expand All @@ -19,7 +19,8 @@
if line.split(",")[0] != "Family"
)

families_missing_tags = sorted(dev_families - csv_families)
families_missing_tags = sorted(prod_families - csv_families)
families_missing_tags = [f for f in families_missing_tags if not f.endswith("SC")]

if families_missing_tags:
missing_list = "\n".join(families_missing_tags)
Expand Down

0 comments on commit 417578b

Please sign in to comment.