Skip to content

Add HF Hub named refs compatibility - #31

Merged
DiTo97 merged 3 commits into
masterfrom
issue/30-hf-hub-batch5-named-refs
Mar 12, 2026
Merged

Add HF Hub named refs compatibility#31
DiTo97 merged 3 commits into
masterfrom
issue/30-hf-hub-batch5-named-refs

Conversation

@DiTo97

@DiTo97 DiTo97 commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add lightweight branch/tag ref storage plus Hub API endpoints for list_repo_refs, create_branch, delete_branch, create_tag, and delete_tag
  • resolve branch and tag names through the revision-aware read paths so repo info, tree listing, and downloads accept named refs backed by current-head commits
  • add batch-5 pytest coverage and advance the compatibility roadmap/checklist to issue HF Hub batch 5: named refs compatibility聽#30

Test plan

  • uv run --with pytest --with huggingface_hub --with requests pytest tests/integration/hf_hub/test_refs_batch5.py -q
  • uv run --with pytest --with huggingface_hub --with requests pytest tests/integration/hf_hub -q
  • cargo fmt --all -- --check
  • cargo test --workspace

Closes #30.

馃 Generated with Claude Code

DiTo97 and others added 3 commits March 12, 2026 05:19
Implement lightweight branch and tag refs so huggingface_hub can list, create, delete, and read through named revisions without widening the current storage model beyond head-backed refs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Record the active batch-5 pull request in the roadmap and checklist so the compatibility tracker stays aligned with issue #30 and the draft PR lifecycle.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Track the lightweight repo workflow contract in version control and limit ignores to Claude worktrees so active batch closeout changes live in the Batch 5 PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DiTo97
DiTo97 marked this pull request as ready for review March 12, 2026 10:15
@DiTo97
DiTo97 merged commit 56280f0 into master Mar 12, 2026
2 checks passed
@DiTo97
DiTo97 deleted the issue/30-hf-hub-batch5-named-refs branch March 12, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HF Hub batch 5: named refs compatibility

1 participant