mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05: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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user