Skip to content

Commit 4222cd1

Browse files
TimDettmersclaude
andcommitted
style: Extend ruff per-file-ignores to cover benchmarks/ directory
The benchmarks/ directory (distinct from benchmarking/) was missing from the per-file-ignore pattern. Also suppress ambiguous unicode, unused variable, and import order warnings in test/benchmark code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0e990a6 commit 4222cd1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,19 @@ ignore = [
137137

138138
[tool.ruff.lint.extend-per-file-ignores]
139139
"**/__init__.py" = ["F401"] # allow unused imports in __init__.py
140-
"{benchmarking,tests}/**/*.py" = [
140+
"{benchmarking,benchmarks,tests}/**/*.py" = [
141141
"B007",
142142
"B011",
143143
"B023",
144+
"E402",
144145
"E701",
145146
"E731",
146147
"F841",
148+
"RUF001",
149+
"RUF002",
150+
"RUF003",
151+
"RUF015",
152+
"RUF059",
147153
"UP030",
148154
]
149155
"bitsandbytes/**/triton/**/*.py" = [

0 commit comments

Comments
 (0)