diff --git a/infra/presubmit.py b/infra/presubmit.py index 61d0ff7f1257..442ce888cc56 100755 --- a/infra/presubmit.py +++ b/infra/presubmit.py @@ -260,7 +260,9 @@ def _check_one_apt_update(path): with open(path, 'r') as file: dockerfile = file.read() if 'RUN apt install' in dockerfile or 'RUN apt-get install' in dockerfile: - print('Please add an "apt-get update" before "apt-get install". Otherwise, a cached and outdated RUN layer may lead to install failures.') + print('Please add an "apt-get update" before "apt-get install". ' + 'Otherwise, a cached and outdated RUN layer may lead to install ' + 'failures.') return False return True @@ -274,8 +276,12 @@ def check_apt_update(paths): def do_checks(changed_files): """Runs all presubmit checks. Returns False if any fails.""" checks = [ - check_license, yapf, check_project_yaml, check_lib_fuzzing_engine, - check_seed_corpus, check_apt_update, + check_license, + yapf, + check_project_yaml, + check_lib_fuzzing_engine, + check_seed_corpus, + check_apt_update, ] # Use a list comprehension here and in other cases where we use all() so that # we don't quit early on failure. This is more user-friendly since the more