INNER CODE UNIT · Python

Repo

labsai/EDDI · scripts/bump-version.py:106

class Repo:
    def __init__(self, root: Path):
        self.root = root
        cfg = json.loads(read(root / POINTERS))
        self.roots = cfg["roots"]
        self.extensions = tuple(cfg["extensions"])
        self.exclude = cfg["exclude"]
        # ASCII, so \d and \w mean what they mean in Java's regex.
        self.patterns = [re.compile(p, re.ASCII) for p in cfg["patterns"]]
        self.changed: list[str] = []

    # ── discovery ────────────────────────────────────────────────────────────
    def pointer_files(self) -> list[Path]:
        files: list[Path] = []
        for entry in self.roots:
            base = self.root / entry
            candidates = [base] if base.is_file() else sorted(p for p in base.rglob("*") if p.is_file())
            for path in candidates:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…