Skip to content

Commit

Permalink
Merge pull request #8520 from google/revert-8481-tags-skip-sc
Browse files Browse the repository at this point in the history
Revert "ci/test_font_tags.py: Ignore SC families"
  • Loading branch information
m4rc1e authored Nov 20, 2024
2 parents 6f2436e + 8b94230 commit 5b0c5a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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

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")
Expand All @@ -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)
Expand Down

0 comments on commit 5b0c5a6

Please sign in to comment.