55import click
66from find_reference_tests import find_reference_tests
77from i18n import TUILanguage , get_translation
8- from model import FuncToTest , TokenBudgetExceededException , UserCancelledException
8+ from model import (
9+ FuncToTest ,
10+ TokenBudgetExceededException ,
11+ UserCancelledException ,
12+ )
913from propose_test import propose_test
1014from tools .file_util import retrieve_file_content
1115from write_tests import write_and_print_tests
@@ -39,7 +43,9 @@ def run(self):
3943
4044 self .step3_write_and_print_tests (cases , files )
4145
42- def step1_propose_cases_and_reference_files (self ) -> Tuple [List [str ], List [str ]]:
46+ def step1_propose_cases_and_reference_files (
47+ self ,
48+ ) -> Tuple [List [str ], List [str ]]:
4349 """
4450 Propose test cases and reference files for a specified function.
4551
@@ -60,7 +66,9 @@ def step1_propose_cases_and_reference_files(self) -> Tuple[List[str], List[str]]
6066 )
6167
6268 ref_files = find_reference_tests (
63- self .repo_root , self .func_to_test .func_name , self .func_to_test .file_path
69+ self .repo_root ,
70+ self .func_to_test .func_name ,
71+ self .func_to_test .file_path ,
6472 )
6573
6674 if ref_files :
@@ -122,7 +130,7 @@ def step2_edit_cases_and_reference_files(
122130 try :
123131 retrieve_file_content (file_path = ref_file , root_path = self .repo_root )
124132 valid_files .append (ref_file )
125- except Exception as e :
133+ except Exception :
126134 invalid_files .append (ref_file )
127135
128136 # Print summary
0 commit comments