[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-25 06:06:00 +00:00
commit f501ab8fc8

View file

@ -208,9 +208,7 @@ def _resolve_local_gguf_child(repo_root: Path, gguf_filename: str) -> Path:
or gguf_filename.startswith(("/", "\\"))
or "\\" in gguf_filename
):
raise RuntimeError(
"gguf_filename must be a relative file path inside repo_id."
)
raise RuntimeError("gguf_filename must be a relative file path inside repo_id.")
rel = PurePosixPath(gguf_filename)
if any(part in ("", ".", "..") for part in rel.parts):
raise RuntimeError(