mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-09 22:25:09 +00:00
Enable pycodestyle
rules (#3689)
This commit is contained in:
parent
ddf7de7e86
commit
39fa38cb35
13 changed files with 68 additions and 97 deletions
|
@ -28,22 +28,44 @@ KNOWN_FORMATTING_VIOLATIONS = [
|
|||
"bad-quotes-inline-string",
|
||||
"bad-quotes-multiline-string",
|
||||
"explicit-string-concatenation",
|
||||
"indentation-with-invalid-multiple",
|
||||
"line-too-long",
|
||||
"missing-trailing-comma",
|
||||
"multi-line-implicit-string-concatenation",
|
||||
"multiple-leading-hashes-for-block-comment",
|
||||
"multiple-spaces-after-keyword",
|
||||
"multiple-spaces-after-operator",
|
||||
"multiple-spaces-before-keyword",
|
||||
"multiple-spaces-before-operator",
|
||||
"multiple-statements-on-one-line-colon",
|
||||
"multiple-statements-on-one-line-semicolon",
|
||||
"no-indented-block-comment",
|
||||
"no-space-after-block-comment",
|
||||
"no-space-after-inline-comment",
|
||||
"over-indented",
|
||||
"prohibited-trailing-comma",
|
||||
"too-few-spaces-before-inline-comment",
|
||||
"trailing-comma-on-bare-tuple",
|
||||
"unexpected-indentation-comment",
|
||||
"useless-semicolon",
|
||||
"whitespace-after-open-bracket",
|
||||
"whitespace-before-close-bracket",
|
||||
"whitespace-before-punctuation",
|
||||
]
|
||||
|
||||
# For some docs, black is unable to parse the example code.
|
||||
KNOWN_PARSE_ERRORS = [
|
||||
"blank-line-with-whitespace",
|
||||
"indentation-with-invalid-multiple-comment",
|
||||
"missing-newline-at-end-of-file",
|
||||
"mixed-spaces-and-tabs",
|
||||
"no-indented-block",
|
||||
"tab-after-keyword",
|
||||
"tab-after-operator",
|
||||
"tab-before-keyword",
|
||||
"tab-before-operator",
|
||||
"trailing-whitespace",
|
||||
"unexpected-indentation",
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue