Commit 9af33fa2 authored by local_bot's avatar local_bot Committed by LUCI CQ

Use inclusive parameters in PRESUBMIT.py

R=dpranke@google.com

Bug: 1098560
Change-Id: I22f7e89cafb6c8ab7e268afc7004c5ed57f12d12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2288510Reviewed-by: 's avatarDirk Pranke <dpranke@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
parent 6402141d
...@@ -38,7 +38,7 @@ def DepotToolsPylint(input_api, output_api): ...@@ -38,7 +38,7 @@ def DepotToolsPylint(input_api, output_api):
r'^tests/[^/]*\.py$', r'^tests/[^/]*\.py$',
r'^recipe_modules/.*\.py$', # Allow recursive search in recipe modules. r'^recipe_modules/.*\.py$', # Allow recursive search in recipe modules.
] ]
files_to_skip = list(input_api.DEFAULT_BLOCK_LIST) files_to_skip = list(input_api.DEFAULT_FILES_TO_SKIP)
if os.path.exists('.gitignore'): if os.path.exists('.gitignore'):
with open('.gitignore') as fh: with open('.gitignore') as fh:
lines = [l.strip() for l in fh.readlines()] lines = [l.strip() for l in fh.readlines()]
...@@ -56,8 +56,8 @@ def DepotToolsPylint(input_api, output_api): ...@@ -56,8 +56,8 @@ def DepotToolsPylint(input_api, output_api):
return input_api.canned_checks.GetPylint( return input_api.canned_checks.GetPylint(
input_api, input_api,
output_api, output_api,
allow_list=files_to_check, files_to_check=files_to_check,
block_list=files_to_skip, files_to_skip=files_to_skip,
disabled_warnings=disabled_warnings) disabled_warnings=disabled_warnings)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment