Fix linter issues
This commit is contained in:
parent
6dafe73a6b
commit
5b115594b7
2 changed files with 7 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ def benchmark_function(func: Callable, *args, num_runs: int = 5) -> Dict[str, An
|
||||||
for _ in range(num_runs):
|
for _ in range(num_runs):
|
||||||
# Start memory tracking
|
# Start memory tracking
|
||||||
tracemalloc.start()
|
tracemalloc.start()
|
||||||
initial_memory = process.memory_info().rss
|
|
||||||
|
|
||||||
# Measure execution time and CPU usage
|
# Measure execution time and CPU usage
|
||||||
start_time = time.perf_counter()
|
start_time = time.perf_counter()
|
||||||
|
|
@ -44,7 +44,7 @@ def benchmark_function(func: Callable, *args, num_runs: int = 5) -> Dict[str, An
|
||||||
start_cpu_time.user + start_cpu_time.system
|
start_cpu_time.user + start_cpu_time.system
|
||||||
)
|
)
|
||||||
current, peak = tracemalloc.get_traced_memory()
|
current, peak = tracemalloc.get_traced_memory()
|
||||||
final_memory = process.memory_info().rss
|
|
||||||
|
|
||||||
|
|
||||||
# Store results
|
# Store results
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,11 @@ mkdocstrings = {extras = ["python"], version = "^0.26.2"}
|
||||||
|
|
||||||
[tool.ruff] # https://beta.ruff.rs/docs/
|
[tool.ruff] # https://beta.ruff.rs/docs/
|
||||||
line-length = 100
|
line-length = 100
|
||||||
|
exclude = [
|
||||||
|
"migrations/", # Ignore migrations directory
|
||||||
|
"notebooks/", # Ignore notebook files
|
||||||
|
"build/", # Ignore build directory
|
||||||
|
]
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
ignore = ["F401"]
|
ignore = ["F401"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue