pylint: Ignore new warnings

This commit is contained in:
Cole Robinson 2014-10-27 19:20:20 -04:00
parent 2d6422e10b
commit cbf38cbe9f
4 changed files with 6 additions and 9 deletions

View File

@ -34,7 +34,7 @@ load-plugins=
# multiple time (only on the command line, not in the configuration file where
# it should appear only once).
disable=Design,Similarities,invalid-name,missing-docstring,line-too-long,too-many-lines,superfluous-parens,bad-whitespace,locally-disabled,no-self-use,unnecessary-lambda,star-args,fixme,global-statement,bare-except,anomalous-backslash-in-string,broad-except,cyclic-import
disable=Design,Similarities,invalid-name,missing-docstring,line-too-long,too-many-lines,superfluous-parens,bad-whitespace,locally-disabled,no-self-use,unnecessary-lambda,star-args,fixme,global-statement,bare-except,anomalous-backslash-in-string,broad-except,cyclic-import,bad-continuation,locally-enabled
[REPORTS]
@ -44,12 +44,6 @@ disable=Design,Similarities,invalid-name,missing-docstring,line-too-long,too-man
# mypackage.mymodule.MyReporterClass.
#output-format=text
# Include message's id in output
include-ids=no
# Include symbolic ids of messages in output
symbols=no
# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".

View File

@ -378,6 +378,7 @@ class vmmCloneVM(vmmGObjectUI):
devtype)
def storage_add(failinfo=None):
# pylint: disable=cell-var-from-loop
storage_row[STORAGE_INFO_DEFINFO] = definfo
storage_row[STORAGE_INFO_DO_DEFAULT] = default
storage_row[STORAGE_INFO_CAN_SHARE] = bool(definfo)

View File

@ -289,7 +289,7 @@ def _chipset_label_from_machine(machine):
def _warn_cpu_thread_topo(threads, cpu_model):
if (threads < 2):
return False
non_ht_cpus = ["athlon", "phenom", "opteron"]
for cpu in non_ht_cpus:
@ -298,6 +298,7 @@ def _warn_cpu_thread_topo(threads, cpu_model):
return False
def _firmware_label_from_loader(vm, loader, force_uefi=False):
domcaps = vm.get_domain_capabilities()
if (domcaps.os.loader.values and
@ -1671,7 +1672,7 @@ class vmmDetails(vmmGObjectUI):
self.widget("cpu-model"), not src.get_active())
self.enable_apply(EDIT_CPU)
def config_cpu_model_changed(self, opque):
def config_cpu_model_changed(self, ignore):
# Warn about hyper-threading setting
cpu_model = self.get_config_cpu_model()
threads = self.widget("cpu-threads").get_value()

View File

@ -1850,6 +1850,7 @@ class ParserRNG(VirtCLIParser):
def set_backend_cb(opts, inst, cliname, val):
ignore = opts
ignore = inst
# pylint: disable=attribute-defined-outside-init
if cliname == "backend_mode":
self._cli_backend_mode = val
elif cliname == "backend_type":