def CommonChecks(input_api, output_api):
  """Presubmit checks run on both upload and commit.

  This is currently limited to pylint.
  """
  checks = []
  checks.extend(input_api.canned_checks.GetPylint(
      input_api, output_api, pylintrc='pylintrc'))
  return input_api.RunTests(checks, False)