Skip to content

Commit 009d9e7

Browse files
authored
Convert benchmarks to ruff format (#18068)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
1 parent b922c2e commit 009d9e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4003
-2961
lines changed

.buildkite/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
# This local pyproject file is part of the migration from yapf to ruff format.
22
# It uses the same core rules as the main pyproject.toml file, but with the
33
# following differences:
4-
# - isort profile is set to black
54
# - ruff line length is overridden to 88
65
# - deprecated typing ignores (UP006, UP035) have been removed
76

8-
[tool.isort]
9-
profile = "black"
10-
117
[tool.ruff]
128
line-length = 88
139
exclude = [

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: ruff
1818
args: [--output-format, github, --fix]
1919
- id: ruff-format
20-
files: ^(.buildkite).*
20+
files: ^(.buildkite|benchmarks)/.*
2121
- repo: https://github.com/codespell-project/codespell
2222
rev: v2.4.1
2323
hooks:
@@ -28,8 +28,6 @@ repos:
2828
rev: 6.0.1
2929
hooks:
3030
- id: isort
31-
# necessary during the transition from yapf to ruff format
32-
args: [--resolve-all-configs, --config-root, .]
3331
- repo: https://github.com/pre-commit/mirrors-clang-format
3432
rev: v20.1.3
3533
hooks:

benchmarks/backend_request_func.py

Lines changed: 94 additions & 95 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)