mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
commit
3f84837e0b
@ -700,6 +700,7 @@ jobs:
|
|||||||
deepdiff
|
deepdiff
|
||||||
colorama
|
colorama
|
||||||
requests
|
requests
|
||||||
|
- run: pylint --version
|
||||||
- run:
|
- run:
|
||||||
name: Linting Python Scripts
|
name: Linting Python Scripts
|
||||||
command: ./scripts/pylint_all.py
|
command: ./scripts/pylint_all.py
|
||||||
|
@ -88,11 +88,11 @@ def collect_statistics(lines) -> (int, int, int, int, int, int):
|
|||||||
diff_kinds = [Diff.Minus, Diff.Plus]
|
diff_kinds = [Diff.Minus, Diff.Plus]
|
||||||
codegen_kinds = [Kind.IrOptimized, Kind.LegacyOptimized, Kind.Legacy]
|
codegen_kinds = [Kind.IrOptimized, Kind.LegacyOptimized, Kind.Legacy]
|
||||||
return tuple(
|
return tuple(
|
||||||
sum([
|
sum(
|
||||||
val
|
val
|
||||||
for (diff_kind, codegen_kind, val) in out
|
for (diff_kind, codegen_kind, val) in out
|
||||||
if diff_kind == _diff_kind and codegen_kind == _codegen_kind
|
if diff_kind == _diff_kind and codegen_kind == _codegen_kind
|
||||||
])
|
)
|
||||||
for _diff_kind in diff_kinds
|
for _diff_kind in diff_kinds
|
||||||
for _codegen_kind in codegen_kinds
|
for _codegen_kind in codegen_kinds
|
||||||
)
|
)
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
# TODO: What could be eliminated in future PRs: invalid-name, pointless-string-statement, redefined-outer-name.
|
# TODO: What could be eliminated in future PRs: invalid-name, pointless-string-statement, redefined-outer-name.
|
||||||
disable=
|
disable=
|
||||||
bad-indentation,
|
bad-indentation,
|
||||||
bad-whitespace,
|
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
invalid-name,
|
invalid-name,
|
||||||
missing-docstring,
|
missing-docstring,
|
||||||
|
Loading…
Reference in New Issue
Block a user