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/virtualenv_wrapper.py b/scripts/virtualenv_wrapper.py
index ed8caf8..32266b2 100755
--- a/scripts/virtualenv_wrapper.py
+++ b/scripts/virtualenv_wrapper.py
@@ -64,8 +64,8 @@
"""Exec command in chromite venv.
Args:
- venvdir: virtualenv directory
- args: Sequence of arguments.
+ venvdir: virtualenv directory
+ args: Sequence of arguments.
"""
venv_python = os.path.join(venvdir, "bin", "python")
os.execve(
@@ -82,10 +82,11 @@
and returns the copy.
Args:
- env_dict: Environment variable dict to use as base, which is not modified.
+ env_dict: Environment variable dict to use as base, which is not
+ modified.
Returns:
- New environment dict for a virtualenv.
+ New environment dict for a virtualenv.
"""
new_env_dict = env_dict.copy()
new_env_dict[_VENV_MARKER] = "1"
@@ -100,10 +101,10 @@
_CreateVenvEnvironment().
Args:
- env_dict: Environment variable dict to check
+ env_dict: Environment variable dict to check
Returns:
- A true value if inside virtualenv, else a false value.
+ A true value if inside virtualenv, else a false value.
"""
# Checking sys.prefix or doing any kind of path check is unreliable because
# we check out chromite to weird places.