chromite: shorten, or suppress, slightly overlong pydoc summary lines.
Where it was easy to take a word out, do that. Otherwise suppress.
To avoid --no-verify, remove "(optional)" from pydoc in
cbuildbot/commands.py because it triggers the lint,
`docstring-deprecated-annotations`.
Address some stragglers that have crept in since these CLs were first
made.
BUG=b:233893248
TEST=cros lint + CQ
Change-Id: If0e48e6a7b0a5cfe3668854ec58b6665724ca215
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4560885
Commit-Queue: Trent Apted <tapted@chromium.org>
Tested-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
diff --git a/scripts/tricium_clang_tidy.py b/scripts/tricium_clang_tidy.py
index ed9071f..c394e9b 100644
--- a/scripts/tricium_clang_tidy.py
+++ b/scripts/tricium_clang_tidy.py
@@ -331,7 +331,7 @@
"""Info about an exception that can be sent across processes."""
def __init__(self):
- """Builds an instance; only intended to be called from `except` blocks."""
+ """Builds instance; only intended to be called from `except` blocks."""
self._str = traceback.format_exc()
def __str__(self):
@@ -452,7 +452,7 @@
def collect_lints(
lint_tmpdir: Path, yaml_pool: multiprocessing.Pool
) -> Set[TidyDiagnostic]:
- """Collects the lints for a given directory filled with linting artifacts."""
+ """Collects lints for a given directory filled with linting artifacts."""
json_files = list(lint_tmpdir.glob("*.json"))
pending_parses = yaml_pool.imap(parse_tidy_invocation, json_files)