@@ -156,9 +156,9 @@ def get_functions_to_optimize(
156156 project_root : Path ,
157157 module_root : Path ,
158158) -> tuple [dict [Path , list [FunctionToOptimize ]], int ]:
159- assert (
160- sum ([ bool ( optimize_all ), bool ( replay_test ), bool ( file )]) <= 1
161- ), "Only one of optimize_all, replay_test, or file should be provided"
159+ assert sum ([ bool ( optimize_all ), bool ( replay_test ), bool ( file )]) <= 1 , (
160+ "Only one of optimize_all, replay_test, or file should be provided"
161+ )
162162 functions : dict [str , list [FunctionToOptimize ]]
163163 with warnings .catch_warnings ():
164164 warnings .simplefilter (action = "ignore" , category = SyntaxWarning )
@@ -412,6 +412,7 @@ def filter_functions(
412412 disable_logs : bool = False ,
413413) -> tuple [dict [Path , list [FunctionToOptimize ]], int ]:
414414 blocklist_funcs = get_blocklisted_functions ()
415+ logger .debug (f"Blocklisted functions: { blocklist_funcs } " )
415416 # Remove any function that we don't want to optimize
416417
417418 # Ignore files with submodule path, cache the submodule paths
@@ -463,6 +464,7 @@ def filter_functions(
463464 functions .remove (function )
464465 logger .debug (f"Skipping { function .function_name } in { path } as it has already been optimized" )
465466 continue
467+ logger .debug (f"blocklist: Optimizing { function .function_name } in { path } " )
466468
467469 filtered_modified_functions [file_path ] = functions
468470 functions_count += len (functions )
0 commit comments