Files
chromium_depot_tools/recipes/recipe_modules/presubmit/examples/full.py
Gavin Mak 5819c303f0 Drop py2 support in recipe modules
python3 is the only supported version of python in depot_tools.

Bug: 1475402
Change-Id: I479de09a0c34b438aced35e4ced58a5972108132
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4808518
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2023-08-24 17:11:04 +00:00

22 lines
400 B
Python
Executable File

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PYTHON_VERSION_COMPATIBILITY = 'PY3'
DEPS = [
'presubmit',
'recipe_engine/json'
]
def RunSteps(api):
api.presubmit()
def GenTests(api):
yield (
api.test('basic') +
api.step_data('presubmit', api.json.output({}))
)