# Copyright 2019 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Top-level presubmit script for config_service.

See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API built into gclient.
"""


def CommonChecks(input_api, output_api):
  block_list = list(input_api.DEFAULT_BLOCK_LIST) + [
    r'.*_pb2\.py$',
  ]
  return input_api.canned_checks.RunPylint(
      input_api, output_api, block_list=block_list)


# pylint: disable=unused-argument
def CheckChangeOnUpload(input_api, output_api):
  return []


def CheckChangeOnCommit(input_api, output_api):
  return CommonChecks(input_api, output_api)

@@ -524,32 +524,38 @@
       input_api,
+%0A     
  output_api, blo
@@ -550,16 +550,22 @@
 put_api,
+%0A     
  block_l
@@ -578,16 +578,147 @@
 ock_list
+,%0A      pylintrc=input_api.os_path.join(input_api.PresubmitLocalPath(), '../../',%0A                                      'pylintrc')
 )%0A%0A%0A# py

use custom pylintrc