Skip to content

Commit 2a3c975

Browse files
committed
fix linting
1 parent 2190963 commit 2a3c975

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,9 +1778,8 @@ def run_and_parse_tests(
17781778
)
17791779
# Return the test results for async throughput calculation
17801780
return results, coverage_results, results if isinstance(results, TestResults) else None
1781-
else:
1782-
results, coverage_results = parse_line_profile_results(line_profiler_output_file=line_profiler_output_file)
1783-
return results, coverage_results, None
1781+
results, coverage_results = parse_line_profile_results(line_profiler_output_file=line_profiler_output_file)
1782+
return results, coverage_results, None
17841783

17851784
def submit_test_generation_tasks(
17861785
self,

codeflash/verification/parse_test_output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def calculate_async_throughput_from_stdout(stdout: str, async_function_names: se
8383

8484

8585
def calculate_function_throughput_from_stdout(stdout: str, function_name: str) -> int:
86-
"""A completed execution is defined as having both a start tag and matching end tag:
86+
"""Calculate function throughput from stdout. A completed execution is defined as having both a start tag and matching end tag.
87+
8788
Start: !$######test_module:test_function:function_name:loop_index:iteration_id######$!
8889
End: !######test_module:test_function:function_name:loop_index:iteration_id######!
8990
"""

codeflash/verification/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def pytest_runtest_setup(self, item: pytest.Item) -> None:
468468
os.environ["CODEFLASH_TEST_FUNCTION"] = test_function_name
469469

470470
@pytest.hookimpl(trylast=True)
471-
def pytest_runtest_teardown(self, item: pytest.Item) -> None:
471+
def pytest_runtest_teardown(self, item: pytest.Item) -> None: # noqa: ARG002
472472
"""Clean up test context environment variables after each test."""
473473
for var in ["CODEFLASH_TEST_MODULE", "CODEFLASH_TEST_CLASS", "CODEFLASH_TEST_FUNCTION"]:
474474
os.environ.pop(var, None)

0 commit comments

Comments
 (0)