Skip to content

Instantly share code, notes, and snippets.

View vjeranc's full-sized avatar

Vjeran Crnjak vjeranc

View GitHub Profile
@vjeranc
vjeranc / inline_helpers.py
Created January 15, 2026 19:57
if helper called only inside 1 fn, inline def
import ast
import os
import re
from collections import defaultdict
from typing import Any
def get_project_files(root: str = ".") -> list[str]:
files: list[str] = []
for dirpath, dirnames, filenames in os.walk(root):