Skip to content

Commit db9a919

Browse files
Use the ruff rule ordering used in the documentation
https://docs.astral.sh/ruff/rules/ See also 9b632fd / #9738.
1 parent 118b7b6 commit db9a919

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,29 +249,29 @@ extend-exclude = ["doc", "_typed_ops.pyi"]
249249

250250
[tool.ruff.lint]
251251
extend-select = [
252-
"W", # pycodestyle warnings
253-
"I", # isort
254-
"UP", # pyupgrade
255252
"B", # flake8-bugbear
256253
"C4", # flake8-comprehensions
257254
"ISC", # flake8-implicit-str-concat
258255
"PIE", # flake8-pie
259256
"TID", # flake8-tidy-imports (absolute imports)
260-
"PGH", # pygrep-hooks
257+
"I", # isort
261258
"PERF", # Perflint
259+
"W", # pycodestyle warnings
260+
"PGH", # pygrep-hooks
261+
"UP", # pyupgrade
262262
"FURB", # refurb
263263
"RUF",
264264
]
265265
extend-safe-fixes = [
266266
"TID252", # absolute imports
267267
]
268268
ignore = [
269-
"E402", # module level import not at top of file
270-
"E731", # do not assign a lambda expression, use a def
271-
"UP007", # use X | Y for type annotations
272269
"C40", # unnecessary generator, comprehension, or literal
273270
"PIE790", # unnecessary pass statement
274271
"PERF203", # try-except within a loop incurs performance overhead
272+
"E402", # module level import not at top of file
273+
"E731", # do not assign a lambda expression, use a def
274+
"UP007", # use X | Y for type annotations
275275
"FURB105", # unnecessary empty string passed to `print`
276276
"RUF001", # string contains ambiguous unicode character
277277
"RUF002", # docstring contains ambiguous acute accent unicode character

0 commit comments

Comments
 (0)