From 7c4c685bee83e53f247318ac8f8a22a9bc04c06b Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 19 May 2024 22:34:05 +0300 Subject: [PATCH] Fixed docstrings Signed-off-by: Dimitris Zlatanidis --- slpkg/update_repositories.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/slpkg/update_repositories.py b/slpkg/update_repositories.py index cdb102b1..de683497 100644 --- a/slpkg/update_repositories.py +++ b/slpkg/update_repositories.py @@ -18,11 +18,8 @@ from slpkg.sbos.sbo_generate import SBoGenerate class UpdateRepositories(Configs): # pylint: disable=[R0902] - - """ - Updates the local repositories and install the data - into the database. - """ + """Updates the local repositories + and install the data into the database.""" def __init__(self, flags: list, repository: str): super(Configs, self).__init__() @@ -42,8 +39,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] ('-y', '--yes'), flags) def repositories(self) -> None: - """ Checks and call the repositories for update. - """ + """Checks and call the repositories for update.""" self.repos_for_update: dict = self.check_updates.updates() if not any(list(self.repos_for_update.values())): @@ -55,7 +51,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] self.run_update() def import_gpg_key(self, repo: str) -> None: - """ Imports the GPG KEY. + """Imports the GPG KEY. Args: mirror (str): Repository GPG mirror key. @@ -91,7 +87,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] print(f'Getting GPG key from: {mirror}\n') def run_update(self) -> None: - """ Update the repositories by category. + """Update the repositories by category. """ for repo, update in self.repos_for_update.items(): if update: @@ -103,7 +99,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] self.update_binary_repos(repo) def view_downloading_message(self, repo: str) -> None: - """ Prints the syncing message. + """Prints the syncing message. Args: repo (str): Repository name.