Skip to content

Commit 93136ef

Browse files
committed
(#3364) disable rich in all cases
1 parent d46c5fa commit 93136ef

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

src/huggingface_hub/cli/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
_inquirer_py_available = False
5555

5656

57-
auth_app = typer.Typer(help="Manage authentication (login, logout, etc.)")
57+
auth_app = typer.Typer(help="Manage authentication (login, logout, etc.)", rich_markup_mode=None)
5858

5959

6060
def _api() -> HfApi:

src/huggingface_hub/cli/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _inner(*args, **kwargs):
6262
return _inner
6363

6464

65-
cache_app = typer.Typer(help="Manage local cache directory.")
65+
cache_app = typer.Typer(help="Manage local cache directory.", rich_markup_mode=None)
6666

6767

6868
@cache_app.command("scan", help="Scan the cache directory")

src/huggingface_hub/cli/hf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from huggingface_hub.cli.upload_large_folder import upload_large_folder
3030

3131

32-
app = typer.Typer(add_completion=False, no_args_is_help=True, help="Hugging Face Hub CLI")
32+
app = typer.Typer(add_completion=False, no_args_is_help=True, help="Hugging Face Hub CLI", rich_markup_mode=None)
3333

3434

3535
# top level single commands (defined in their respective files)

src/huggingface_hub/cli/jobs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
SUGGESTED_FLAVORS = [item.value for item in SpaceHardware if item.value != "zero-a10g"]
7373

7474

75-
jobs_app = typer.Typer(help="Run and manage Jobs on the Hub.")
75+
jobs_app = typer.Typer(help="Run and manage Jobs on the Hub.", rich_markup_mode=None)
7676

7777

7878
@jobs_app.command("run", help="Run a Job")
@@ -359,7 +359,9 @@ def jobs_cancel(
359359
api.cancel_job(job_id=job_id, namespace=namespace)
360360

361361

362-
uv_app = typer.Typer(help="Run UV scripts (Python with inline dependencies) on HF infrastructure")
362+
uv_app = typer.Typer(
363+
help="Run UV scripts (Python with inline dependencies) on HF infrastructure", rich_markup_mode=None
364+
)
363365
jobs_app.add_typer(uv_app, name="uv")
364366

365367

@@ -480,7 +482,7 @@ def jobs_uv_run(
480482
print(log)
481483

482484

483-
scheduled_app = typer.Typer(help="Create and manage scheduled Jobs on the Hub.")
485+
scheduled_app = typer.Typer(help="Create and manage scheduled Jobs on the Hub.", rich_markup_mode=None)
484486
jobs_app.add_typer(scheduled_app, name="scheduled")
485487

486488

@@ -750,7 +752,9 @@ def scheduled_resume(
750752
api.resume_scheduled_job(scheduled_job_id=scheduled_job_id, namespace=namespace)
751753

752754

753-
scheduled_uv_app = typer.Typer(help="Schedule UV scripts (Python with inline dependencies) on HF infrastructure")
755+
scheduled_uv_app = typer.Typer(
756+
help="Schedule UV scripts (Python with inline dependencies) on HF infrastructure", rich_markup_mode=None
757+
)
754758
scheduled_app.add_typer(scheduled_uv_app, name="uv")
755759

756760

src/huggingface_hub/cli/repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434

3535
logger = logging.get_logger(__name__)
3636

37-
repo_app = typer.Typer(help="Manage repos on the Hub.")
38-
tag_app = typer.Typer(help="Manage tags for a repo on the Hub.")
37+
repo_app = typer.Typer(help="Manage repos on the Hub.", rich_markup_mode=None)
38+
tag_app = typer.Typer(help="Manage tags for a repo on the Hub.", rich_markup_mode=None)
3939
repo_app.add_typer(tag_app, name="tag")
4040

4141

src/huggingface_hub/cli/repo_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
logger = logging.get_logger(__name__)
4848

4949

50-
repo_files_app = typer.Typer(help="Manage files in a repo on the Hub.")
50+
repo_files_app = typer.Typer(help="Manage files in a repo on the Hub.", rich_markup_mode=None)
5151

5252

5353
@repo_files_app.command("delete")

0 commit comments

Comments
 (0)