From 9ba2f7e5a316f8546cf045b1c4f43459c22e7aa2 Mon Sep 17 00:00:00 2001 From: Shay Palachy Date: Fri, 29 May 2026 08:46:59 +0300 Subject: [PATCH] fix(publish): move HF credentials lookup to ~/.config/huggingface/credentials Co-Authored-By: Claude Sonnet 4.6 --- scripts/publish_hf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish_hf.py b/scripts/publish_hf.py index 4051e98..04fb3a1 100644 --- a/scripts/publish_hf.py +++ b/scripts/publish_hf.py @@ -60,11 +60,11 @@ from pathlib import Path from typing import Final -_CREDENTIALS_FILE: Final[Path] = Path.home() / ".config" / "leadforge" / "credentials" +_CREDENTIALS_FILE: Final[Path] = Path.home() / ".config" / "huggingface" / "credentials" def _read_token_from_credentials_file() -> str | None: - """Read HF_TOKEN from ``~/.config/leadforge/credentials`` if present. + """Read HF_TOKEN from ``~/.config/huggingface/credentials`` if present. The file uses ``KEY=VALUE`` lines; blank lines and lines starting with ``#`` are ignored. Returns the first value for ``HF_TOKEN`` found, or