diff --git a/choose_l10n_beta_split.py b/choose_l10n_beta_split.py index d4d7cd86e..3ee24d9bc 100644 --- a/choose_l10n_beta_split.py +++ b/choose_l10n_beta_split.py @@ -26,7 +26,10 @@ def distribute_mappings_evenly(mappings): loads[min_idx] += len(regions) for i in range(len(balanced_splits)): logging.info(f"Beta split: {i}") - current_split = [f"{site} {' '.join(regions)}" for site, regions in balanced_splits[i].items()] + current_split = [ + f"{site} {' '.join(regions)}" + for site, regions in balanced_splits[i].items() + ] logging.info(f"{'\n'.join(current_split)}") return balanced_splits diff --git a/choose_l10n_ci_set.py b/choose_l10n_ci_set.py index c5045562f..970f6f8de 100644 --- a/choose_l10n_ci_set.py +++ b/choose_l10n_ci_set.py @@ -31,8 +31,19 @@ def valid_l10n_mappings(): if region_file.get("sites"): for site in region_file.get("sites"): report_mapping = True - if site != "demo" and os.path.exists(f"./l10n_CM/constants/{site}/{region}"): - with open(f"./l10n_CM/constants/{site}/{region}/{site}_ad.json", "r+") as ad_file, open(f"./l10n_CM/constants/{site}/{region}/{site}_cc.json", "r+") as cc_file: + if site != "demo" and os.path.exists( + f"./l10n_CM/constants/{site}/{region}" + ): + with ( + open( + f"./l10n_CM/constants/{site}/{region}/{site}_ad.json", + "r+", + ) as ad_file, + open( + f"./l10n_CM/constants/{site}/{region}/{site}_cc.json", + "r+", + ) as cc_file, + ): ad = json.load(ad_file) cc = json.load(cc_file) if ad.get("skip") and cc.get("skip"): diff --git a/l10n_CM/region/AT.json b/l10n_CM/region/AT.json index a50289b61..67d481da4 100644 --- a/l10n_CM/region/AT.json +++ b/l10n_CM/region/AT.json @@ -2,10 +2,10 @@ "region": "AT", "sites": [ "demo", - "giesswein", - "holzkern", "ebay", + "giesswein", "hofer", + "holzkern", "mediamarkt" ], "tests": [ diff --git a/l10n_CM/region/BE.json b/l10n_CM/region/BE.json index a41894f0d..979f15bca 100644 --- a/l10n_CM/region/BE.json +++ b/l10n_CM/region/BE.json @@ -1,12 +1,12 @@ { "region": "BE", "sites": [ + "brico", "demo", - "torfs", - "standaardboekhandel", "douglas", - "brico", - "toychamp" + "standaardboekhandel", + "toychamp", + "torfs" ], "tests": [ ] diff --git a/l10n_CM/region/CA.json b/l10n_CM/region/CA.json index 3d5827054..ffad1f43f 100644 --- a/l10n_CM/region/CA.json +++ b/l10n_CM/region/CA.json @@ -2,15 +2,17 @@ "region": "CA", "sites": [ "amazon", - "walmart", + "burtsbees", + "calvinklein", + "canadatire", "demo", + "ebay", "etsy", + "gapcanada", + "movieposters", "newbalance", - "canadatire", - "ebay", - "burtsbees", "staples", - "gapcanada" + "walmart" ], "tests": [ ] diff --git a/l10n_CM/region/DE.json b/l10n_CM/region/DE.json index c2e863987..d841f9293 100644 --- a/l10n_CM/region/DE.json +++ b/l10n_CM/region/DE.json @@ -2,10 +2,14 @@ "region": "DE", "sites": [ "amazon", - "mediamarkt", + "bijoubrigitte", "demo", + "ebay", "justspices", - "bijoubrigitte" + "mediamarkt", + "newbalance", + "thomann", + "zalando" ], "tests": [ ] diff --git a/l10n_CM/region/FR.json b/l10n_CM/region/FR.json index e2d9b0506..361978e74 100644 --- a/l10n_CM/region/FR.json +++ b/l10n_CM/region/FR.json @@ -9,4 +9,4 @@ ], "tests": [ ] -} \ No newline at end of file +} diff --git a/l10n_CM/region/GB.json b/l10n_CM/region/GB.json index ddf48b57e..60ddd5b28 100644 --- a/l10n_CM/region/GB.json +++ b/l10n_CM/region/GB.json @@ -1,12 +1,12 @@ { "region": "GB", "sites": [ - "ebay", + "assos", "demo", - "peacocks", - "whittard", "diy", - "assos" + "ebay", + "peacocks", + "whittard" ], "tests": [ ] diff --git a/l10n_CM/region/IT.json b/l10n_CM/region/IT.json index 76e76d5ee..4b36a46af 100644 --- a/l10n_CM/region/IT.json +++ b/l10n_CM/region/IT.json @@ -1,12 +1,12 @@ { "region": "IT", "sites": [ - "ebay", "calvinklein", - "tiffany", - "euronics", "douglas", + "ebay", + "euronics", "thenorthface", + "tiffany", "zalando" ], "tests": [ diff --git a/l10n_CM/region/PL.json b/l10n_CM/region/PL.json index 38386c538..fce5b41b2 100644 --- a/l10n_CM/region/PL.json +++ b/l10n_CM/region/PL.json @@ -1,12 +1,12 @@ { "region": "PL", "sites": [ + "ceneo", + "cocolita", "demo", - "zalando", "duka", - "ceneo", "tanie-leczenie", - "cocolita" + "zalando" ], "tests": [ ] diff --git a/l10n_CM/region/US.json b/l10n_CM/region/US.json index f6acd3025..cd8b8132b 100644 --- a/l10n_CM/region/US.json +++ b/l10n_CM/region/US.json @@ -1,16 +1,16 @@ { "region": "US", "sites": [ + "aldoshoes", "amazon", - "walmart", - "lowes", - "etsy", - "calvinklein", + "apple", "bestbuy", + "calvinklein", "demo", + "etsy", + "lowes", "newegg", - "aldoshoes", - "apple", + "walmart", "wish" ], "tests": [] diff --git a/l10n_CM/run_l10n.py b/l10n_CM/run_l10n.py index 165e761eb..c71549c64 100644 --- a/l10n_CM/run_l10n.py +++ b/l10n_CM/run_l10n.py @@ -67,7 +67,7 @@ "yellowkorner", "zalando", "zara", - "zooplus" + "zooplus", } loaded_valid_sites = valid_l10n_mappings().keys()