VirtualBox

Ignore:
Timestamp:
Jun 11, 2019 11:58:28 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131247
Message:

ValKit: New pylint version - cleanup in progress.

Location:
trunk/src/VBox/ValidationKit/testmanager
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/add_build.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    4444from testmanager.core.build import BuildDataEx, BuildLogic, BuildCategoryData;
    4545
    46 class Build(object): # pylint: disable=R0903
     46class Build(object): # pylint: disable=too-few-public-methods
    4747    """
    4848    Add build info into Test Manager database.
  • trunk/src/VBox/ValidationKit/testmanager/batch/check_for_deleted_builds.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    5353
    5454
    55 class BuildChecker(object): # pylint: disable=R0903
     55class BuildChecker(object): # pylint: disable=too-few-public-methods
    5656    """
    5757    Add build info into Test Manager database.
  • trunk/src/VBox/ValidationKit/testmanager/batch/close_orphaned_testsets.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
  • trunk/src/VBox/ValidationKit/testmanager/batch/del_build.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
  • trunk/src/VBox/ValidationKit/testmanager/batch/filearchiver.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    5353
    5454
    55 class FileArchiverBatchJob(object): # pylint: disable=R0903
     55class FileArchiverBatchJob(object): # pylint: disable=too-few-public-methods
    5656    """
    5757    Log+files comp
  • trunk/src/VBox/ValidationKit/testmanager/batch/regen_sched_queues.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    4949
    5050
    51 class RegenSchedQueues(object): # pylint: disable=R0903
     51class RegenSchedQueues(object): # pylint: disable=too-few-public-methods
    5252    """
    5353    Regenerates all the scheduling queues.
  • trunk/src/VBox/ValidationKit/testmanager/batch/vcs_import.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    4848from common                         import utils;
    4949
    50 class VcsImport(object): # pylint: disable=R0903
     50class VcsImport(object): # pylint: disable=too-few-public-methods
    5151    """
    5252    Imports revision history from a VSC into the Test Manager database.
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r78770 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    275275
    276276
    277 class VirtualTestSheriff(object): # pylint: disable=R0903
     277class VirtualTestSheriff(object): # pylint: disable=too-few-public-methods
    278278    """
    279279    Add build info into Test Manager database.
  • trunk/src/VBox/ValidationKit/testmanager/core/base.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55"""
     
    4444# Python 3 hacks:
    4545if sys.version_info[0] >= 3:
    46     long = int      # pylint: disable=W0622,C0103
     46    long = int      # pylint: disable=redefined-builtin,invalid-name
    4747
    4848
     
    5151    For exceptions raised by any TestManager component.
    5252    """
    53     pass;
     53    pass;                               # pylint: disable=unnecessary-pass
    5454
    5555
     
    5959    Used by ModelLogicBase decendants.
    6060    """
    61     pass;
     61    pass;                               # pylint: disable=unnecessary-pass
    6262
    6363
     
    6767    Used by ModelLogicBase decendants.
    6868    """
    69     pass;
     69    pass;                               # pylint: disable=unnecessary-pass
    7070
    7171
     
    7575    Used by ModelLogicBase decendants.
    7676    """
    77     pass;
     77    pass;                               # pylint: disable=unnecessary-pass
    7878
    7979
     
    8383    Used by ModelLogicBase decendants.
    8484    """
    85     pass;
     85    pass;                               # pylint: disable=unnecessary-pass
    8686
    8787
     
    9191    Used by ModelLogicBase decendants.
    9292    """
    93     pass;
     93    pass;                               # pylint: disable=unnecessary-pass
    9494
    9595
     
    100100    Used by ModelLogicBase decendants.
    101101    """
    102     pass;
    103 
    104 
    105 class ModelBase(object): # pylint: disable=R0903
     102    pass;                               # pylint: disable=unnecessary-pass
     103
     104
     105class ModelBase(object): # pylint: disable=too-few-public-methods
    106106    """
    107107    Something all classes in the logical model inherits from.
     
    115115
    116116
    117 class ModelDataBase(ModelBase): # pylint: disable=R0903
     117class ModelDataBase(ModelBase): # pylint: disable=too-few-public-methods
    118118    """
    119119    Something all classes in the data classes in the logical model inherits from.
     
    198198        if sPrefix in ['id', 'uid', 'i', 'off', 'pct']:
    199199            return [-1, '', '-1',];
    200         elif sPrefix in ['l', 'c',]:
     200        if sPrefix in ['l', 'c',]:
    201201            return [long(-1), '', '-1',];
    202         elif sPrefix == 'f':
     202        if sPrefix == 'f':
    203203            return ['',];
    204         elif sPrefix in ['enm', 'ip', 's', 'ts', 'uuid']:
     204        if sPrefix in ['enm', 'ip', 's', 'ts', 'uuid']:
    205205            return ['',];
    206         elif sPrefix in ['ai', 'aid', 'al', 'as']:
     206        if sPrefix in ['ai', 'aid', 'al', 'as']:
    207207            return [[], '', None]; ## @todo ??
    208         elif sPrefix == 'bm':
     208        if sPrefix == 'bm':
    209209            return ['', [],]; ## @todo bitmaps.
    210210        raise TMExceptionBase('Unable to classify "%s" (prefix %s)' % (sAttr, sPrefix));
     
    370370
    371371        # Check the NULL requirements of the primary ID(s) for the 'add' and 'edit' actions.
    372         if   enmValidateFor == ModelDataBase.ksValidateFor_Add \
    373           or enmValidateFor == ModelDataBase.ksValidateFor_AddForeignId \
    374           or enmValidateFor == ModelDataBase.ksValidateFor_Edit:
     372        if enmValidateFor in (ModelDataBase.ksValidateFor_Add,
     373                              ModelDataBase.ksValidateFor_AddForeignId,
     374                              ModelDataBase.ksValidateFor_Edit,):
    375375            fMustBeNull = enmValidateFor == ModelDataBase.ksValidateFor_Add;
    376376            sAttr = getattr(self, 'ksIdAttr', None);
     
    572572        if iValue < iMin:
    573573            return (iValue, 'Value too small (min %d)' % (iMin,));
    574         elif iValue > iMax:
     574        if iValue > iMax:
    575575            return (iValue, 'Value too high (max %d)' % (iMax,));
    576576        return (iValue, None);
     
    596596        if lMin is not None and lValue < lMin:
    597597            return (lValue, 'Value too small (min %d)' % (lMin,));
    598         elif lMax is not None and lValue > lMax:
     598        if lMax is not None and lValue > lMax:
    599599            return (lValue, 'Value too high (max %d)' % (lMax,));
    600600        return (lValue, None);
     
    662662
    663663        try:
    664             socket.inet_pton(socket.AF_INET, sValue); # pylint: disable=E1101
     664            socket.inet_pton(socket.AF_INET, sValue); # pylint: disable=no-member
    665665        except:
    666666            try:
    667                 socket.inet_pton(socket.AF_INET6, sValue); # pylint: disable=E1101
     667                socket.inet_pton(socket.AF_INET6, sValue); # pylint: disable=no-member
    668668            except:
    669669                return (sValue, 'Not a valid IP address.');
     
    10671067
    10681068
    1069 # pylint: disable=E1101,C0111,R0903
     1069# pylint: disable=no-member,missing-docstring,too-few-public-methods
    10701070class ModelDataBaseTestCase(unittest.TestCase):
    10711071    """
     
    12411241    def __init__(self):
    12421242        ModelBase.__init__(self);
    1243         self.aCriteria = []; # type: list[FilterCriterion]
     1243        self.aCriteria = [] # type: list[FilterCriterion]
    12441244
    12451245    def _initFromParamsWorker(self, oDisp, oCriterion):
     
    12851285
    12861286
    1287 class ModelLogicBase(ModelBase): # pylint: disable=R0903
     1287class ModelLogicBase(ModelBase): # pylint: disable=too-few-public-methods
    12881288    """
    12891289    Something all classes in the logic classes the logical model inherits from.
     
    13281328
    13291329
    1330 class AttributeChangeEntry(object): # pylint: disable=R0903
     1330class AttributeChangeEntry(object): # pylint: disable=too-few-public-methods
    13311331    """
    13321332    Data class representing the changes made to one attribute.
     
    13401340        self.sOldText       = sOldText;
    13411341
    1342 class AttributeChangeEntryPre(AttributeChangeEntry): # pylint: disable=R0903
     1342class AttributeChangeEntryPre(AttributeChangeEntry): # pylint: disable=too-few-public-methods
    13431343    """
    13441344    AttributeChangeEntry for preformatted values.
     
    13481348        AttributeChangeEntry.__init__(self, sAttr, oNewRaw, oOldRaw, sNewText, sOldText);
    13491349
    1350 class ChangeLogEntry(object): # pylint: disable=R0903
     1350class ChangeLogEntry(object): # pylint: disable=too-few-public-methods
    13511351    """
    13521352    A change log entry returned by the fetchChangeLog method typically
  • trunk/src/VBox/ValidationKit/testmanager/core/build.py

    r76553 r79087  
    143143
    144144
    145 class BuildCategoryLogic(ModelLogicBase): # pylint: disable=R0903
     145class BuildCategoryLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    146146    """
    147147    Build categories database logic.
     
    502502
    503503
    504 class BuildLogic(ModelLogicBase): # pylint: disable=R0903
     504class BuildLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    505505    """
    506506    Build database logic (covers build categories as well as builds).
     
    867867#
    868868
    869 # pylint: disable=C0111
     869# pylint: disable=missing-docstring
    870870class BuildCategoryDataTestCase(ModelDataBaseTestCase):
    871871    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/buildblacklist.py

    r76553 r79087  
    119119
    120120
    121 class BuildBlacklistLogic(ModelLogicBase): # pylint: disable=R0903
     121class BuildBlacklistLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    122122    """
    123123    Build Back List logic.
  • trunk/src/VBox/ValidationKit/testmanager/core/buildsource.py

    r76553 r79087  
    150150        return (oNewValue, sError);
    151151
    152 class BuildSourceLogic(ModelLogicBase): # pylint: disable=R0903
     152class BuildSourceLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    153153    """
    154154    Build source database logic.
     
    504504#
    505505
    506 # pylint: disable=C0111
     506# pylint: disable=missing-docstring
    507507class BuildSourceDataTestCase(ModelDataBaseTestCase):
    508508    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/db.py

    r76553 r79087  
    214214        if config.g_ksDatabasePort is not None:
    215215            dArgs['port'] = config.g_ksDatabasePort;
    216         self._oConn             = psycopg2.connect(**dArgs); # pylint: disable=W0142
     216        self._oConn             = psycopg2.connect(**dArgs); # pylint: disable=star-args
    217217        self._oConn.set_client_encoding('UTF-8');
    218218        self._oCursor           = self._oConn.cursor();
     
    220220        self._oExplainCursor    = None;
    221221        if config.g_kfWebUiSqlTraceExplain and config.g_kfWebUiSqlTrace:
    222             self._oExplainConn  = psycopg2.connect(**dArgs); # pylint: disable=W0142
     222            self._oExplainConn  = psycopg2.connect(**dArgs); # pylint: disable=star-args
    223223            self._oExplainConn.set_client_encoding('UTF-8');
    224224            self._oExplainCursor = self._oExplainConn.cursor();
     
    701701            if config.g_ksDatabasePort is not None:
    702702                dArgs['port'] = config.g_ksDatabasePort;
    703             self._oExplainConn  = psycopg2.connect(**dArgs); # pylint: disable=W0142
     703            self._oExplainConn  = psycopg2.connect(**dArgs); # pylint: disable=star-args
    704704            self._oExplainCursor = self._oExplainConn.cursor();
    705705        return True;
  • trunk/src/VBox/ValidationKit/testmanager/core/failurecategory.py

    r76553 r79087  
    109109
    110110
    111 class FailureCategoryLogic(ModelLogicBase): # pylint: disable=R0903
     111class FailureCategoryLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    112112    """
    113113    Failure Category logic.
     
    149149
    150150
    151     def fetchForChangeLog(self, idFailureCategory, iStart, cMaxRows, tsNow): # pylint: disable=R0914
     151    def fetchForChangeLog(self, idFailureCategory, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals
    152152        """
    153153        Fetches change log entries for a failure reason.
  • trunk/src/VBox/ValidationKit/testmanager/core/failurereason.py

    r76553 r79087  
    143143
    144144
    145 class FailureReasonLogic(ModelLogicBase): # pylint: disable=R0903
     145class FailureReasonLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    146146    """
    147147    Failure Reason logic.
     
    276276
    277277
    278     def fetchForChangeLog(self, idFailureReason, iStart, cMaxRows, tsNow): # pylint: disable=R0914
     278    def fetchForChangeLog(self, idFailureReason, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals
    279279        """
    280280        Fetches change log entries for a failure reason.
  • trunk/src/VBox/ValidationKit/testmanager/core/globalresource.py

    r76553 r79087  
    308308#
    309309
    310 # pylint: disable=C0111
     310# pylint: disable=missing-docstring
    311311class GlobalResourceDataTestCase(ModelDataBaseTestCase):
    312312    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/report.py

    r76553 r79087  
    6060
    6161
    62 class ReportModelBase(ModelLogicBase): # pylint: disable=R0903
     62class ReportModelBase(ModelLogicBase): # pylint: disable=too-few-public-methods
    6363    """
    6464    Something all report logic(/miner) classes inherit from.
     
    242242class ReportFailureReasonTransient(ReportTransientBase):
    243243    """ Details on the test where a failure reason was first/last seen.  """
    244     def __init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone,  # pylint: disable=R0913
     244    def __init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone,  # pylint: disable=too-many-arguments
    245245                 iPeriod, fEnter, oReason):
    246246        ReportTransientBase.__init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone, iPeriod, fEnter,
     
    530530
    531531
    532 class ReportLazyModel(ReportModelBase): # pylint: disable=R0903
     532class ReportLazyModel(ReportModelBase): # pylint: disable=too-few-public-methods
    533533    """
    534534    The 'lazy bird' report model class.
     
    890890
    891891
    892 class ReportGraphModel(ReportModelBase): # pylint: disable=R0903
     892class ReportGraphModel(ReportModelBase): # pylint: disable=too-few-public-methods
    893893    """
    894894    Extended report model used when generating the more complicated graphs
     
    977977
    978978
    979     def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects, # pylint: disable=R0913
     979    def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects, # pylint: disable=too-many-arguments
    980980                 aidTestBoxes, aidBuildCats, aidTestCases, fSepTestVars):
    981981        assert(sSubject == self.ksSubEverything); # dummy
  • trunk/src/VBox/ValidationKit/testmanager/core/schedgroup.py

    r76553 r79087  
    259259    def __init__(self):
    260260        SchedGroupData.__init__(self);
    261         self.aoMembers          = [];       # type: SchedGroupMemberDataEx
     261        self.aoMembers          = []        # type: SchedGroupMemberDataEx
    262262
    263263        # Two build sources for convenience sake.
    264         self.oBuildSrc          = None;     # type: TestBoxData
    265         self.oBuildSrcValidationKit = None; # type: TestBoxData
     264        self.oBuildSrc          = None      # type: TestBoxData
     265        self.oBuildSrcValidationKit = None  # type: TestBoxData
    266266        # List of test boxes that uses this group for convenience.
    267         self.aoTestBoxes        = None;     # type: list[TestBoxData]
     267        self.aoTestBoxes        = None      # type: list[TestBoxData]
    268268
    269269    def _initExtraMembersFromDb(self, oDb, tsNow = None, sPeriodBack = None):
     
    421421
    422422
    423 class SchedGroupLogic(ModelLogicBase): # pylint: disable=R0903
     423class SchedGroupLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    424424    """
    425425    SchedGroup logic.
     
    578578                raise TMRowInUse('Scheduling group #%d is associated with one or more test boxes: %s'
    579579                                 % (idSchedGroup, ', '.join(asTestBoxes),));
    580             else:
    581                 # Reassign testboxes to scheduling group #1 (the default group).
    582                 oTbLogic = TestBoxLogic(self._oDb);
    583                 for oTestBox in oData.aoTestBoxes:
    584                     oTbCopy = TestBoxData().initFromOther(oTestBox);
    585                     oTbCopy.idSchedGroup = 1;
    586                     oTbLogic.editEntry(oTbCopy, uidAuthor, fCommit = False);
    587 
    588                 oData = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup);
    589                 if oData.aoTestBoxes:
    590                     raise TMRowInUse('More testboxes was added to the scheduling group as we were trying to delete it.');
     580            # Reassign testboxes to scheduling group #1 (the default group).
     581            oTbLogic = TestBoxLogic(self._oDb);
     582            for oTestBox in oData.aoTestBoxes:
     583                oTbCopy = TestBoxData().initFromOther(oTestBox);
     584                oTbCopy.idSchedGroup = 1;
     585                oTbLogic.editEntry(oTbCopy, uidAuthor, fCommit = False);
     586
     587            oData = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup);
     588            if oData.aoTestBoxes:
     589                raise TMRowInUse('More testboxes was added to the scheduling group as we were trying to delete it.');
    591590
    592591        #
     
    982981#
    983982
    984 # pylint: disable=C0111
     983# pylint: disable=missing-docstring
    985984class SchedGroupMemberDataTestCase(ModelDataBaseTestCase):
    986985    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55
     
    352352        self.cMissingGangMembers    = 1;
    353353
    354     def initFromValues(self, idSchedGroup, idGenTestCaseArgs, idTestGroup, aidTestGroupPreReqs, # pylint: disable=R0913
     354    def initFromValues(self, idSchedGroup, idGenTestCaseArgs, idTestGroup, aidTestGroupPreReqs, # pylint: disable=too-many-arguments
    355355                       bmHourlySchedule, cMissingGangMembers,
    356356                       idItem = None, offQueue = None, tsConfig = None, tsLastScheduled = None, idTestSetGangLeader = None):
     
    15061506#
    15071507
    1508 # pylint: disable=C0111
     1508# pylint: disable=missing-docstring
    15091509class SchedQueueDataTestCase(ModelDataBaseTestCase):
    15101510    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/schedulerbeci.py

    r76553 r79087  
    3434
    3535
    36 class SchdulerBeci(SchedulerBase): # pylint: disable=R0903
     36class SchdulerBeci(SchedulerBase): # pylint: disable=too-few-public-methods
    3737    """
    3838    The best-effort-continuous-integration scheduler, BECI for short.
  • trunk/src/VBox/ValidationKit/testmanager/core/systemchangelog.py

    r76553 r79087  
    3636
    3737
    38 class SystemChangelogEntry(object): # pylint: disable=R0902
     38class SystemChangelogEntry(object): # pylint: disable=too-many-instance-attributes
    3939    """
    4040    System changelog entry.
     
    7171
    7272    ## Mapping a changelog entry kind to a table, key and clue.
    73     kdWhatToTable = dict({  # pylint: disable=W0142
     73    kdWhatToTable = dict({  # pylint: disable=star-args
    7474        ksWhat_TestBox:          ( 'TestBoxes',          'idTestBox',           None, ),
    7575        ksWhat_TestCase:         ( 'TestCasees',         'idTestCase',          None, ),
  • trunk/src/VBox/ValidationKit/testmanager/core/systemlog.py

    r76553 r79087  
    3737
    3838
    39 class SystemLogData(ModelDataBase):  # pylint: disable=R0902
     39class SystemLogData(ModelDataBase):  # pylint: disable=too-many-instance-attributes
    4040    """
    4141    SystemLog Data.
     
    166166#
    167167
    168 # pylint: disable=C0111
     168# pylint: disable=missing-docstring
    169169class SystemLogDataTestCase(ModelDataBaseTestCase):
    170170    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testbox.py

    r76886 r79087  
    9999    def __init__(self):
    100100        TestBoxInSchedGroupData.__init__(self);
    101         self.oSchedGroup        = None; # type: SchedGroupData
     101        self.oSchedGroup        = None  # type: SchedGroupData
    102102
    103103    def initFromDbRowEx(self, aoRow, oDb, tsNow = None, sPeriodBack = None):
     
    111111
    112112
    113 # pylint: disable=C0103
    114 class TestBoxData(ModelDataBase):  # pylint: disable=R0902
     113# pylint: disable=invalid-name
     114class TestBoxData(ModelDataBase):  # pylint: disable=too-many-instance-attributes
    115115    """
    116116    TestBox Data.
     
    476476            if uFam == 0xf:
    477477                if uMod < 0x10:                             return 'K8_130nm';
    478                 if uMod >= 0x60 and uMod < 0x80:            return 'K8_65nm';
     478                if 0x60 <= uMod < 0x80:                     return 'K8_65nm';
    479479                if uMod >= 0x40:                            return 'K8_90nm_AMDV';
    480480                if uMod in [0x21, 0x23, 0x2b, 0x37, 0x3f]:  return 'K8_90nm_DualCore';
     
    567567    def __init__(self):
    568568        TestBoxData.__init__(self);
    569         self.aoInSchedGroups        = [];   # type: list[TestBoxInSchedGroupData]
     569        self.aoInSchedGroups        = []    # type: list[TestBoxInSchedGroupData]
    570570
    571571    def _initExtraMembersFromDb(self, oDb, tsNow = None, sPeriodBack = None):
     
    634634        return aoNewValues;
    635635
    636     def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=R0914
     636    def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=too-many-locals
    637637        """
    638638        Validate special arrays and requirement expressions.
     
    773773                TestBoxDataEx.__init__(self);
    774774                self.tsCurrent = None;  # CURRENT_TIMESTAMP
    775                 self.oStatus   = None;  # type: TestBoxStatusData
     775                self.oStatus   = None   # type: TestBoxStatusData
    776776
    777777        from testmanager.core.testboxstatus import TestBoxStatusData;
     
    811811        return aoRows;
    812812
    813     def fetchForChangeLog(self, idTestBox, iStart, cMaxRows, tsNow): # pylint: disable=R0914
     813    def fetchForChangeLog(self, idTestBox, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals
    814814        """
    815815        Fetches change log entries for a testbox.
     
    10131013
    10141014
    1015     def updateOnSignOn(self, idTestBox, idGenTestBox, sTestBoxAddr, sOs, sOsVersion, # pylint: disable=R0913,R0914
     1015    def updateOnSignOn(self, idTestBox, idGenTestBox, sTestBoxAddr, sOs, sOsVersion, # pylint: disable=too-many-arguments,too-many-locals
    10161016                       sCpuVendor, sCpuArch, sCpuName, lCpuRevision, cCpus, fCpuHwVirt, fCpuNestedPaging, fCpu64BitGuest,
    10171017                       fChipsetIoMmu, fRawMode, cMbMemory, cMbScratch, sReport, iTestBoxScriptRev, iPythonHexVersion):
     
    11531153        except TMInFligthCollision:
    11541154            return False;
    1155         except:
    1156             raise;
    11571155        return True;
    11581156
     
    11771175#
    11781176
    1179 # pylint: disable=C0111
     1177# pylint: disable=missing-docstring
    11801178class TestBoxDataTestCase(ModelDataBaseTestCase):
    11811179    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py

    r76553 r79087  
    3333import re;
    3434import os;
    35 import string;                          # pylint: disable=W0402
     35import string;                          # pylint: disable=deprecated-module
    3636import sys;
    3737import uuid;
     
    5353# Python 3 hacks:
    5454if sys.version_info[0] >= 3:
    55     long = int;     # pylint: disable=W0622,C0103
     55    long = int;     # pylint: disable=redefined-builtin,invalid-name
    5656
    5757
     
    6060    Exception class for TestBoxController.
    6161    """
    62     pass;
    63 
    64 
    65 class TestBoxController(object): # pylint: disable=R0903
     62    pass;                               # pylint: disable=unnecessary-pass
     63
     64
     65class TestBoxController(object): # pylint: disable=too-few-public-methods
    6666    """
    6767    TestBox Controller class.
     
    190190        """
    191191        sValue = self._getStringParam(sName, [ 'True', 'true', '1', 'False', 'false', '0'], sDefValue = str(fDefValue));
    192         return sValue == 'True' or sValue == 'true' or sValue == '1';
     192        return sValue in ('True', 'true', '1',);
    193193
    194194    def _getIntParam(self, sName, iMin = None, iMax = None):
     
    346346        return fSizeOk;
    347347
    348     def _actionSignOn(self):        # pylint: disable=R0914
     348    def _actionSignOn(self):        # pylint: disable=too-many-locals
    349349        """ Implement sign-on """
    350350
     
    401401            cPctScratchDiff = 100;
    402402
    403         # pylint: disable=R0916
     403        # pylint: disable=too-many-boolean-expressions
    404404        if   self._sTestBoxAddr != oTestBox.ip \
    405405          or sOs                != oTestBox.sOs \
     
    738738
    739739            abBuf = oSrcFile.read(cbToRead);
    740             oDstFile.write(abBuf); # pylint: disable=E1103
     740            oDstFile.write(abBuf); # pylint: disable=maybe-no-member
    741741            del abBuf;
    742742
    743         oDstFile.close(); # pylint: disable=E1103
     743        oDstFile.close(); # pylint: disable=maybe-no-member
    744744
    745745        # Done.
  • trunk/src/VBox/ValidationKit/testmanager/core/testboxstatus.py

    r76553 r79087  
    297297#
    298298
    299 # pylint: disable=C0111
     299# pylint: disable=missing-docstring
    300300class TestBoxStatusDataTestCase(ModelDataBaseTestCase):
    301301    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testcase.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55"""
     
    857857        return aoNewValues;
    858858
    859     def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=R0914
     859    def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=too-many-locals
    860860        """
    861861        Validate special arrays and requirement expressions.
     
    999999        return aoRows;
    10001000
    1001     def fetchForChangeLog(self, idTestCase, iStart, cMaxRows, tsNow): # pylint: disable=R0914
     1001    def fetchForChangeLog(self, idTestCase, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals
    10021002        """
    10031003        Fetches change log entries for a testbox.
     
    11841184        return True;
    11851185
    1186     def editEntry(self, oData, uidAuthor, fCommit = False):  # pylint: disable=R0914
     1186    def editEntry(self, oData, uidAuthor, fCommit = False):  # pylint: disable=too-many-locals
    11871187        """
    11881188        Edit a testcase entry (extended).
     
    14161416#
    14171417
    1418 # pylint: disable=C0111
     1418# pylint: disable=missing-docstring
    14191419class TestCaseGlobalRsrcDepDataTestCase(ModelDataBaseTestCase):
    14201420    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testcaseargs.py

    r76553 r79087  
    4242# Python 3 hacks:
    4343if sys.version_info[0] >= 3:
    44     long = int;     # pylint: disable=W0622,C0103
     44    long = int;     # pylint: disable=redefined-builtin,invalid-name
    4545
    4646
     
    135135        return self.initFromDbRow(oDb.fetchOne());
    136136
    137     def initFromValues(self, sArgs, cSecTimeout = None, sTestBoxReqExpr = None, sBuildReqExpr = None,  # pylint: disable=R0913
     137    def initFromValues(self, sArgs, cSecTimeout = None, sTestBoxReqExpr = None, sBuildReqExpr = None,  # pylint: disable=too-many-arguments
    138138                       cGangMembers = 1, idTestCase = None, idTestCaseArgs = None, tsEffective = None, tsExpire = None,
    139139                       uidAuthor = None, idGenTestCaseArgs = None, sSubName = None):
     
    396396#
    397397
    398 # pylint: disable=C0111
     398# pylint: disable=missing-docstring
    399399class TestCaseArgsDataTestCase(ModelDataBaseTestCase):
    400400    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testgroup.py

    r76553 r79087  
    747747#
    748748
    749 # pylint: disable=C0111
     749# pylint: disable=missing-docstring
    750750class TestGroupMemberDataTestCase(ModelDataBaseTestCase):
    751751    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testresultfailures.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55## @todo Rename this file to testresult.py!
     
    146146
    147147
    148 class TestResultListingData(ModelDataBase): # pylint: disable=R0902
     148class TestResultListingData(ModelDataBase): # pylint: disable=too-many-instance-attributes
    149149    """
    150150    Test case result data representation for table listing
     
    255255
    256256
    257 class TestResultFailureLogic(ModelLogicBase): # pylint: disable=R0903
     257class TestResultFailureLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    258258    """
    259259    Test result failure reason logic.
     
    263263        ModelLogicBase.__init__(self, oDb)
    264264
    265     def fetchForChangeLog(self, idTestResult, iStart, cMaxRows, tsNow): # pylint: disable=R0914
     265    def fetchForChangeLog(self, idTestResult, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals
    266266        """
    267267        Fetches change log entries for a failure reason.
     
    509509#
    510510
    511 # pylint: disable=C0111
     511# pylint: disable=missing-docstring
    512512class TestResultFailureDataTestCase(ModelDataBaseTestCase):
    513513    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testresults.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55## @todo Rename this file to testresult.py!
     
    550550
    551551
    552 class TestResultListingData(ModelDataBase): # pylint: disable=R0902
     552class TestResultListingData(ModelDataBase): # pylint: disable=too-many-instance-attributes
    553553    """
    554554    Test case result data representation for table listing
     
    990990
    991991
    992 class TestResultLogic(ModelLogicBase): # pylint: disable=R0903
     992class TestResultLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    993993    """
    994994    Results grouped by scheduling group.
     
    11991199        return sRet
    12001200
    1201     def fetchResultsForListing(self, iStart, cMaxRows, tsNow, sInterval, oFilter, enmResultSortBy, # pylint: disable=R0913
     1201    def fetchResultsForListing(self, iStart, cMaxRows, tsNow, sInterval, oFilter, enmResultSortBy, # pylint: disable=too-many-arguments
    12021202                               enmResultsGroupingType, iResultsGroupingValue, fOnlyFailures, fOnlyNeedingReason):
    12031203        """
     
    25582558            if sAttr in dAttribs:
    25592559                try:
    2560                     _ = long(dAttribs[sAttr]);  # pylint: disable=R0204
     2560                    _ = long(dAttribs[sAttr]);  # pylint: disable=redefined-variable-type
    25612561                except:
    25622562                    return 'Element %s has an invalid %s attribute value: %s.' % (sName, sAttr, dAttribs[sAttr],);
     
    28542854#
    28552855
    2856 # pylint: disable=C0111
     2856# pylint: disable=missing-docstring
    28572857class TestResultDataTestCase(ModelDataBaseTestCase):
    28582858    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/testset.py

    r78780 r79087  
    537537        return True;
    538538
    539     def createFile(self, oTestSet, sName, sMime, sKind, sDesc, cbFile, fCommit = False): # pylint: disable=R0914
     539    def createFile(self, oTestSet, sName, sMime, sKind, sDesc, cbFile, fCommit = False): # pylint: disable=too-many-locals
    540540        """
    541541        Creates a file and associating with the current test result record in
     
    825825#
    826826
    827 # pylint: disable=C0111
     827# pylint: disable=missing-docstring
    828828class TestSetDataTestCase(ModelDataBaseTestCase):
    829829    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/useraccount.py

    r76553 r79087  
    282282#
    283283
    284 # pylint: disable=C0111
     284# pylint: disable=missing-docstring
    285285class UserAccountDataTestCase(ModelDataBaseTestCase):
    286286    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/core/vcsrevisions.py

    r76553 r79087  
    105105
    106106
    107 class VcsRevisionLogic(ModelLogicBase): # pylint: disable=R0903
     107class VcsRevisionLogic(ModelLogicBase): # pylint: disable=too-few-public-methods
    108108    """
    109109    VCS revisions database logic.
     
    234234#
    235235
    236 # pylint: disable=C0111
     236# pylint: disable=missing-docstring
    237237class VcsRevisionDataTestCase(ModelDataBaseTestCase):
    238238    def setUp(self):
  • trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py

    r76553 r79087  
    22# -*- coding: utf-8 -*-
    33# $Id$
    4 # pylint: disable=C0301
     4# pylint: disable=line-too-long
    55
    66"""
     
    4747
    4848
    49 class PartialDbDump(object): # pylint: disable=R0903
     49class PartialDbDump(object): # pylint: disable=too-few-public-methods
    5050    """
    5151    Dumps or loads the last X days of database data.
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmin.py

    r76553 r79087  
    812812                                           self.ksActionGlobalRsrcShowAll);
    813813
    814     def _actionGlobalRsrcShowAddEdit(self, sAction): # pylint: disable=C0103
     814    def _actionGlobalRsrcShowAddEdit(self, sAction): # pylint: disable=invalid-name
    815815        """Show Global Resource creation or edit dialog"""
    816816        from testmanager.core.globalresource           import GlobalResourceLogic, GlobalResourceData;
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py

    r76553 r79087  
    239239        return (sTitle, sBody);
    240240
    241     def _formatListEntry(self, iEntry): # pylint: disable=R0914
     241    def _formatListEntry(self, iEntry): # pylint: disable=too-many-locals
    242242        from testmanager.webui.wuiadmin import WuiAdmin;
    243243        oEntry  = self._aoEntries[iEntry];
     
    274274            else:
    275275                from testmanager.webui.wuimain import WuiMain;
    276                 oState = WuiTmLink(oEntry.oStatus.enmState, WuiMain.ksScriptName,                       # pylint: disable=R0204
     276                oState = WuiTmLink(oEntry.oStatus.enmState, WuiMain.ksScriptName,                       # pylint: disable=redefined-variable-type
    277277                                   { WuiMain.ksParamAction: WuiMain.ksActionTestResultDetails,
    278278                                     TestSetData.ksParam_idTestSet: oEntry.oStatus.idTestSet, },
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py

    r76553 r79087  
    523523        return asValues;
    524524
    525     def getListOfTestCasesParam(self, sName, asDefaults = None):  # too many local vars - pylint: disable=R0914
     525    def getListOfTestCasesParam(self, sName, asDefaults = None):  # too many local vars - pylint: disable=too-many-locals
    526526        """Get list of test cases and their parameters"""
    527527        if sName in self._dParams:
     
    855855        return True
    856856
    857     def _actionGenericFormDetails(self, oDataType, oLogicType, oFormType, sIdAttr = None, sGenIdAttr = None): # pylint: disable=R0914
     857    def _actionGenericFormDetails(self, oDataType, oLogicType, oFormType, sIdAttr = None, sGenIdAttr = None): # pylint: disable=too-many-locals
    858858        """
    859859        Generic handler for showing a details form/page.
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuicontentbase.py

    r76553 r79087  
    4747
    4848
    49 class WuiHtmlBase(object): # pylint: disable=R0903
     49class WuiHtmlBase(object): # pylint: disable=too-few-public-methods
    5050    """
    5151    Base class for HTML objects.
     
    6969
    7070
    71 class WuiLinkBase(WuiHtmlBase): # pylint: disable=R0903
     71class WuiLinkBase(WuiHtmlBase): # pylint: disable=too-few-public-methods
    7272    """
    7373    For passing links from WuiListContentBase._formatListEntry.
     
    118118
    119119
    120 class WuiTmLink(WuiLinkBase): # pylint: disable=R0903
     120class WuiTmLink(WuiLinkBase): # pylint: disable=too-few-public-methods
    121121    """ Local link to the test manager. """
    122122
     
    139139
    140140
    141 class WuiAdminLink(WuiTmLink): # pylint: disable=R0903
     141class WuiAdminLink(WuiTmLink): # pylint: disable=too-few-public-methods
    142142    """ Local link to the test manager's admin portion. """
    143143
     
    156156                           sFragmentId = sFragmentId, fBracketed = fBracketed);
    157157
    158 class WuiMainLink(WuiTmLink): # pylint: disable=R0903
     158class WuiMainLink(WuiTmLink): # pylint: disable=too-few-public-methods
    159159    """ Local link to the test manager's main portion. """
    160160
     
    170170                           sFragmentId = sFragmentId, fBracketed = fBracketed);
    171171
    172 class WuiSvnLink(WuiLinkBase): # pylint: disable=R0903
     172class WuiSvnLink(WuiLinkBase): # pylint: disable=too-few-public-methods
    173173    """
    174174    For linking to a SVN revision.
     
    180180                             fBracketed = fBracketed, sExtraAttrs = sExtraAttrs);
    181181
    182 class WuiSvnLinkWithTooltip(WuiSvnLink): # pylint: disable=R0903
     182class WuiSvnLinkWithTooltip(WuiSvnLink): # pylint: disable=too-few-public-methods
    183183    """
    184184    For linking to a SVN revision with changelog tooltip.
     
    202202            WuiLinkBase.__init__(self, sName, sUrl, fBracketed = fBracketed);
    203203
    204 class WuiRawHtml(WuiHtmlBase): # pylint: disable=R0903
     204class WuiRawHtml(WuiHtmlBase): # pylint: disable=too-few-public-methods
    205205    """
    206206    For passing raw html from WuiListContentBase._formatListEntry.
     
    213213        return self.sHtml;
    214214
    215 class WuiHtmlKeeper(WuiHtmlBase): # pylint: disable=R0903
     215class WuiHtmlKeeper(WuiHtmlBase): # pylint: disable=too-few-public-methods
    216216    """
    217217    For keeping a list of elements, concatenating their toHtml output together.
     
    238238        return self.sSep.join(oObj.toHtml() for oObj in self.aoKept);
    239239
    240 class WuiSpanText(WuiRawHtml): # pylint: disable=R0903
     240class WuiSpanText(WuiRawHtml): # pylint: disable=too-few-public-methods
    241241    """
    242242    Outputs the given text within a span of the given CSS class.
     
    252252                                % ( webutils.escapeAttr(sSpanClass), webutils.escapeAttr(sTitle), webutils.escapeElem(sText),));
    253253
    254 class WuiElementText(WuiRawHtml): # pylint: disable=R0903
     254class WuiElementText(WuiRawHtml): # pylint: disable=too-few-public-methods
    255255    """
    256256    Outputs the given element text.
     
    260260
    261261
    262 class WuiContentBase(object): # pylint: disable=R0903
     262class WuiContentBase(object): # pylint: disable=too-few-public-methods
    263263    """
    264264    Base for the content classes.
     
    382382        return sHtml;
    383383
    384 class WuiSingleContentBase(WuiContentBase): # pylint: disable=R0903
     384class WuiSingleContentBase(WuiContentBase): # pylint: disable=too-few-public-methods
    385385    """
    386386    Base for the content classes working on a single data object (oData).
     
    391391
    392392
    393 class WuiFormContentBase(WuiSingleContentBase): # pylint: disable=R0903
     393class WuiFormContentBase(WuiSingleContentBase): # pylint: disable=too-few-public-methods
    394394    """
    395395    Base class for simple input form content classes (single data object).
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py

    r76553 r79087  
    415415                             sExtraAttribs = sExtraAttribs);
    416416
    417     def addListOfTestCaseArgs(self, sName, aoVariations, sLabel): # pylint: disable=R0915
     417    def addListOfTestCaseArgs(self, sName, aoVariations, sLabel): # pylint: disable=too-many-statements
    418418        """
    419419        Adds a list of test case argument variations to the form.
     
    646646        return self._add(sHtml)
    647647
    648     def addListOfTestGroupMembers(self, sName, aoTestGroupMembers, aoAllTestCases, sLabel,  # pylint: disable=R0914
     648    def addListOfTestGroupMembers(self, sName, aoTestGroupMembers, aoAllTestCases, sLabel,  # pylint: disable=too-many-locals
    649649                                  fReadOnly = True):
    650650        """
     
    763763                         u'</table>\n');
    764764
    765     def addListOfSchedGroupMembers(self, sName, aoSchedGroupMembers, aoAllTestGroups,  # pylint: disable=R0914
     765    def addListOfSchedGroupMembers(self, sName, aoSchedGroupMembers, aoAllTestGroups,  # pylint: disable=too-many-locals
    766766                                   sLabel, fReadOnly = True):
    767767        """
     
    862862                         u'</table>\n');
    863863
    864     def addListOfSchedGroupsForTestBox(self, sName, aoInSchedGroups, aoAllSchedGroups, sLabel,  # pylint: disable=R0914
     864    def addListOfSchedGroupsForTestBox(self, sName, aoInSchedGroups, aoAllSchedGroups, sLabel,  # pylint: disable=too-many-locals
    865865                                       fReadOnly = None):
    866866        # type: (str, TestBoxInSchedGroupDataEx, SchedGroupData, str, bool) -> str
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraph.py

    r76553 r79087  
    3030
    3131
    32 class WuiHlpGraphDataTable(object): # pylint: disable=R0903
     32class WuiHlpGraphDataTable(object): # pylint: disable=too-few-public-methods
    3333    """
    3434    Data table container.
    3535    """
    3636
    37     class Row(object): # pylint: disable=R0903
     37    class Row(object): # pylint: disable=too-few-public-methods
    3838        """A row."""
    3939        def __init__(self, sGroup, aoValues, asValues = None):
     
    5959
    6060
    61 class WuiHlpGraphDataTableEx(object): # pylint: disable=R0903
     61class WuiHlpGraphDataTableEx(object): # pylint: disable=too-few-public-methods
    6262    """
    6363    Data container for an table/graph with optional error bars on the Y values.
    6464    """
    6565
    66     class DataSeries(object): # pylint: disable=R0903
     66    class DataSeries(object): # pylint: disable=too-few-public-methods
    6767        """
    6868        A data series.
     
    100100# Dynamically choose implementation.
    101101#
    102 if True: # pylint: disable=W0125
     102if True: # pylint: disable=using-constant-test
    103103    from testmanager.webui import wuihlpgraphgooglechart        as GraphImplementation;
    104104else:
    105105    try:
    106         import matplotlib; # pylint: disable=W0611,F0401,import-error,wrong-import-order
     106        import matplotlib; # pylint: disable=unused-import,import-error,import-error,wrong-import-order
    107107        from testmanager.webui import wuihlpgraphmatplotlib     as GraphImplementation; # pylint: disable=ungrouped-imports
    108108    except:
    109109        from testmanager.webui import wuihlpgraphsimple         as GraphImplementation;
    110110
    111 # pylint: disable=C0103
     111# pylint: disable=invalid-name
    112112WuiHlpBarGraph              = GraphImplementation.WuiHlpBarGraph;
    113113WuiHlpLineGraph             = GraphImplementation.WuiHlpLineGraph;
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphgooglechart.py

    r76553 r79087  
    6868        return True;
    6969
    70     def renderGraph(self): # pylint: disable=R0914
     70    def renderGraph(self): # pylint: disable=too-many-locals
    7171        fSlideFilter = True;
    7272
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphmatplotlib.py

    r76553 r79087  
    3737    from StringIO import StringIO as StringIO;  # pylint: disable=import-error,no-name-in-module
    3838
    39 import matplotlib;                              # pylint: disable=F0401
     39import matplotlib;                              # pylint: disable=import-error
    4040matplotlib.use('Agg'); # Force backend.
    41 import matplotlib.pyplot;                       # pylint: disable=F0401
    42 from numpy import arange as numpy_arange;       # pylint: disable=E0611,E0401,wrong-import-order
     41import matplotlib.pyplot;                       # pylint: disable=import-error
     42from numpy import arange as numpy_arange;       # pylint: disable=no-name-in-module,import-error,wrong-import-order
    4343
    4444# Validation Kit imports.
     
    6464        """
    6565        if self._fXkcdStyle and matplotlib.__version__ > '1.2.9':
    66             matplotlib.pyplot.xkcd();           # pylint: disable=E1101
     66            matplotlib.pyplot.xkcd();           # pylint: disable=no-member
    6767        matplotlib.rcParams.update({'font.size': self._cPtFont});
    6868
     
    106106        return None;
    107107
    108     def renderGraph(self): # pylint: disable=R0914
     108    def renderGraph(self): # pylint: disable=too-many-locals
    109109        aoTable  = self._oData.aoTable;
    110110
     
    198198        return True;
    199199
    200     def renderGraph(self): # pylint: disable=R0914
     200    def renderGraph(self): # pylint: disable=too-many-locals
    201201        aoSeries = self._oData.aoSeries;
    202202
     
    246246            oSubPlot.grid(True, 'both', axis = 'x');
    247247
    248         if True: # pylint: disable=W0125
     248        if True: # pylint: disable=using-constant-test
    249249            #    oSubPlot.axis('off');
    250250            #oSubPlot.grid(True, 'major', axis = 'none');
     
    278278        self.setFontSize(6);
    279279
    280     def renderGraph(self): # pylint: disable=R0914
     280    def renderGraph(self): # pylint: disable=too-many-locals
    281281        assert len(self._oData.aoSeries) == 1;
    282282        oSeries = self._oData.aoSeries[0];
     
    288288
    289289        oFigure = self._createFigure();
    290         from mpl_toolkits.axes_grid.axislines import SubplotZero; # pylint: disable=E0401
     290        from mpl_toolkits.axes_grid.axislines import SubplotZero; # pylint: disable=import-error
    291291        oAxis = SubplotZero(oFigure, 111);
    292292        oFigure.add_subplot(oAxis);
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py

    r76553 r79087  
    717717    #
    718718
    719     def _actionGroupedResultsListing( #pylint: disable=R0914
     719    def _actionGroupedResultsListing( #pylint: disable=too-many-locals
    720720            self,
    721721            enmResultsGroupingType,
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py

    r76553 r79087  
    416416                    oTable.addRow(oPeriod.sDesc, aiValues, asValues);
    417417
    418                 if True: # pylint: disable=W0125
     418                if True: # pylint: disable=using-constant-test
    419419                    aiValues = [];
    420420                    asValues = [];
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuitestresult.py

    r76553 r79087  
    154154
    155155    def _recursivelyGenerateEvents(self, oTestResult, sParentName, sLineage, iRow,
    156                                    iFailure, oTestSet, iDepth):     # pylint: disable=R0914
     156                                   iFailure, oTestSet, iDepth):     # pylint: disable=too-many-locals
    157157        """
    158158        Recursively generate event table rows for the result set.
     
    442442
    443443
    444     def showTestCaseResultDetails(self,             # pylint: disable=R0914,R0915
     444    def showTestCaseResultDetails(self,             # pylint: disable=too-many-locals,too-many-statements
    445445                                  oTestResultTree,
    446446                                  oTestSet,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette