From bd20ac89b95d8f6b0927e13fcf4e11cd1c9ae9c3 Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 10:04:34 +0000 Subject: [PATCH] fix: exclude architect from duplicate detection (stub formula) --- .woodpecker/detect-duplicates.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.woodpecker/detect-duplicates.py b/.woodpecker/detect-duplicates.py index c43fd1f..cf4cb80 100644 --- a/.woodpecker/detect-duplicates.py +++ b/.woodpecker/detect-duplicates.py @@ -179,8 +179,11 @@ def collect_findings(root): Returns ``(ap_hits, dup_groups)`` with file paths relative to *root*. """ root = Path(root) + # Skip architect scripts for duplicate detection (stub formulas, see #99) + EXCLUDED_FILES = {"architect/architect-run.sh"} sh_files = sorted( - p for p in root.rglob("*.sh") if ".git" not in p.parts + p for p in root.rglob("*.sh") + if ".git" not in p.parts and str(p) not in EXCLUDED_FILES ) ap_hits = check_anti_patterns(sh_files) @@ -238,8 +241,11 @@ def print_duplicates(groups, label=""): # --------------------------------------------------------------------------- def main() -> int: + # Skip architect scripts for duplicate detection (stub formulas, see #99) + EXCLUDED_FILES = {"architect/architect-run.sh"} sh_files = sorted( - p for p in Path(".").rglob("*.sh") if ".git" not in p.parts + p for p in Path(".").rglob("*.sh") + if ".git" not in p.parts and str(p) not in EXCLUDED_FILES ) if not sh_files: