Style fixes for engine import
authorAlexander Popov <alex.popov@linux.com>
Mon, 13 May 2024 16:40:54 +0000 (19:40 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 13 May 2024 16:44:21 +0000 (19:44 +0300)
kernel_hardening_checker/__init__.py
kernel_hardening_checker/checks.py
kernel_hardening_checker/test_engine.py

index 182f76fd7fdf67083747ac340279b26d130408d6..7a90a0247fad077fe208d7cea9545a1fa96ee1ff 100644 (file)
@@ -18,7 +18,8 @@ import re
 import json
 from .__about__ import __version__
 from .checks import add_kconfig_checks, add_cmdline_checks, normalize_cmdline_options, add_sysctl_checks
-from .engine import StrOrNone, TupleOrNone, ChecklistObjType, print_unknown_options, populate_with_data, perform_checks, override_expected_value
+from .engine import StrOrNone, TupleOrNone, ChecklistObjType
+from .engine import print_unknown_options, populate_with_data, perform_checks, override_expected_value
 
 
 def _open(file: str, *args, **kwargs) -> TextIO:
index 0e2bb7443a426975bfea0a59eeb5a566e7446534..d910698c7e26a965517c8a726074cbc5a871f008 100644 (file)
@@ -11,8 +11,8 @@ This module contains knowledge for checks.
 # pylint: disable=missing-function-docstring,line-too-long,invalid-name
 # pylint: disable=too-many-branches,too-many-statements,too-many-locals
 
-from .engine import StrOrNone, ChecklistObjType, KconfigCheck, CmdlineCheck, SysctlCheck, VersionCheck, OR, AND
 from typing import List
+from .engine import StrOrNone, ChecklistObjType, KconfigCheck, CmdlineCheck, SysctlCheck, VersionCheck, OR, AND
 
 
 def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None:
index d1745b3c9190ac5ba9d7bf709e7da57144c62c4c..22441819da055bcc3475bd12f4718bf637ddf773 100644 (file)
@@ -16,7 +16,8 @@ import sys
 import json
 import inspect
 from typing import Optional, List, Dict, Tuple
-from .engine import ChecklistObjType, KconfigCheck, CmdlineCheck, SysctlCheck, VersionCheck, OR, AND, populate_with_data, perform_checks, override_expected_value
+from .engine import ChecklistObjType, KconfigCheck, CmdlineCheck, SysctlCheck, VersionCheck, OR, AND
+from .engine import populate_with_data, perform_checks, override_expected_value
 
 
 class TestEngine(unittest.TestCase):