[pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243)

## Summary

Implements the [blank line at end of
file](https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes)
rule (W391) from pycodestyle. Renamed to TooManyNewlinesAtEndOfFile for
clarity.

## Test Plan

New fixtures have been added

Part of #2402
This commit is contained in:
Auguste Lalande 2024-03-11 22:07:59 -04:00 committed by GitHub
parent c746912b9e
commit b117f33075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 232 additions and 1 deletions

View file

@ -105,6 +105,7 @@ KNOWN_PARSE_ERRORS = [
"tab-after-operator",
"tab-before-keyword",
"tab-before-operator",
"too-many-newlines-at-end-of-file",
"trailing-whitespace",
"unexpected-indentation",
]