]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cepadm: black reformat build.py
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 12 Dec 2023 22:15:05 +0000 (17:15 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 13 Dec 2023 15:19:00 +0000 (10:19 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/build.py

index 3ca8cdd4e262eb628a3f9b5ccc66c9c3a75a631c..da237174ad0def457c798e4a9ddb63ee2825eace 100755 (executable)
@@ -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 = []