blob: ae1fbf5f22ea1770e54b7057465bc7c777c5ff0f [file]
# Copyright 2026 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for buildtools."""
PRESUBMIT_VERSION = '2.0.0'
def CheckPatchFormatted(input_api, output_api):
return input_api.canned_checks.CheckPatchFormatted(
input_api,
output_api,
result_factory=output_api.PresubmitError,
bypass_warnings=False,
)
def CheckRuff(input_api, output_api):
return input_api.RunTests(
input_api.canned_checks.GetRuff(input_api, output_api)
)