Fixed docstrings

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-19 22:44:11 +03:00
parent 7c4c685bee
commit 0fa2555b41

View file

@ -11,10 +11,7 @@ from slpkg.binaries.required import Required
class Tracking(Configs): # pylint: disable=[R0902]
"""
Tracking of the package dependencies.
"""
"""Tracking of the package dependencies."""
def __init__(self, data: dict, packages: list, flags: list, repository: str):
super(Configs, self).__init__()
@ -41,8 +38,7 @@ class Tracking(Configs): # pylint: disable=[R0902]
('-p', '--pkg-version'), flags)
def package(self) -> None:
""" Call methods and prints the results.
"""
"""Call methods and prints the results."""
self.view_the_title()
for package in self.packages:
@ -62,28 +58,24 @@ class Tracking(Configs): # pylint: disable=[R0902]
self.view_summary_of_tracking(package)
def view_the_title(self) -> None:
""" Prints the title.
"""
"""Prints the title."""
print("The list below shows the packages with dependencies:\n")
self.packages: list = self.utils.apply_package_pattern(self.data, self.packages)
def view_the_main_package(self) -> None:
""" Prints the main package.
"""
"""Prints the main package."""
print(self.package_line)
print(f"{'':>1}{self.llc}{self.hl}", end='')
def view_requires(self) -> None:
""" Prints the requires.
"""
"""Prints the requires."""
if self.count_requires == 1:
print(f"{'':>1}{self.require_line}")
else:
print(f"{'':>4}{self.require_line}")
def view_no_dependencies(self) -> None:
""" Prints the message 'No dependencies'.
"""
"""Prints the message 'No dependencies'."""
if not self.package_requires:
print(f"{'':>1}{self.cyan}No dependencies{self.endc}")