Alex Ovsienko would like Nate Fischer to review this change.
Migrate RunPylint presubmit commands to Pylint 3.2 in android_webview
Update all RunPylint presubmit commands to use Pylint 3.2 and add breakages
to list of disabled_warnings.
This CL was uploaded by git cl split.
R=ntf...@chromium.org
Bug: 537041607
Change-Id: I1353eff846a5d564e55b4559cb9bdb64656fc3a6
TAG=agy
diff --git a/android_webview/tools/PRESUBMIT.py b/android_webview/tools/PRESUBMIT.py
index 5c0fb82..10a0132c 100644
--- a/android_webview/tools/PRESUBMIT.py
+++ b/android_webview/tools/PRESUBMIT.py
@@ -19,14 +19,33 @@
checks = []
src_root = input_api.os_path.join(input_api.PresubmitLocalPath(), '..', '..')
+ disabled_warnings = [
+ 'bad-plugin-value',
+ 'broad-exception-raised',
+ 'consider-using-f-string',
+ 'consider-using-with',
+ 'duplicate-code',
+ 'import-error',
+ 'import-outside-toplevel',
+ 'missing-class-docstring',
+ 'missing-function-docstring',
+ 'missing-module-docstring',
+ 'no-self-argument',
+ 'unnecessary-dunder-call',
+ 'unnecessary-pass',
+ 'unrecognized-option',
+ 'unspecified-encoding',
+ 'unused-argument',
+ 'use-dict-literal',
+ 'use-yield-from',
+ 'useless-option-value',
+ ]
checks.extend(
input_api.canned_checks.GetPylint(
input_api,
output_api,
pylintrc='pylintrc',
- disabled_warnings=[
- 'R0801', # suppress pylint duplicate code false positive
- ],
+ disabled_warnings=disabled_warnings,
# Allows pylint to find dependencies imported by scripts in this
# directory.
extra_paths_list=[
@@ -37,7 +56,7 @@
input_api.os_path.join(src_root, 'third_party', 'catapult',
'devil'),
],
- version='2.7'))
+ version='3.2'))
checks.extend(_GetPythonUnitTests(input_api, output_api))
return input_api.RunTests(checks, False)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
'R0801', # suppress pylint duplicate code false positiveCould you please carry this comment over to the `'duplicate-code'` line in the new patchset? (line 27)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
'R0801', # suppress pylint duplicate code false positiveCould you please carry this comment over to the `'duplicate-code'` line in the new patchset? (line 27)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |