chromite: Ensure chromite lints (mostly) clean after pylint uprev
- remove suppressions for obsolete lint warnings
- rename suppressions that have been split (arguments-differ)
- suppress most of the "consider using.." warnings
- delete unused variables on except: lines
- fix some obvious things
BUG=b:236161656
TEST=./run_tests
Change-Id: I3a4af178b29687be23215452aa19c10aa83cb52e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4505565
Tested-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
diff --git a/scripts/cros_setup_toolchains.py b/scripts/cros_setup_toolchains.py
index 3ebe41d..d3bf0ef 100644
--- a/scripts/cros_setup_toolchains.py
+++ b/scripts/cros_setup_toolchains.py
@@ -227,6 +227,8 @@
if target in TARGET_COMPILER_RT_ENABLED:
cmd.extend(CROSSDEV_COMPILER_RT_ARGS)
if target in TARGET_LLVM_PKGS_ENABLED:
+ # TODO(b/236161656): Fix.
+ # pylint: disable-next=consider-using-dict-items
for pkg in LLVM_PKGS_TABLE:
cmd.extend(LLVM_PKGS_TABLE[pkg])
if target in TARGET_GO_ENABLED: