diff --git a/osaca/data/create_db_entry.py b/osaca/data/create_db_entry.py index fc96d8b..c7b61ae 100755 --- a/osaca/data/create_db_entry.py +++ b/osaca/data/create_db_entry.py @@ -29,7 +29,9 @@ class EntryBuilder: comment = " # " + comment else: comment = "" - description = "- name: {}{}\n operands: {}\n".format(instruction_name, comment, "[]" if len(operand_types) == 0 else "") + description = "- name: {}{}\n operands: {}\n".format( + instruction_name, comment, "[]" if len(operand_types) == 0 else "" + ) for ot in operand_types: if ot == "imd": diff --git a/tests/test_cli.py b/tests/test_cli.py index 8ab1f41..a199590 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -29,7 +29,9 @@ class TestCLI(unittest.TestCase): def test_check_arguments(self): parser = osaca.create_parser(parser=ErrorRaisingArgumentParser()) - args = parser.parse_args(["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")]) + args = parser.parse_args( + ["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")] + ) with self.assertRaises(ValueError): osaca.check_arguments(args, parser) args = parser.parse_args( @@ -234,7 +236,9 @@ class TestCLI(unittest.TestCase): # Run tests with --lines option parser = osaca.create_parser() kernel_x86 = "triad_x86_iaca.s" - args_base = parser.parse_args(["--arch", "csx", self._find_test_file(kernel_x86)]) + args_base = parser.parse_args( + ["--arch", "csx", self._find_test_file(kernel_x86)] + ) output_base = StringIO() osaca.run(args_base, output_file=output_base) output_base = output_base.getvalue().split("\n")[8:]