Dirk Pranke | 1316af5 | 2021-11-02 12:45:39 -0700 | [diff] [blame] | 1 | # 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 | |
| 7 | See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 8 | for more details about the presubmit API built into depot_tools. |
| 9 | """ |
| 10 | PRESUBMIT_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. |
| 14 | USE_PYTHON3 = True |
| 15 | |
| 16 | |
| 17 | def CheckPatchFormatted(input_api, output_api): |
| 18 | return input_api.canned_checks.CheckPatchFormatted(input_api, output_api) |
| 19 | |
| 20 | |
| 21 | def CheckChangeHasDescription(input_api, output_api): |
| 22 | return input_api.canned_checks.CheckChangeHasDescription( |
| 23 | input_api, output_api) |