From: John Mulligan Date: Tue, 12 Dec 2023 22:15:05 +0000 (-0500) Subject: cepadm: black reformat build.py X-Git-Tag: v19.3.0~283^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b53a2e34fdafbfa07be47469795041599226174;p=ceph.git cepadm: black reformat build.py Signed-off-by: John Mulligan --- diff --git a/src/cephadm/build.py b/src/cephadm/build.py index 3ca8cdd4e26..da237174ad0 100755 --- a/src/cephadm/build.py +++ b/src/cephadm/build.py @@ -165,7 +165,9 @@ class DependencyInfo: def __init__(self, config): self._config = config self._deps = [] - self._reqs = {s.name: s.package_spec for s in self._config.requirements} + self._reqs = { + s.name: s.package_spec for s in self._config.requirements + } @property def requirements(self): @@ -186,7 +188,6 @@ class DependencyInfo: json.dump(self._deps, fh) - def _run(command, *args, **kwargs): log.info( 'Running cmd: %s', ' '.join(shlex.quote(str(c)) for c in command) @@ -255,7 +256,9 @@ def _build(dest, src, config): shutil.rmtree(tempdir) -def _ignore_cephadmlib(source_dir, names, ignore_suffixes=None, ignore_exact=None): +def _ignore_cephadmlib( + source_dir, names, ignore_suffixes=None, ignore_exact=None +): # shutil.copytree callback: return the list of names *to ignore* suffixes = ["~", ".old", ".swp", ".pyc", ".pyo", ".so", "__pycache__"] exact = []