Skip to content

Commit bd3d331

Browse files
committed
da rulez
1 parent 4bddc1e commit bd3d331

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""CodeFlash Benchmark - Pytest benchmarking plugin for codeflash.ai."""
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.1.0"

codeflash-benchmark/codeflash_benchmark/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def pytest_addoption(parser: pytest.Parser) -> None:
2525
)
2626

2727

28-
2928
@pytest.fixture
3029
def benchmark(request: pytest.FixtureRequest) -> object:
3130
"""Benchmark fixture that works with or without pytest-benchmark installed."""

codeflash/benchmarking/plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,4 @@ def _run_benchmark(self, func, *args, **kwargs): # noqa: ANN001, ANN002, ANN003
285285
return result
286286

287287

288-
codeflash_benchmark_plugin = CodeFlashBenchmarkPlugin()
288+
codeflash_benchmark_plugin = CodeFlashBenchmarkPlugin()

codeflash/discovery/functions_to_optimize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def get_functions_to_optimize(
204204
functions[file] = [found_function]
205205
else:
206206
logger.info("Finding all functions modified in the current git diff ...")
207+
console.rule()
207208
ph("cli-optimizing-git-diff")
208209
functions = get_functions_within_git_diff()
209210
filtered_modified_functions, functions_count = filter_functions(

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def instrument_existing_tests(self, function_to_all_tests: dict[str, set[Functio
840840
f"{concolic_coverage_test_files_count} concolic coverage test file"
841841
f"{'s' if concolic_coverage_test_files_count != 1 else ''} for {func_qualname}"
842842
)
843+
console.rule()
843844
return unique_instrumented_test_files
844845

845846
def generate_tests_and_optimizations(

codeflash/optimization/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run_benchmarks(
106106
for file in file_path_to_source_code:
107107
with file.open("w", encoding="utf8") as f:
108108
f.write(file_path_to_source_code[file])
109-
109+
console.rule()
110110
return function_benchmark_timings, total_benchmark_timings
111111

112112
def get_optimizable_functions(self) -> tuple[dict[Path, list[FunctionToOptimize]], int, Path | None]:

0 commit comments

Comments
 (0)