#!/bin/sh
# Run semgrep if installed, skip gracefully if not
if command -v semgrep >/dev/null 2>&1; then
    semgrep --config=.semgrep.yml --error --quiet src/
else
    echo "semgrep not installed, skipping (install with: pip install semgrep)"
fi
