Skip to content

Commit 512b8af

Browse files
Update ruff pre-commit hooks version (#26255)
Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Cyrus Leung <[email protected]>
1 parent 1c0c682 commit 512b8af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.buildkite/nightly-benchmarks/scripts/convert-results-json-to-markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def parse_client_command(cmd: str) -> dict[str, Any]:
368368
# The GPUs sometimes come in format of "GPUTYPE\nGPUTYPE\n...",
369369
# we want to turn it into "8xGPUTYPE"
370370
df["GPU"] = df["GPU"].apply(
371-
lambda x: f"{len(x.split('\n'))}x{x.split('\n')[0]}"
371+
lambda x: f"{len(x.splitlines())}x{x.splitlines()[0]}"
372372
)
373373

374374
# get markdown tables

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ default_stages:
77
exclude: 'vllm/third_party/.*'
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.11.7
10+
rev: v0.13.3
1111
hooks:
12-
- id: ruff
12+
- id: ruff-check
1313
args: [--output-format, github, --fix]
1414
- id: ruff-format
1515
- repo: https://github.com/crate-ci/typos

0 commit comments

Comments
 (0)