mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-09 22:25:09 +00:00
Add new rule to check for useless quote escapes (#8630)
When using the autofixer for `Q000` it does not remove the backslashes from quotes that no longer need escaping. This new rule checks for such backslashes (regardless whether they come from the autofixer or not) and can remove them. fixes #8617
This commit is contained in:
parent
534fc34f11
commit
16060670b8
10 changed files with 1048 additions and 19 deletions
|
@ -76,6 +76,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
|
|||
"unexpected-spaces-around-keyword-parameter-equals",
|
||||
"unicode-kind-prefix",
|
||||
"unnecessary-class-parentheses",
|
||||
"unnecessary-escaped-quote",
|
||||
"useless-semicolon",
|
||||
"whitespace-after-open-bracket",
|
||||
"whitespace-before-close-bracket",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue