Record the Waitukubuli National Trail as considered and left out, being outside the United States and Canada
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

The entry keeps what the trail's own site and Kate Siber's 100 Hikes of a
Lifetime say about it, in case the catalogue's area widens. A new left-out
reason, outside-us-canada, allows a country other than US or CA.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-22 11:51:53 -07:00
1 parent 4d136f562e
commit f269cd8872
6 files changed
+38 -4

No files matched your search

+14 -3
View File
@@ -640,7 +640,7 @@ LEFT_OUT_FILE = "left-out.toml"
LEFT_OUT_REASONS = {
"below-floor", "rail-trail-or-towpath", "driving-route", "not-mainly-walking",
"network", "cannot-be-walked-through", "mostly-unbuilt", "requires-climbing",
"not-published-as-route", "waiting",
"not-published-as-route", "outside-us-canada", "waiting",
}
LEFT_OUT_KEYS = {
"id", "name", "country", "regions", "length_mi", "length_km", "length_note",
@@ -709,7 +709,15 @@ def check_left_out_entries(entries, trails, errors, where=LEFT_OUT_FILE):
seen_names.add(key)
if key in listed_names:
errors.append(f"{where}: {ename} matches a trail that is listed in the dataset")
if "country" in e and e.get("country") not in ("US", "CA"):
outside = e.get("reason") == "outside-us-canada"
if outside:
country = e.get("country")
if not (isinstance(country, str) and re.fullmatch(r"[A-Z]{2}", country)
and country not in ("US", "CA")):
errors.append(
f"{where}: {who} country must be a two letter code other than US or CA "
"when reason is outside-us-canada")
elif "country" in e and e.get("country") not in ("US", "CA"):
errors.append(f"{where}: {who} country must be US or CA")
regions = e.get("regions")
if "regions" in e and regions not in ("", None, []):
@@ -717,7 +725,10 @@ def check_left_out_entries(entries, trails, errors, where=LEFT_OUT_FILE):
errors.append(f"{where}: {who} regions must be a non-empty list of region codes")
else:
for code in regions:
if code not in LEFT_OUT_REGIONS:
if outside:
if not isinstance(code, str) or not code.strip():
errors.append(f"{where}: {who} regions must name places as plain words")
elif code not in LEFT_OUT_REGIONS:
errors.append(f"{where}: {who} region {code!r} is not a known state or province code")
if len(set(map(str, regions))) != len(regions):
errors.append(f"{where}: {who} regions repeats a code")