diff --git a/megalinter/utilstest.py b/megalinter/utilstest.py index 904bfcb45e6..20669fe5ce3 100644 --- a/megalinter/utilstest.py +++ b/megalinter/utilstest.py @@ -179,7 +179,9 @@ def test_linter_success(linter, test_self): len(mega_linter.linters) > 0, "Linters have been created and run" ) # Check console output - logging.info(f">>> LLA descriptor_id {linter.linter_name} linter_name {linter.linter_name} ") + logging.info( + f">>> LLA descriptor_id {linter.linter_name} linter_name {linter.linter_name} " + ) if linter.cli_lint_mode == "file": if len(linter.file_names_regex) > 0 and len(linter.file_extensions) == 0: @@ -188,7 +190,9 @@ def test_linter_success(linter, test_self): ) else: test_self.assertRegex(output, rf"\[{linter_name}\] .*good.* - SUCCESS") - elif ((linter.descriptor_id != "SPELL") and (linter.linter_name != "php-cs-fixer")): # This log doesn't appear in SPELL linters + elif (linter.descriptor_id != "SPELL") and ( + linter.linter_name != "php-cs-fixer" + ): # This log doesn't appear in SPELL linters test_self.assertRegex( output, rf"Linted \[{linter.descriptor_id}\] files with \[{linter_name}\] successfully", @@ -199,7 +203,9 @@ def test_linter_success(linter, test_self): f"{tmp_report_folder}{os.path.sep}linters_logs" f"{os.path.sep}{report_file_name}" ) - if linter.linter_name != "php-cs-fixer": # This log doesn't appear in PHP_PHPCSFIXER linter + if ( + linter.linter_name != "php-cs-fixer" + ): # This log doesn't appear in PHP_PHPCSFIXER linter test_self.assertTrue( os.path.isfile(text_report_file), f"Unable to find text report {text_report_file}",