Fix PRESUBMIT.py to not run pylint on deleted files.

Bug: None
Change-Id: I7963e51dd4b9102c84e22b2ad7b1510e8d29f2d4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226280
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34536}
This commit is contained in:
Byoungchan Lee 2021-07-16 03:04:44 +09:00 committed by WebRTC LUCI CQ
parent d695ace023
commit b58f7eb97d

View file

@ -922,7 +922,7 @@ def CommonChecks(input_api, output_api):
python_file_filter = lambda f: (f.LocalPath().endswith('.py') and
source_file_filter(f))
python_changed_files = [f.LocalPath() for f in input_api.AffectedFiles(
file_filter=python_file_filter)]
include_deletes=False, file_filter=python_file_filter)]
results.extend(
input_api.canned_checks.RunPylint(