diff options
author | Craig Hesling <hesling@chromium.org> | 2021-07-30 22:03:33 -0400 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-02 19:54:10 +0000 |
commit | 5af75662e7d236f887cbb1c295e4317fce00184b (patch) | |
tree | d28efdb402025cf3418ac5e6cf8545d156ca1ddc /util | |
parent | a7a96fc737e40f110bee0a33299c982cdebc7014 (diff) | |
download | chrome-ec-5af75662e7d236f887cbb1c295e4317fce00184b.tar.gz |
pylintrc: Copy Chromium OS platform2's config
This requests that cros lint (and repo upload hook) use the new
Chromium OS 4 space indent policy.
Since legacy python scripts still use 2 space, I added pylint ignore
statements to the individual files to disable indentation checking.
Note: There are still valid pylint errors in some of these legacy scripts.
BRANCH=none
BUG=none
TEST=cros lint util/*.py
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I439f5a87bc50f1f43a4996e574bbc0626922a88e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3064761
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/config_option_check.py | 5 | ||||
-rw-r--r-- | util/run_ects.py | 4 | ||||
-rwxr-xr-x | util/uart_stress_tester.py | 4 | ||||
-rwxr-xr-x | util/unpack_ftb.py | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/util/config_option_check.py b/util/config_option_check.py index 6b6d3c0bc9..29e8fb8611 100755 --- a/util/config_option_check.py +++ b/util/config_option_check.py @@ -2,6 +2,11 @@ # Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# +# Ignore indention messages, since legacy scripts use 2 spaces instead of 4. +# pylint: disable=bad-indentation,docstring-section-indent +# pylint: disable=docstring-trailing-quotes + """Configuration Option Checker. Script to ensure that all configuration options for the Chrome EC are defined diff --git a/util/run_ects.py b/util/run_ects.py index a633430113..9178328e5f 100644 --- a/util/run_ects.py +++ b/util/run_ects.py @@ -1,6 +1,10 @@ # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# +# Ignore indention messages, since legacy scripts use 2 spaces instead of 4. +# pylint: disable=bad-indentation,docstring-section-indent +# pylint: disable=docstring-trailing-quotes """Run all eCTS tests and publish results.""" diff --git a/util/uart_stress_tester.py b/util/uart_stress_tester.py index c71826da25..b3db60060e 100755 --- a/util/uart_stress_tester.py +++ b/util/uart_stress_tester.py @@ -3,6 +3,10 @@ # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# +# Ignore indention messages, since legacy scripts use 2 spaces instead of 4. +# pylint: disable=bad-indentation,docstring-section-indent +# pylint: disable=docstring-trailing-quotes """ChromeOS Uart Stress Test diff --git a/util/unpack_ftb.py b/util/unpack_ftb.py index 62f5161a4a..03127a7089 100755 --- a/util/unpack_ftb.py +++ b/util/unpack_ftb.py @@ -2,6 +2,10 @@ # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# +# Ignore indention messages, since legacy scripts use 2 spaces instead of 4. +# pylint: disable=bad-indentation,docstring-section-indent +# pylint: disable=docstring-trailing-quotes # Note: This is a py2/3 compatible file. |