mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
Remove unused kwarg for diffing
This commit is contained in:
parent
b6491df6aa
commit
ce7f53c363
2 changed files with 7 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ def get_functions_to_optimize(code_root, optimize_all=False, file=None, function
|
|||
return {file: {function}}
|
||||
return function_path_names
|
||||
else:
|
||||
modified_lines = get_git_diff(uncommitted_changes=False)
|
||||
modified_lines = get_git_diff()
|
||||
|
||||
for path in modified_lines:
|
||||
if not os.path.exists(path):
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ from codeflash.code_utils.code_utils import get_module_name_from_file
|
|||
from codeflash.discovery.discover_unit_tests import discover_unit_tests
|
||||
from codeflash.discovery.functions_to_optimize import get_functions_to_optimize
|
||||
from codeflash.optimization.function_context import get_function_variables_definition
|
||||
from codeflash.verification.verifier import generate_tests
|
||||
from codeflash.verification.verification_utils import get_test_file_path
|
||||
from codeflash.verification.test_runner import run_tests
|
||||
from codeflash.verification.verification_utils import get_test_file_path
|
||||
from codeflash.verification.verifier import generate_tests
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
@ -73,3 +73,7 @@ def main() -> None:
|
|||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(main())
|
||||
|
|
|
|||
Loading…
Reference in a new issue