[pycodestyle] Implement redundant-backslash (E502) (#10292)

## Summary

Implements the
[redundant-backslash](https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes)
rule (E502) from pycodestyle.

## Test Plan

New fixture has been added

Part of #2402
This commit is contained in:
Auguste Lalande 2024-03-11 21:15:06 -04:00 committed by GitHub
parent fc7139d9a5
commit c746912b9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 475 additions and 4 deletions

View file

@ -69,6 +69,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
"over-indented",
"pass-statement-stub-body",
"prohibited-trailing-comma",
"redundant-backslash",
"shebang-leading-whitespace",
"surrounding-whitespace",
"tab-indentation",