Skip to content

Commit b30fc56

Browse files
chore: use .markdownlintignore for lint exclusions (#190) (#440)
Add .markdownlintignore (CHANGELOG.md, releases/, docs/announcements/) and remove CHANGELOG.md from validate_docs.py gather_default_paths(). Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c858d41 commit b30fc56

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.markdownlintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CHANGELOG.md
2+
releases/
3+
docs/announcements/

scripts/dev/validate_docs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ def gather_default_paths() -> list[str]:
3636
if docs_root.exists():
3737
candidates.extend(p for p in docs_root.rglob("*.md") if not (p.parts[1:2] and p.parts[1] in exclude_dirs))
3838

39-
for filename in ("README.md", "CHANGELOG.md"):
40-
path = Path(filename)
41-
if path.is_file():
42-
candidates.append(path)
39+
readme = Path("README.md")
40+
if readme.is_file():
41+
candidates.append(readme)
4342

4443
unique_paths = sorted(set(candidates))
4544
return [str(path) for path in unique_paths]

0 commit comments

Comments
 (0)