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:
Aarni Koskela 2023-07-27 21:58:41 +03:00 committed by GitHub
parent 1418ee62f8
commit 3d54d31cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 151 additions and 3 deletions

View file

@ -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",