fix: exclude generated artifacts from wiki sync
Some checks failed
Dependency Audit / dependency-audit (push) Has been cancelled
Security Audit / security-audit (push) Has been cancelled

This commit is contained in:
2026-07-28 12:52:46 +02:00
parent 163b35c0af
commit 6afb8fea76
2 changed files with 64 additions and 1 deletions

View File

@@ -27,12 +27,17 @@ EXCLUDED_PARTS = {
".git",
".gitea",
".venv",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"node_modules",
"__pycache__",
"audit-reports",
"dist",
"build",
".cache",
".module-test-build",
"runtime",
}
EXCLUDED_NAMES = {
"package-lock.json",
@@ -40,6 +45,14 @@ EXCLUDED_NAMES = {
"yarn.lock",
"uv.lock",
}
REPO_DOC_NAME_TOKENS = {
"architecture",
"backlog",
"plan",
"roadmap",
"todo",
"workflow",
}
@dataclasses.dataclass(frozen=True)
@@ -216,7 +229,8 @@ def is_repo_doc(repo_root_path: pathlib.Path, path: pathlib.Path) -> bool:
return False
if rel.parts[0] in {"docs", "doc", "codex"} and path.suffix.lower() in {".md", ".txt", ".csv"}:
return True
if re.search(r"(backlog|todo|roadmap|plan|architecture|workflow|manifest)", path.name, re.IGNORECASE):
name_tokens = set(re.split(r"[^a-z0-9]+", path.stem.lower()))
if name_tokens & REPO_DOC_NAME_TOKENS:
return True
return False