Ignore a few more files and folders
- ID
165514b- date
2025-12-06 14:31:39+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
ab7365b- message
Ignore a few more files and folders- changed files
3 files, 17 additions, 3 deletions
Changed files
CHANGELOG.md (1497) → CHANGELOG.md (1589)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8fde25b..b19323a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## v13 - 2025-12-06
+
+Mark a couple more folders/files as ignored in `StaticSiteTestSuite`.
+
## v12 - 2025-12-06
Add checks for fuzzy tag matching to `StaticSiteTestSuite`.
src/chives/__init__.py (391) → src/chives/__init__.py (391)
diff --git a/src/chives/__init__.py b/src/chives/__init__.py
index a276d0a..663bd3a 100644
--- a/src/chives/__init__.py
+++ b/src/chives/__init__.py
@@ -11,4 +11,4 @@ I share across multiple sites.
"""
-__version__ = "12"
+__version__ = "13"
src/chives/static_site_tests.py (6462) → src/chives/static_site_tests.py (6775)
diff --git a/src/chives/static_site_tests.py b/src/chives/static_site_tests.py
index 2a1712f..e97ce2c 100644
--- a/src/chives/static_site_tests.py
+++ b/src/chives/static_site_tests.py
@@ -91,9 +91,11 @@ class StaticSiteTestSuite[M](ABC):
else:
if top_level_folder in {
".git",
+ ".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
+ "data",
"scripts",
"static",
"tests",
@@ -105,7 +107,13 @@ class StaticSiteTestSuite[M](ABC):
if f == ".DS_Store":
continue
- if root == site_root and f in {"Icon\r", ".gitignore", "index.html"}:
+ if root == site_root and f in {
+ "Icon\r",
+ ".gitignore",
+ "index.html",
+ "README.md",
+ "TODO.md",
+ }:
continue
if root == site_root and f.endswith(".js"):
@@ -124,7 +132,9 @@ class StaticSiteTestSuite[M](ABC):
paths_in_metadata = self.list_paths_in_metadata(metadata)
paths_saved_locally = self.list_paths_saved_locally(site_root)
- assert paths_in_metadata - paths_saved_locally == set()
+ assert paths_in_metadata - paths_saved_locally == set(), (
+ f"Paths in metadata not saved locally: {paths_in_metadata - paths_saved_locally}"
+ )
def test_every_local_file_is_in_metadata(
self, metadata: M, site_root: Path