test: skip docs/ in memory-dir-paths sweep (#291)
The regression test from #290 walks the filesystem via Path.rglob, so docs/plans/*.md files (gitignored, created by internal planning) trip the assertion on any dev machine that has run ce:plan in this repo. Fresh clones and CI never see them, but local runs fail. Adding docs to skip_dirs keeps the guard narrow to first-class source files while letting internal planning docs reference old paths verbatim. Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This commit is contained in:
@@ -37,7 +37,7 @@ class TestVersionConsistency(unittest.TestCase):
|
||||
|
||||
def test_no_stray_hardcoded_memory_dir_paths(self) -> None:
|
||||
allowed_suffixes = {".md", ".py", ".sh", ".txt", ".yml", ".yaml", ".json"}
|
||||
skip_dirs = {".git", "assets", "fixtures"}
|
||||
skip_dirs = {".git", "assets", "fixtures", "docs"}
|
||||
offenders = []
|
||||
|
||||
for path in ROOT.rglob("*"):
|
||||
|
||||
Reference in New Issue
Block a user