Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-05-11 16:56:54 +03:00
parent 2185c8ddc0
commit e7c67e0cfd
2 changed files with 12 additions and 4 deletions

View file

@ -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)

View file

@ -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)