style: reformat code

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-02-10 11:51:43 +01:00
parent 948927cfd3
commit be5f345a7c
30 changed files with 79 additions and 82 deletions

View File

@@ -23,7 +23,7 @@ from kiauh.utils.constants import (
COLOR_YELLOW,
COLOR_GREEN,
COLOR_RED,
)
)
from kiauh.utils.filesystem_utils import check_file_exist
from kiauh.utils.logger import Logger
from kiauh.utils.system_utils import check_package_install, install_system_packages

View File

@@ -285,7 +285,7 @@ def download_progress(block_num, block_size, total_size) -> None:
mb = 1024 * 1024
progress = int(percent / 5)
remaining = "-" * (20 - progress)
dl = f"\rDownloading: [{'#' * progress}{remaining}]{percent:.2f}% ({downloaded/mb:.2f}/{total_size/mb:.2f}MB)"
dl = f"\rDownloading: [{'#' * progress}{remaining}]{percent:.2f}% ({downloaded / mb:.2f}/{total_size / mb:.2f}MB)"
sys.stdout.write(dl)
sys.stdout.flush()