aboutsummaryrefslogtreecommitdiffhomepage
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-09-27 13:03:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-27 17:24:38 +0000
commit8e0c2c98322f500cb4d8b66545b41a3e4fdcf0ed (patch)
tree7f56b149e48961e14bbab321bc2e76a4845193a8 /PRESUBMIT.py
parent62ea0cd4a08233156eb06813d97701556533148f (diff)
Manually roll recipe DEPS
Bug: skia: Change-Id: I55641aa4bef5a7ac863e3aae3d2902ef408f0384 Reviewed-on: https://skia-review.googlesource.com/52121 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 4bea7099dd..c60392ea49 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -74,6 +74,9 @@ def _CheckChangeHasEol(input_api, output_api, source_file_filter=None):
def _PythonChecks(input_api, output_api):
"""Run checks on any modified Python files."""
+ pylint_disabled_files = (
+ 'infra/bots/recipes.py',
+ )
pylint_disabled_warnings = (
'F0401', # Unable to import.
'E0611', # No name in module.
@@ -91,7 +94,8 @@ def _PythonChecks(input_api, output_api):
for affected_file in input_api.AffectedSourceFiles(None):
affected_file_path = affected_file.LocalPath()
if affected_file_path.endswith('.py'):
- affected_python_files.append(affected_file_path)
+ if affected_file_path not in pylint_disabled_files:
+ affected_python_files.append(affected_file_path)
return input_api.canned_checks.RunPylint(
input_api, output_api,
disabled_warnings=pylint_disabled_warnings,