Skip to content

Commit d589df1

Browse files
Enforce ruff/flake8-implicit-str-concat rules (ISC) (#10368)
* Enforce ruff/flake8-implicit-str-concat rules (ISC) * Use the ruff rule ordering used in the documentation https://docs.astral.sh/ruff/rules/ See also 9b632fd / #9738.
1 parent 58d8387 commit d589df1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,28 +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
254+
"ISC", # flake8-implicit-str-concat
257255
"PIE", # flake8-pie
258256
"TID", # flake8-tidy-imports (absolute imports)
259-
"PGH", # pygrep-hooks
257+
"I", # isort
260258
"PERF", # Perflint
259+
"W", # pycodestyle warnings
260+
"PGH", # pygrep-hooks
261+
"UP", # pyupgrade
261262
"FURB", # refurb
262263
"RUF",
263264
]
264265
extend-safe-fixes = [
265266
"TID252", # absolute imports
266267
]
267268
ignore = [
268-
"E402", # module level import not at top of file
269-
"E731", # do not assign a lambda expression, use a def
270-
"UP007", # use X | Y for type annotations
271269
"C40", # unnecessary generator, comprehension, or literal
272270
"PIE790", # unnecessary pass statement
273271
"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
274275
"FURB105", # unnecessary empty string passed to `print`
275276
"RUF001", # string contains ambiguous unicode character
276277
"RUF002", # docstring contains ambiguous acute accent unicode character

0 commit comments

Comments
 (0)