From 60d37a064bc0307017537ed3091b1b0204213855 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 3 Feb 2021 12:08:10 +0100 Subject: [PATCH] Fix PRESUBMIT.py. Bug: b/179223281 Change-Id: I66da6f1367267bdfc38488f6807700d21a4c86e1 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2671463 Reviewed-by: Frank Barchard --- PRESUBMIT.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 2cf1542ff..cc91dceba 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -25,7 +25,7 @@ def _RunPythonTests(input_api, output_api): input_api, output_api, directory, - whitelist=[r'.+_test\.py$'])) + allowlist=[r'.+_test\.py$'])) return input_api.RunTests(tests, parallel=True) @@ -33,17 +33,17 @@ def _CommonChecks(input_api, output_api): """Checks common to both upload and commit.""" results = [] results.extend(input_api.canned_checks.RunPylint(input_api, output_api, - black_list=(r'^base[\\\/].*\.py$', - r'^build[\\\/].*\.py$', - r'^buildtools[\\\/].*\.py$', - r'^ios[\\\/].*\.py$', - r'^out.*[\\\/].*\.py$', - r'^testing[\\\/].*\.py$', - r'^third_party[\\\/].*\.py$', - r'^tools[\\\/].*\.py$', - # TODO(kjellander): should arguably be checked. - r'^tools_libyuv[\\\/]valgrind[\\\/].*\.py$', - r'^xcodebuild.*[\\\/].*\.py$',), + files_to_skip=(r'^base[\\\/].*\.py$', + r'^build[\\\/].*\.py$', + r'^buildtools[\\\/].*\.py$', + r'^ios[\\\/].*\.py$', + r'^out.*[\\\/].*\.py$', + r'^testing[\\\/].*\.py$', + r'^third_party[\\\/].*\.py$', + r'^tools[\\\/].*\.py$', + # TODO(kjellander): should arguably be checked. + r'^tools_libyuv[\\\/]valgrind[\\\/].*\.py$', + r'^xcodebuild.*[\\\/].*\.py$',), disabled_warnings=['F0401', # Failed to import x 'E0611', # No package y in x 'W0232', # Class has no __init__ method