From: Alexander Popov Date: Mon, 13 May 2024 16:40:54 +0000 (+0300) Subject: Style fixes for engine import X-Git-Tag: v0.6.10~67^2~6 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b62c60f9ca2e000daca07201bd19dec18e02d718;p=kconfig-hardened-check.git Style fixes for engine import --- diff --git a/kernel_hardening_checker/__init__.py b/kernel_hardening_checker/__init__.py index 182f76f..7a90a02 100644 --- a/kernel_hardening_checker/__init__.py +++ b/kernel_hardening_checker/__init__.py @@ -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: diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index 0e2bb74..d910698 100644 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -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: diff --git a/kernel_hardening_checker/test_engine.py b/kernel_hardening_checker/test_engine.py index d1745b3..2244181 100644 --- a/kernel_hardening_checker/test_engine.py +++ b/kernel_hardening_checker/test_engine.py @@ -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):