[pycodestyle] Add blank line(s) rules (E301, E302, E303, E304, E305, E306) (#9266)

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
Hoël Bagard 2024-02-09 03:35:08 +09:00 committed by GitHub
parent 688177ff6a
commit 9027169125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 2616 additions and 3 deletions

View file

@ -32,6 +32,11 @@ KNOWN_FORMATTING_VIOLATIONS = [
"bad-quotes-docstring",
"bad-quotes-inline-string",
"bad-quotes-multiline-string",
"blank-line-after-decorator",
"blank-line-between-methods",
"blank-lines-after-function-or-class",
"blank-lines-before-nested-definition",
"blank-lines-top-level",
"explicit-string-concatenation",
"indent-with-spaces",
"indentation-with-invalid-multiple",
@ -68,6 +73,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
"surrounding-whitespace",
"tab-indentation",
"too-few-spaces-before-inline-comment",
"too-many-blank-lines",
"too-many-boolean-expressions",
"trailing-comma-on-bare-tuple",
"triple-single-quotes",