zulip/tools/linter_lib/pep8.py

11 lines
262 B
Python
Raw Normal View History

from typing import List
from zulint.linters import run_command
from zulint.printer import colors
2017-07-06 06:50:41 +02:00
2017-06-05 16:49:59 +02:00
def check_pep8(files: List[str]) -> bool:
if not files:
return False
return run_command("pep8", next(colors), ["pycodestyle", "--", *files]) != 0