From e7c67e0cfd2b915a22a3ad3835df5cd284c68d6d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 11 May 2023 16:56:54 +0300 Subject: [PATCH] Updated for coding style --- slpkg/binaries/required.py | 8 ++++++-- slpkg/sbos/dependencies.py | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/slpkg/binaries/required.py b/slpkg/binaries/required.py index e990ca36..024fe294 100644 --- a/slpkg/binaries/required.py +++ b/slpkg/binaries/required.py @@ -32,7 +32,9 @@ class Required: def resolve(self) -> tuple: """ Resolve the dependencies. """ - required: list[str] = list(self.remove_deps(self.data[self.name]['requires'].split())) + required: list[str] = list( + self.remove_deps(self.data[self.name]['requires'].split()) + ) # Resolve dependencies for some special repos. if self.repo in self.special_repos: @@ -42,7 +44,9 @@ class Required: else: for req in required: - sub_required: list[str] = list(self.remove_deps(self.data[req]['requires'].split())) + sub_required: list[str] = list( + self.remove_deps(self.data[req]['requires'].split()) + ) for sub in sub_required: required.append(sub) diff --git a/slpkg/sbos/dependencies.py b/slpkg/sbos/dependencies.py index 37084ece..d945ff25 100644 --- a/slpkg/sbos/dependencies.py +++ b/slpkg/sbos/dependencies.py @@ -16,10 +16,14 @@ class Requires: def resolve(self) -> tuple: """ Resolve the dependencies. """ - requires: list[str] = list(self.remove_deps(self.data[self.name]['requires'].split())) + requires: list[str] = list( + self.remove_deps(self.data[self.name]['requires'].split()) + ) for req in requires: - sub_requires: list[str] = list(self.remove_deps(self.data[req]['requires'].split())) + sub_requires: list[str] = list( + self.remove_deps(self.data[req]['requires'].split()) + ) for sub in sub_requires: requires.append(sub)