@@ -95,9 +95,7 @@ def formatter_report(formatter: str, report_name: str, cache: bool = True) -> in
9595 main_dir = Path (__file__ ).parent .parent .parent
9696 formatter_dir = main_dir / "tests" / "formatter" / "formatters" / formatter
9797 with working_directory (formatter_dir ):
98- format_files (
99- ["source" ], select = [formatter ], overwrite = False , return_result = True , silent = True , no_cache = not cache
100- )
98+ format_files (["source" ], select = [formatter ], overwrite = False , return_result = True , silent = True , cache = cache )
10199 source_dir = formatter_dir / "source"
102100 return len (list (source_dir .iterdir ()))
103101
@@ -114,7 +112,7 @@ def linter_report(report_name: str, **kwargs) -> int: # noqa: ARG001
114112@performance_report (runs = 2 )
115113def lint_large_file (report_name : str , lint_dir : Path , ** kwargs ) -> int : # noqa: ARG001
116114 with working_directory (lint_dir ):
117- check_files (return_result = True , select = ["ALL" ], no_cache = True , ** kwargs )
115+ check_files (return_result = True , select = ["ALL" ], cache = False , ** kwargs )
118116 return 1
119117
120118
@@ -142,10 +140,10 @@ def generate_large_file(template_path: Path, output_dir: Path) -> None:
142140 # So we can generate reports for multiple past versions. It is important since the actual seconds change depending
143141 # on where we run the script from, but the % change between version should be comparable. Also we can use new tests
144142 # on old versions
145- linter_report (report_name = "with_print_cache" , no_cache = False )
146- linter_report (report_name = "with_print_no_cache" , no_cache = True )
147- linter_report (report_name = "without_print_cache" , silent = True , no_cache = False )
148- linter_report (report_name = "without_print_no_cache" , silent = True , no_cache = True )
143+ linter_report (report_name = "with_print_cache" , cache = True )
144+ linter_report (report_name = "with_print_no_cache" , cache = False )
145+ linter_report (report_name = "without_print_cache" , silent = True , cache = True )
146+ linter_report (report_name = "without_print_no_cache" , silent = True , cache = False )
149147 for formatter in FORMATTERS :
150148 formatter_report (formatter = formatter , report_name = formatter )
151149 formatter_report (formatter = formatter , report_name = f"{ formatter } _no_cache" , cache = False )
0 commit comments