diff options
author | Gavin Mak <gavinmak@google.com> | 2023-03-11 06:46:20 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-22 17:46:28 +0000 |
commit | ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1 (patch) | |
tree | dc33ba0e56825b3e007d0589891756724725a465 /wrapper.py | |
parent | 1604cf255f8c1786a23388db6d5277ac7949a24a (diff) | |
download | git-repo-ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1.tar.gz |
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 <vapier@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'wrapper.py')
-rw-r--r-- | wrapper.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -19,14 +19,14 @@ import os | |||
19 | 19 | ||
20 | 20 | ||
21 | def WrapperPath(): | 21 | def WrapperPath(): |
22 | return os.path.join(os.path.dirname(__file__), 'repo') | 22 | return os.path.join(os.path.dirname(__file__), "repo") |
23 | 23 | ||
24 | 24 | ||
25 | @functools.lru_cache(maxsize=None) | 25 | @functools.lru_cache(maxsize=None) |
26 | def Wrapper(): | 26 | def Wrapper(): |
27 | modname = 'wrapper' | 27 | modname = "wrapper" |
28 | loader = importlib.machinery.SourceFileLoader(modname, WrapperPath()) | 28 | loader = importlib.machinery.SourceFileLoader(modname, WrapperPath()) |
29 | spec = importlib.util.spec_from_loader(modname, loader) | 29 | spec = importlib.util.spec_from_loader(modname, loader) |
30 | module = importlib.util.module_from_spec(spec) | 30 | module = importlib.util.module_from_spec(spec) |
31 | loader.exec_module(module) | 31 | loader.exec_module(module) |
32 | return module | 32 | return module |