Hi all,
tl;dr Please update your PRESUBMIT checks to use the new API parameters by September 15th.
In order to align with Inclusive Chromium Code, we recently added inclusive parameters to our presubmit API. Note that old parameter names are still available, but we plan to remove them by the end of Q3 2020. We will start issuing warnings when old parameters are used in early August.
Here is overview of relevant changes (diff input_api, diff canned_checks):
Changes in constant names
input_api.DEFAULT_ALLOW_LIST -> input_api.DEFAULT_FILES_TO_CHECK
input_api.DEFAULT_BLACK_LIST -> input_api.DEFAULT_FILES_TO_SKIP
Changes in named parameters
input_api.FilterSourceFile, white_list -> files_to_check, black_list -> files_to_skip
input_api.canned_checks.GetUnitTestsInDirectory, whitelist -> files_to_check, blacklist -> files_to_skip
input_api.canned_checks.GetUnitTestsRecursively, whitelist -> files_to_check, blacklist -> files_to_skip
input_api.canned_checks.GetPylint, white_list -> files_to_check, black_list -> files_to_skip
- Chops source team