Do not write Python bytecode into the tree
Validate / validate (push) Canceled after 0s

validate.py imports build_index.py; stop it creating
tools/__pycache__ and ignore bytecode files.
This commit is contained in:
swaits committed 2026-11-09 16:25:56 -07:00
1 parent 4581f9dc26
commit b0eab384d5
3 files changed
+6 -1

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
__pycache__/
*.pyc
Binary file not shown.
+4 -1
View File
@@ -5,12 +5,15 @@ Python 3 standard library only. Run from anywhere:
python3 tools/validate.py
Prints "OK <n> trails" and exits 0, or prints one error per line and exits 1.
"""
import sys
sys.dont_write_bytecode = True
import importlib.util
import json
import math
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MAX_BYTES = 50 * 1024 * 1024