23 lines
722 B
Bash
23 lines
722 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
cd "$ROOT_DIR"
|
||
|
|
|
||
|
|
python3 - <<'PY'
|
||
|
|
from pathlib import Path
|
||
|
|
import re
|
||
|
|
|
||
|
|
files = [
|
||
|
|
'scripts/run_real_pipeline.sh',
|
||
|
|
'scripts/run_daily.sh',
|
||
|
|
'scripts/run_intel_pipeline.sh',
|
||
|
|
'scripts/run_intraday_price_watch.sh',
|
||
|
|
'scripts/run_intraday_discovery_watch.sh',
|
||
|
|
]
|
||
|
|
pattern = re.compile(r'materialize_daily_signals\.go.*official_import_signature_audit_query_lib\.go|official_import_signature_audit_query_lib\.go.*materialize_daily_signals\.go', re.S)
|
||
|
|
missing = [path for path in files if not pattern.search(Path(path).read_text())]
|
||
|
|
if missing:
|
||
|
|
raise SystemExit('missing helper include: ' + ', '.join(missing))
|
||
|
|
PY
|