mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-09 22:25:09 +00:00
Implement E241 and E242 (tab/multiple ws after commas) (#6094)
## Summary This PR implements pycodestyle's E241 (tab after comma) and E242 (multiple whitespace after comma) lints. These are marked as nursery rules like many other pycodestyle rules. Refs #2402 ## Test Plan E24.py copied from pycodestyle.
This commit is contained in:
parent
1418ee62f8
commit
3d54d31cd9
10 changed files with 151 additions and 3 deletions
|
@ -43,6 +43,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
|
|||
"missing-whitespace-around-operator",
|
||||
"multi-line-implicit-string-concatenation",
|
||||
"multiple-leading-hashes-for-block-comment",
|
||||
"multiple-spaces-after-comma",
|
||||
"multiple-spaces-after-keyword",
|
||||
"multiple-spaces-after-operator",
|
||||
"multiple-spaces-before-keyword",
|
||||
|
@ -81,6 +82,7 @@ KNOWN_PARSE_ERRORS = [
|
|||
"missing-newline-at-end-of-file",
|
||||
"mixed-spaces-and-tabs",
|
||||
"no-indented-block",
|
||||
"tab-after-comma",
|
||||
"tab-after-keyword",
|
||||
"tab-after-operator",
|
||||
"tab-before-keyword",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue