ref: Auto-fix ruff rules in tests (#4154)

This commit is contained in:
Christophe Bornet 2024-10-16 17:42:36 +02:00 • committed by GitHub
commit 45c8f98692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 359 additions and 456 deletions

View file

@ -6,6 +6,7 @@
# ]
# ///
import argparse
import sys
from huggingface_hub import HfApi, list_models
from rich import print
@ -23,11 +24,11 @@ space = parsed_args.space
if not space:
print("Please provide a space to restart.")
exit()
sys.exit()
if not parsed_args.token:
print("Please provide an API token.")
exit()
sys.exit()
# Or configure a HfApi client
hf_api = HfApi(