diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-11 16:47:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 16:47:42 -0400 |
commit | 82dc1b8e59891a7ca0f1a5e67a3db952b918561c (patch) | |
tree | e958c5d7bff81a4f218ad81b5e7b56451213d60a /tools/lint.py | |
parent | ad11f2ad6aae758e67734d60f068285fb5e10655 (diff) |
Upgrade pylint (#2917)
depot_tools is removing pylint from its distribution so we must maintain
our own copy.
Diffstat (limited to 'tools/lint.py')
-rwxr-xr-x | tools/lint.py | 8 |
1 files changed, 6 insertions, 2 deletions
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()) |