fix ruff errors

This commit is contained in:
odrling 2024-03-22 00:34:36 +01:00
parent 13119be45e
commit a79585f52f
Signed by: odrling
GPG key ID: 2D8C2F151EDB7392

View file

@ -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: