Skip to content

Commit b7e592a

Browse files
Allow ruff to auto-fix trailing spaces in multi-line comments (#19221)
1 parent db975ea commit b7e592a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.d/19221.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Auto-fix trailing spaces in multi-line strings and comments when running the lint script.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ extend-safe-fixes = [
269269
"UP007",
270270
# pyupgrade rules compatible with Python >= 3.10
271271
"UP045",
272+
# Allow ruff to automatically fix trailing spaces within a multi-line string/comment.
273+
"W293"
272274
]
273275

274276
[tool.ruff.lint.isort]

0 commit comments

Comments
 (0)