From b58f7eb97d65603c1a363d900b4c6a94898a93b9 Mon Sep 17 00:00:00 2001 From: Byoungchan Lee Date: Fri, 16 Jul 2021 03:04:44 +0900 Subject: [PATCH] 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 Reviewed-by: Harald Alvestrand Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/master@{#34536} --- PRESUBMIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 6c4a04ce89..e951936690 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -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(