From 60af90ec5f66b50846e1fb992bb1c7b8c03370ff Mon Sep 17 00:00:00 2001 From: donoban Date: Mon, 22 Oct 2018 10:14:26 +0200 Subject: [PATCH] Adding # pylint: disable=too-few-public-methods --- qubesmanager/backup.py | 1 + qubesmanager/common_threads.py | 2 ++ qubesmanager/create_new_vm.py | 1 + qubesmanager/qube_manager.py | 3 +++ qubesmanager/restore.py | 1 + qubesmanager/settings.py | 3 ++- 6 files changed, 10 insertions(+), 1 deletion(-) diff --git a/qubesmanager/backup.py b/qubesmanager/backup.py index 542df22..8646fd9 100644 --- a/qubesmanager/backup.py +++ b/qubesmanager/backup.py @@ -45,6 +45,7 @@ import os import asyncio from contextlib import suppress +# pylint: disable=too-few-public-methods class BackupThread(QtCore.QThread): def __init__(self, vm): QtCore.QThread.__init__(self) diff --git a/qubesmanager/common_threads.py b/qubesmanager/common_threads.py index 63bb051..a5dac25 100644 --- a/qubesmanager/common_threads.py +++ b/qubesmanager/common_threads.py @@ -24,6 +24,7 @@ from PyQt4 import QtCore # pylint: disable=import-error from qubesadmin import exc +# pylint: disable=too-few-public-methods class RemoveVMThread(QtCore.QThread): def __init__(self, vm): QtCore.QThread.__init__(self) @@ -37,6 +38,7 @@ class RemoveVMThread(QtCore.QThread): self.error = ("Error removing Qube!", str(ex)) +# pylint: disable=too-few-public-methods class CloneVMThread(QtCore.QThread): def __init__(self, src_vm, dst_name): QtCore.QThread.__init__(self) diff --git a/qubesmanager/create_new_vm.py b/qubesmanager/create_new_vm.py index 88122c3..e81714b 100644 --- a/qubesmanager/create_new_vm.py +++ b/qubesmanager/create_new_vm.py @@ -34,6 +34,7 @@ from . import utils from .ui_newappvmdlg import Ui_NewVMDlg # pylint: disable=import-error +# pylint: disable=too-few-public-methods class CreateVMThread(QtCore.QThread): def __init__(self, app, vmclass, name, label, template, properties): QtCore.QThread.__init__(self) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index ae9322e..bf7e509 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -243,6 +243,7 @@ class VmShutdownMonitor(QtCore.QObject): self.restart_vm_if_needed() +# pylint: disable=too-few-public-methods class StartVMThread(QtCore.QThread): def __init__(self, vm): QtCore.QThread.__init__(self) @@ -256,6 +257,7 @@ class StartVMThread(QtCore.QThread): self.error = ("Error starting Qube!", str(ex)) +# pylint: disable=too-few-public-methods class UpdateVMThread(QtCore.QThread): def __init__(self, vm): QtCore.QThread.__init__(self) @@ -276,6 +278,7 @@ class UpdateVMThread(QtCore.QThread): self.error = ("Error on Qube update!", str(ex)) +# pylint: disable=too-few-public-methods class RunCommandThread(QtCore.QThread): def __init__(self, vm, command_to_run): QtCore.QThread.__init__(self) diff --git a/qubesmanager/restore.py b/qubesmanager/restore.py index 6cb46c7..8312b08 100644 --- a/qubesmanager/restore.py +++ b/qubesmanager/restore.py @@ -43,6 +43,7 @@ from qubesadmin import Qubes, exc from qubesadmin.backup import restore +# pylint: disable=too-few-public-methods class RestoreThread(QtCore.QThread): def __init__(self, backup_restore, vms_to_restore): QtCore.QThread.__init__(self) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 6df925a..e065714 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -46,7 +46,7 @@ from PyQt4 import QtCore, QtGui # pylint: disable=import-error from . import ui_settingsdlg # pylint: disable=no-name-in-module - +# pylint: disable=too-few-public-methods class RenameVMThread(QtCore.QThread): def __init__(self, vm, new_vm_name, dependencies): QtCore.QThread.__init__(self) @@ -92,6 +92,7 @@ class RenameVMThread(QtCore.QThread): self.error = ("Rename error!", repr(ex)) +# pylint: disable=too-few-public-methods class RefreshAppsVMThread(QtCore.QThread): def __init__(self, vm): QtCore.QThread.__init__(self)