INNER CODE UNIT · Python

eprint

panther-labs/panther-analysis · .scripts/claude_review.py:15

def eprint(*args, **kwargs):
    """Print to stderr so output is visible when run via pre-commit."""
    print(*args, file=sys.stderr, **kwargs)

# ─── Configuration ───────────────────────────────────────────────
REVIEW_EXTENSIONS = {".py", ".yml", ".yaml", ".sql"}
EXCLUDE_PATTERNS = re.compile(r"\.env$|\.pem$|\.key$|credentials\.json|secrets\.json|\.secret")
MAX_FILES = 100
REPO_ROOT = Path(__file__).resolve().parent.parent


def run_git(*args):
    """Run a git command and return stdout, or None on failure."""
    try:
        result = subprocess.run(
            ["git", *args],
            capture_output=True,
            text=True,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…