refactor: replace isort, black and flake8 with ruff

This commit is contained in:
Juro Oravec 2025-08-18 10:19:03 +02:00
parent 8b9b93787f
commit 53a5804706
128 changed files with 3069 additions and 2594 deletions

View file

@ -1,8 +1,10 @@
from typing import Any
from asv_runner.benchmarks.timeraw import TimerawBenchmark, _SeparateProcessTimer
# Fix for https://github.com/airspeed-velocity/asv_runner/pull/44
def _get_timer(self, *param):
def _get_timer(self: Any, *param: Any) -> _SeparateProcessTimer:
"""
Returns a timer that runs the benchmark function in a separate process.
@ -16,7 +18,7 @@ def _get_timer(self, *param):
"""
if param:
def func():
def func() -> Any:
# ---------- OUR CHANGES: ADDED RETURN STATEMENT ----------
return self.func(*param)
# ---------- OUR CHANGES END ----------