fix: test break on docs version and data compaction (#900)
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled

Upgrade to:
- pandas==3.01
- fastapi[standard-no-fastapi-cloud-cli]==0.132.0
- fastapi_cli==0.0.23
- MonsterUI==1.0.44
- uvicorn==0.41.0

Close database in database fixture on teardown.

Fix file exclusion in hash and version date generation.

Update version information in documentation.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2026-02-24 07:37:22 +01:00
committed by GitHub
parent d446274129
commit 90e2e8af7e
10 changed files with 110 additions and 91 deletions

View File

@@ -1 +1 @@
VERSION_DATE = "2026-02-23T11:41:01Z"
VERSION_DATE = "2026-02-24T06:03:36Z"

View File

@@ -60,6 +60,8 @@ class HashConfig:
for path in self.paths:
if not path.exists():
raise ValueError(f"Path does not exist: {path}")
# Normalize exclude files (for easy comparison)
self.excluded_files = {p.resolve() for p in self.excluded_files}
def is_excluded_dir(path: Path, patterns: set[str]) -> bool:
@@ -104,7 +106,7 @@ def collect_files(config: HashConfig) -> list[Path]:
for root in config.paths:
for p in sorted(root.rglob("*")):
# Skip excluded directories
# Skip directories that match exclusion
if p.is_dir() and is_excluded_dir(p, config.excluded_dir_patterns):
continue
@@ -112,13 +114,19 @@ def collect_files(config: HashConfig) -> list[Path]:
if any(is_excluded_dir(parent, config.excluded_dir_patterns) for parent in p.parents):
continue
# Skip excluded files
if p.resolve() in config.excluded_files:
if not p.is_file():
continue
# Collect only allowed file types
if p.is_file() and p.suffix.lower() in config.allowed_suffixes:
collected_files.append(p.resolve())
if p.suffix.lower() not in config.allowed_suffixes:
continue
resolved_p = p.resolve()
# Skip excluded files (already resolved in config)
if resolved_p in config.excluded_files:
continue
collected_files.append(resolved_p)
return sorted(collected_files)