Merge main into seasons-ship-3: places pages from main kept alongside the seasons; places precede history in records, this ship's changelog entry first

This commit is contained in:
swaits committed 2026-11-20 14:14:01 -07:00
commit 535d2bebaa
265 files changed
+15157 -108

No files matched your search

+7 -1
View File
@@ -68,6 +68,11 @@ spec = importlib.util.spec_from_file_location(
check_datafiles = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check_datafiles)
spec = importlib.util.spec_from_file_location(
"check_places", os.path.join(ROOT, "tools", "check_places.py"))
check_places = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check_places)
def haversine_km(coords):
total, R = 0.0, 6371.0088
@@ -940,13 +945,14 @@ def main():
check_left_out(ROOT, trails, errors)
check_datafiles.check_datafiles(ROOT, trails, errors)
check_places.check(ROOT, trails, errors)
trail_numbers.check(ROOT, trail_ids, errors)
for dirpath, dirnames, filenames in os.walk(ROOT):
if ".git" in dirpath:
dirnames[:] = []
continue
dirnames[:] = [d for d in dirnames if d != ".git"]
dirnames[:] = [d for d in dirnames if d not in (".git", ".venv-places")]
for fn in filenames:
path = os.path.join(dirpath, fn)
if os.path.getsize(path) > MAX_BYTES: