Skip to content

fix: use %s placeholder in benchmark logging call - #416

Closed
kayaal34 wants to merge 1 commit into
MinishLab:mainfrom
kayaal34:fix/log-format
Closed

kayaal34 wants to merge 1 commit into
MinishLab:mainfrom
kayaal34:fix/log-format

Conversation

@kayaal34

Copy link
Copy Markdown

What was wrong

In results/make_speed_vs_mteb_plot.py, benchmark_model calls logger.info("Starting", name). The message has no %s placeholder but is given an argument, so the logging module reports "not all arguments converted during string formatting" (a logging error printed to stderr) and the model name is never logged. Found with ruff rule PLE1205.

Fix

logger.info("Starting %s", name).

How it was checked

ruff check --select PLE1205 flags the old line; python -m py_compile passes on the changed file. I did not run the benchmark script (it needs the models and datasets).

I used Claude (an AI assistant) to help with this change; I reviewed it and ran the check(s) above.

@stephantul

Copy link
Copy Markdown
Contributor

We're revamping this benchmark soon, so we're not looking for contributions to this. Thanks!

@stephantul stephantul closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants