fix ruff errors
This commit is contained in:
parent
13119be45e
commit
a79585f52f
|
@ -25,8 +25,14 @@ import requests
|
|||
import typer
|
||||
from requests_toolbelt import MultipartEncoder, MultipartEncoderMonitor
|
||||
from rich.console import Console
|
||||
from rich.progress import (BarColumn, DownloadColumn, Progress, TextColumn,
|
||||
TimeRemainingColumn, TransferSpeedColumn)
|
||||
from rich.progress import (
|
||||
BarColumn,
|
||||
DownloadColumn,
|
||||
Progress,
|
||||
TextColumn,
|
||||
TimeRemainingColumn,
|
||||
TransferSpeedColumn,
|
||||
)
|
||||
|
||||
HIKARI_BASE = "https://hikari.butaishoujo.moe"
|
||||
HIKARI_URL = f"{HIKARI_BASE}/upload"
|
||||
|
@ -116,7 +122,7 @@ def upload(file: Path,
|
|||
),
|
||||
hash: bool = typer.Option(
|
||||
True, "--hash/--no-hash", "-h/-H",
|
||||
help="Hash file before uploading to avoid having to send the whole file twice."
|
||||
help="Check file hash before uploading."
|
||||
)):
|
||||
|
||||
if copy:
|
||||
|
|
Loading…
Reference in a new issue