numzoo / scripts /syntax.sh
goumsss's picture
scripts: remove hardcoded paths, clean up run.sh kill logic
d34e1e5
Raw
History Blame Contribute Delete
315 Bytes
#!/bin/bash
PYTHON="${HOME}/miniforge3/bin/python3"
cd "$(dirname "$0")/.."
$PYTHON -c "
import ast, sys
for f in ['app.py','image_generator.py','math_engine.py']:
try:
ast.parse(open(f).read())
print(f'✅ {f}')
except SyntaxError as e:
print(f'❌ {f}: {e}')
sys.exit(1)
"