lint: Restore pycodestyle wrapper’s check for empty list of files.

Commit ab647abad3 (#15779) accidentally
removed this.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-14 13:50:06 -07:00 committed by Tim Abbott
parent f1d475206e
commit 8927d2f240
1 changed files with 2 additions and 0 deletions

View File

@ -5,4 +5,6 @@ from zulint.printer import colors
def check_pep8(files: List[str]) -> bool:
if not files:
return False
return run_command("pep8", next(colors), ["pycodestyle", "--", *files]) != 0