Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorg8927d2f2409a
diff --git a/tools/linter_lib/pep8.py b/tools/linter_lib/pep8.py
index f373470ed9b..b8f3098d64f 100644
--- a/tools/linter_lib/pep8.py
+++ b/tools/linter_lib/pep8.py
@@ -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