def ShouldLintFile(path):
  """Returns True if this path should be linted."""
  excluded_folders = [
      'third_party',
      'protoc_wrapper',
      'ycm_extra_conf',
  ]

  if (not path.endswith('.py') or
      any(f in path for f in excluded_folders)):
    return False

  return True