Skip to content

Fix ignored-pattern warning grammar in download CLI#4337

Merged
Wauplin merged 2 commits into
huggingface:mainfrom
wunianze666-netizen:fix/download-warning-grammar
Jun 11, 2026
Merged

Fix ignored-pattern warning grammar in download CLI#4337
Wauplin merged 2 commits into
huggingface:mainfrom
wunianze666-netizen:fix/download-warning-grammar

Conversation

@wunianze666-netizen

@wunianze666-netizen wunianze666-netizen commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • fix the ignored-pattern warning text in hf download from 'have being' to 'have been'
  • tighten the CLI regression test to assert the exact warning messages for both --include and --exclude

Why

These warnings are user-facing CLI output. Fixing the grammar makes the message clearer, and the stronger assertion helps prevent the typo from coming back.

Validation

  • ran a local regression script that exercises download() with ignored patterns and checks the exact warning messages
  • ran python -m py_compile src/huggingface_hub/cli/download.py tests/test_cli.py

Note

Low Risk
Copy-only CLI warning text plus a stricter unit test; no download behavior changes.

Overview
Fixes user-facing hf download warnings when positional filenames override --include / --exclude: the message now says "have been" instead of "have being".

The regression test test_download_with_ignored_patterns no longer only checks that some warning contains "Ignoring"; it asserts the exact text and order of both warnings.

Reviewed by Cursor Bugbot for commit ce0aab8. Bugbot is set up for automated code reviews on this repo. Configure here.

@hanouticelina hanouticelina left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Comment thread tests/test_cli.py Outdated
@bot-ci-comment

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit f1f2c43 into huggingface:main Jun 11, 2026
16 of 21 checks passed
@huggingface-hub-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.19.0 release.

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.

3 participants