Fixed D401,D210

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 19:13:24 +03:00
parent e25265c7b8
commit a3a16d9b52

View file

@ -62,7 +62,7 @@ class Packages(Configs): # pylint: disable=[R0902]
self.packages: list = self.utils.apply_package_pattern(data, packages)
def execute(self) -> None:
"""Calls methods in order."""
"""Call methods in order."""
self.view_process.message('Resolving dependencies')
self.creating_dependencies_list()
self.choose_package_dependencies()
@ -86,7 +86,7 @@ class Packages(Configs): # pylint: disable=[R0902]
self.utils.finished_time(elapsed_time)
def creating_dependencies_list(self) -> None:
"""Creating the full list of dependencies."""
"""Create the full list of dependencies."""
for package in self.packages:
dependencies: tuple = Required(self.data, package, self.flags).resolve()
@ -96,17 +96,17 @@ class Packages(Configs): # pylint: disable=[R0902]
self.dependencies: list = list(OrderedDict.fromkeys(self.dependencies))
def add_dependencies_to_install_order(self) -> None:
"""Adds dependencies in order to install. """
"""Add dependencies in order to install."""
self.install_order.extend(self.dependencies)
def clean_the_main_slackbuilds(self) -> None:
"""Removes packages that already listed in dependencies."""
"""Remove packages that already listed in dependencies."""
for dependency in self.dependencies:
if dependency in self.packages:
self.packages.remove(dependency)
def add_main_packages_to_install_order(self) -> None:
"""Adds main packages in order to install."""
"""Add main packages in order to install."""
self.install_order.extend(self.packages)
def check_for_skipped(self) -> None: