Fix pylint warnings: mark run_engine() with @staticmethod
authorAlexander Popov <alex.popov@linux.com>
Fri, 24 Mar 2023 20:11:22 +0000 (23:11 +0300)
committerAlexander Popov <alex.popov@linux.com>
Fri, 24 Mar 2023 20:11:22 +0000 (23:11 +0300)
kconfig_hardened_check/test_engine.py

index 90c6fa8d57d71d1d9ca51a33a700321a8ce68166..4147da96db1355d628b83a40d93c8ac29ae89ab7 100644 (file)
@@ -16,7 +16,8 @@ import json
 from .engine import KconfigCheck, CmdlineCheck, populate_with_data, perform_checks
 
 class TestEngine(unittest.TestCase):
-    def run_engine(self, checklist, parsed_kconfig_options, parsed_cmdline_options, kernel_version):
+    @staticmethod
+    def run_engine(checklist, parsed_kconfig_options, parsed_cmdline_options, kernel_version):
         # populate the checklist with data
         populate_with_data(checklist, parsed_kconfig_options, 'kconfig')
         populate_with_data(checklist, parsed_cmdline_options, 'cmdline')