Fixed D401,D205

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 17:05:41 +03:00
parent 0df1f9cd43
commit 6da1d8d80f

View file

@ -15,7 +15,7 @@ from slpkg.progress_bar import ProgressBar
class MultiProcess(Configs): # pylint: disable=[R0902]
"""Creates parallel process between progress bar and process."""
"""Create parallel process between progress bar and process."""
def __init__(self, flags: list = None):
super(Configs, self).__init__()
@ -38,7 +38,8 @@ class MultiProcess(Configs): # pylint: disable=[R0902]
('-r', '--reinstall'), flags)
def process_and_log(self, command: str, filename: str, progress_message: str) -> None:
"""Starting a multiprocessing process.
"""Start a multiprocessing process.
Args:
command: The command of process
filename: The filename of process.
@ -117,7 +118,7 @@ class MultiProcess(Configs): # pylint: disable=[R0902]
raise SystemExit(process.returncode)
def _error_process(self) -> None:
"""Prints error message for a process."""
"""Print error message for a process."""
if not self.progress_bar_conf and not self.option_for_progress_bar:
message: str = 'Error occurred with process. Please check the log file.'
print()