From ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1 Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Sat, 11 Mar 2023 06:46:20 +0000 Subject: Format codebase with black and check formatting in CQ Apply rules set by https://gerrit-review.googlesource.com/c/git-repo/+/362954/ across the codebase and fix any lingering errors caught by flake8. Also check black formatting in run_tests (and CQ). Bug: b/267675342 Change-Id: I972d77649dac351150dcfeb1cd1ad0ea2efc1956 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/363474 Reviewed-by: Mike Frysinger Tested-by: Gavin Mak Commit-Queue: Gavin Mak --- repo | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'repo') diff --git a/repo b/repo index ce3df054..c32e52da 100755 --- a/repo +++ b/repo @@ -506,10 +506,10 @@ def gitc_parse_clientdir(gitc_fs_path): """Parse a path in the GITC FS and return its client name. Args: - gitc_fs_path: A subdirectory path within the GITC_FS_ROOT_DIR. + gitc_fs_path: A subdirectory path within the GITC_FS_ROOT_DIR. Returns: - The GITC client name. + The GITC client name. """ if gitc_fs_path == GITC_FS_ROOT_DIR: return None @@ -942,14 +942,14 @@ def resolve_repo_rev(cwd, committish): * xxx: Branch or tag or commit. Args: - cwd: The git checkout to run in. - committish: The REPO_REV argument to resolve. + cwd: The git checkout to run in. + committish: The REPO_REV argument to resolve. Returns: - A tuple of (remote ref, commit) as makes sense for the committish. - For branches, this will look like ('refs/heads/stable', ). - For tags, this will look like ('refs/tags/v1.0', ). - For commits, this will be (, ). + A tuple of (remote ref, commit) as makes sense for the committish. + For branches, this will look like ('refs/heads/stable', ). + For tags, this will look like ('refs/tags/v1.0', ). + For commits, this will be (, ). """ def resolve(committish): ret = run_git('rev-parse', '--verify', '%s^{commit}' % (committish,), @@ -1104,7 +1104,7 @@ class Requirements(object): """Initialize. Args: - requirements: A dictionary of settings. + requirements: A dictionary of settings. """ self.requirements = requirements -- cgit v1.2.3-54-g00ecf