testing: Make linter fail with exit code if any check fails.

This commit is contained in:
derAnfaenger 2017-08-16 10:21:37 +02:00 committed by Tim Abbott
parent 708cf27e8d
commit bcc1489bc5

View file

@ -21,7 +21,7 @@ def lint_all(args, options):
'html', 'json', 'md', 'txt', 'text', 'yaml'], 'html', 'json', 'md', 'txt', 'text', 'yaml'],
use_shebang=True, group_by_ftype=True, exclude=EXCLUDED_FILES)) use_shebang=True, group_by_ftype=True, exclude=EXCLUDED_FILES))
check_custom_checks_py, check_custom_checks_nonpy = build_custom_checkers(by_lang) check_custom_checks_py, check_custom_checks_nonpy = build_custom_checkers(by_lang)
return all([check_pep8(by_lang['py']), return any([check_pep8(by_lang['py']),
check_custom_checks_py(), check_custom_checks_py(),
check_custom_checks_nonpy()]) check_custom_checks_nonpy()])