fix: exclude generated artifacts from wiki sync
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user