INNER CODE UNIT · Python

read_file_contents

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

def read_file_contents(files):
    """Read staged contents of each file (from git index, not working tree)."""
    parts = []
    for f in files:
        content = run_git("show", f":{f}")
        if content is not None:
            parts.append(f"--- FILE: {f} ---\n{content}\n--- END: {f} ---")
    return "\n\n".join(parts)


def load_style_guides():
    """Load all style guide markdown files."""
    style_dir = REPO_ROOT / "style_guides"
    if not style_dir.is_dir():
        return ""

    parts = []
    for guide in sorted(style_dir.glob("*.md")):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…