Merge pull request #13088 from ethereum/fix-new-pylint-warnings-after-upgrade

Fix new warnings from pylint 2.14 and adjust pylint config
This commit is contained in:
Kamil Śliwak 2022-06-01 21:15:56 +02:00 committed by GitHub
commit 3f84837e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -700,6 +700,7 @@ jobs:
deepdiff
colorama
requests
- run: pylint --version
- run:
name: Linting Python Scripts
command: ./scripts/pylint_all.py

View File

@ -88,11 +88,11 @@ def collect_statistics(lines) -> (int, int, int, int, int, int):
diff_kinds = [Diff.Minus, Diff.Plus]
codegen_kinds = [Kind.IrOptimized, Kind.LegacyOptimized, Kind.Legacy]
return tuple(
sum([
sum(
val
for (diff_kind, codegen_kind, val) in out
if diff_kind == _diff_kind and codegen_kind == _codegen_kind
])
)
for _diff_kind in diff_kinds
for _codegen_kind in codegen_kinds
)

View File

@ -17,7 +17,6 @@
# TODO: What could be eliminated in future PRs: invalid-name, pointless-string-statement, redefined-outer-name.
disable=
bad-indentation,
bad-whitespace,
duplicate-code,
invalid-name,
missing-docstring,