
presubmit now uses python3 only. This is generated by $ rg -l '^USE_PYTHON3 = True' | \ xargs sed -z -i "s/\n*USE_PYTHON3 = True\n*/\n\n\n/" with some more modifications. This also removes run_on_python2, run_on_python3, and skip_shebang_check args. Bug: 1207012 Change-Id: I43ac77120dc2456bc065a41750f1f5ddfd88d9e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4576841 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Bruce Dawson <brucedawson@chromium.org> Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Cr-Commit-Position: refs/heads/main@{#1152146}
15 lines
439 B
Python
15 lines
439 B
Python
# Copyright 2022 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
PRESUBMIT_VERSION = '2.0.0'
|
|
|
|
|
|
def CheckPythonTests(input_api, output_api):
|
|
return input_api.RunTests(
|
|
input_api.canned_checks.GetUnitTestsInDirectory(
|
|
input_api,
|
|
output_api,
|
|
input_api.PresubmitLocalPath(),
|
|
files_to_check=[r'.+_(?:unit)?test\.py$']))
|