Use pylint 2.7 for depot_tools

This includes a few fixes for specific errors, and disables several new
warnings introduced in this version, in order to allow for an incremental migration.

Bug:1262286
Change-Id: I4b8f8fc521386419a3121bbb07edc8ac83170a94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3413679
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
This commit is contained in:
Aravind Vasudevan
2022-01-24 23:56:57 +00:00
committed by LUCI CQ
parent d94f9a6d20
commit c5f0cbb865
39 changed files with 341 additions and 275 deletions

View File

@@ -42,9 +42,11 @@ class TestGitFindReleases(unittest.TestCase):
assert len(args) > 1
if args[0] == 'name-rev' and args[1] == '--tags':
return 'undefined'
elif args[0] == 'name-rev' and args[1] == '--refs':
if args[0] == 'name-rev' and args[1] == '--refs':
return '1.0.0'
elif args[0] == 'log':
if args[0] == 'log':
return ''
assert False, "Unexpected arguments for git.run"