From 546aa0457be1ef71638fca311cc8e8afa7861995 Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Wed, 19 Jun 2024 12:23:08 +0000 Subject: [PATCH] apply pre-commit fixes --- src/otaclient/app/boot_control/_common.py | 7 ++----- src/otaclient/app/boot_control/_grub.py | 2 +- src/otaclient/app/boot_control/_jetson_cboot.py | 7 ++----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/otaclient/app/boot_control/_common.py b/src/otaclient/app/boot_control/_common.py index c5d394941..fb2b6002a 100644 --- a/src/otaclient/app/boot_control/_common.py +++ b/src/otaclient/app/boot_control/_common.py @@ -22,13 +22,10 @@ from pathlib import Path from typing import Callable, Literal, Optional, Union -from otaclient.app.configs import config as cfg from otaclient import cmdhelper +from otaclient.app.configs import config as cfg from otaclient_api.v2 import types as api_types -from otaclient_common.common import ( - read_str_from_file, - write_str_to_file_sync, -) +from otaclient_common.common import read_str_from_file, write_str_to_file_sync logger = logging.getLogger(__name__) diff --git a/src/otaclient/app/boot_control/_grub.py b/src/otaclient/app/boot_control/_grub.py index 011f66aae..86145f155 100644 --- a/src/otaclient/app/boot_control/_grub.py +++ b/src/otaclient/app/boot_control/_grub.py @@ -42,8 +42,8 @@ from subprocess import CalledProcessError from typing import ClassVar, Dict, Generator, List, Optional, Tuple -from otaclient.app import errors as ota_errors from otaclient import cmdhelper +from otaclient.app import errors as ota_errors from otaclient.app.boot_control._common import ( OTAStatusFilesControl, SlotMountHelper, diff --git a/src/otaclient/app/boot_control/_jetson_cboot.py b/src/otaclient/app/boot_control/_jetson_cboot.py index 8e0e38a15..1f2e15cb8 100644 --- a/src/otaclient/app/boot_control/_jetson_cboot.py +++ b/src/otaclient/app/boot_control/_jetson_cboot.py @@ -25,12 +25,9 @@ from pathlib import Path from typing import Generator, Optional -from otaclient.app import errors as ota_errors from otaclient import cmdhelper -from otaclient.app.boot_control._common import ( - OTAStatusFilesControl, - SlotMountHelper, -) +from otaclient.app import errors as ota_errors +from otaclient.app.boot_control._common import OTAStatusFilesControl, SlotMountHelper from otaclient.app.boot_control._jetson_common import ( FirmwareBSPVersionControl, NVBootctrlCommon,