infra/config/PRESUBMIT.py
raw| 1 | # Copyright 2018 The PDFium 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 | USE_PYTHON3 = True |
| 6 | |
| 7 | |
| 8 | def CheckChangeOnUpload(input_api, output_api): |
| 9 | return input_api.canned_checks.CheckChangedLUCIConfigs( |
| 10 | input_api, output_api |
| 11 | ) |
| 12 | |
| 13 | |
| 14 | def CheckChangeOnCommit(input_api, output_api): |
| 15 | return input_api.canned_checks.CheckChangedLUCIConfigs( |
| 16 | input_api, output_api |
| 17 | ) |