scripts: reformat files that trigger the line-too-long lint.
Candidate files were found with `cros lint` and they were then
formatted with `pyformat --indent_size=4` (pyink), and again by
./chromite/scripts/black (which doesn't wrap comments).
Some questionable wrappings were fixed by hand.
BUG=b:233893248
TEST=CQ
Change-Id: I9effdd9469674610db76c213667cccf0dbc4d6c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4520025
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_unittest.py b/scripts/tricium_clang_tidy_unittest.py
index 4fb1d83..3bda2e4 100644
--- a/scripts/tricium_clang_tidy_unittest.py
+++ b/scripts/tricium_clang_tidy_unittest.py
@@ -22,7 +22,8 @@
class Replacement(NamedTuple):
"""A YAML `tricium_clang_tidy.TidyReplacement`.
- The data contained in YAML is slightly different than what `TidyReplacement`s
+ The data contained in YAML is slightly different than what
+ `TidyReplacement`s
carry.
"""
@@ -126,16 +127,16 @@
Writing to open'ed files is not supported.
Args:
- contents: a |dict| mapping |file_path| => file_contents.
- default: a default string to return if the given |file_path| doesn't
- exist in |contents|.
+ contents: a |dict| mapping |file_path| => file_contents.
+ default: a default string to return if the given |file_path| doesn't
+ exist in |contents|.
Returns:
- |contents[file_path]| if it exists; otherwise, |default|.
+ |contents[file_path]| if it exists; otherwise, |default|.
Raises:
- If |default| is None and |contents[file_path]| does not exist, this will
- raise a |ValueError|.
+ If |default| is None and |contents[file_path]| does not exist, this will
+ raise a |ValueError|.
"""
if contents is None: