summaryrefslogtreecommitdiff
path: root/tools/lint.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-09-11 16:47:42 -0400
committerGitHub <noreply@github.com>2019-09-11 16:47:42 -0400
commit82dc1b8e59891a7ca0f1a5e67a3db952b918561c (patch)
treee958c5d7bff81a4f218ad81b5e7b56451213d60a /tools/lint.py
parentad11f2ad6aae758e67734d60f068285fb5e10655 (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-xtools/lint.py8
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())