pylint: Add pylint 2.13

Bug: 1500415
Change-Id: I05293251be810772c56530962ef5a33a0f0cc887
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5030756
Auto-Submit: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Brian Ryner <bryner@google.com>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
changes/56/5030756/4
Josip Sokcevic 1 year ago committed by LUCI CQ
parent 1e503bf950
commit 86c7f734f5

@ -1221,7 +1221,8 @@ def GetPylint(input_api,
files_to_skip = tuple(files_to_skip or input_api.DEFAULT_FILES_TO_SKIP)
extra_paths_list = extra_paths_list or []
assert version in ('2.6', '2.7'), 'Unsupported pylint version: %s' % version
assert version in ('2.6', '2.7', '2.13'), \
'Unsupported pylint version: %s' % version
if input_api.is_committing or input_api.no_diffs:
error_type = output_api.PresubmitError

@ -0,0 +1,81 @@
#!/usr/bin/env vpython3
# Copyright 2019 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.
# Note: We use tags here instead of refs because refs will always hit the
# network to see if there are any updates.
# [VPYTHON:BEGIN]
# # Third party dependencies. These are only listed because pylint itself needs
# # them. Feel free to add/remove anything here.
# python_version: "3.11"
#
# wheel: <
# name: "infra/python/wheels/futures-py2_py3"
# version: "version:3.1.1"
# >
# wheel: <
# name: "infra/python/wheels/isort-py3"
# version: "version:5.10.1"
# >
# wheel: <
# name: "infra/python/wheels/mccabe-py2_py3"
# version: "version:0.6.1"
# >
# wheel: <
# name: "infra/python/wheels/six-py2_py3"
# version: "version:1.15.0"
# >
# wheel: <
# name: "infra/python/wheels/toml-py3"
# version: "version:0.10.1"
# >
# wheel: <
# name: "infra/python/wheels/wrapt-py3"
# version: "version:1.15.0"
# >
# wheel: <
# name: "infra/python/wheels/lazy-object-proxy/${vpython_platform}"
# version: "version:1.4.3"
# >
# wheel: <
# name: "infra/python/wheels/colorama-py3"
# version: "version:0.4.1"
# >
#
# # Pylint extensions.
#
# wheel: <
# name: "infra/python/wheels/pylint-quotes-py3"
# version: "version:0.2.1"
# >
#
# # Pylint dependencies.
#
# wheel: <
# name: "infra/python/wheels/astroid-py3"
# version: "version:2.11.3"
# >
# wheel: <
# name: "infra/python/wheels/dill-py3"
# version: "version:0.3.4"
# >
# wheel: <
# name: "infra/python/wheels/platformdirs-py3"
# version: "version:3.10.0"
# >
# wheel: <
# name: "infra/python/wheels/pylint-py3"
# version: "version:2.13.8"
# >
#
# [VPYTHON:END]
import sys
import pylint_main
if __name__ == '__main__':
sys.exit(pylint_main.main(sys.argv[1:]))

@ -0,0 +1,12 @@
@echo off
:: Copyright 2021 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.
setlocal
:: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
:: standalone, but allow other PATH manipulations to take priority.
set PATH=%PATH%;%~dp0
:: Defer control.
vpython3 "%~dp0\pylint-2.13" %*
Loading…
Cancel
Save