blob: 698cb6b73b018357c0670e48e8329bab0f7ae19f [file] [log] [blame]
Dirk Pranke1316af52021-11-02 12:45:39 -07001# Copyright (c) 2021 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Top-level presubmit script for the Git repo backing chromium.org.
6
7See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8for more details about the presubmit API built into depot_tools.
9"""
10PRESUBMIT_VERSION = '2.0.0'
11
12# This line is 'magic' in that git-cl looks for it to decide whether to
13# use Python3 instead of Python2 when running the code in this file.
14USE_PYTHON3 = True
15
16
17def CheckPatchFormatted(input_api, output_api):
18 return input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
19
20
21def CheckChangeHasDescription(input_api, output_api):
22 return input_api.canned_checks.CheckChangeHasDescription(
23 input_api, output_api)