From 82dc1b8e59891a7ca0f1a5e67a3db952b918561c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 11 Sep 2019 16:47:42 -0400 Subject: Upgrade pylint (#2917) depot_tools is removing pylint from its distribution so we must maintain our own copy. --- tools/lint.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/lint.py') diff --git a/tools/lint.py b/tools/lint.py index fb400a8e9..92e58dbc2 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -5,6 +5,7 @@ import os import sys from util import enable_ansi_colors, find_exts, root_path, run +from third_party import python_env enable_ansi_colors() @@ -24,5 +25,8 @@ run([ "./core/**/*.{ts,js}", "./tests/**/*.{ts,js}" ]) -run([sys.executable, "third_party/depot_tools/pylint.py"] + - find_exts(["tools", "build_extra"], [".py"], skip=["tools/clang"])) +run([ + sys.executable, "third_party/python_packages/pylint", + "--rcfile=third_party/depot_tools/pylintrc" +] + find_exts(["tools", "build_extra"], [".py"], skip=["tools/clang"]), + env=python_env()) -- cgit v1.2.3