VirtualBox

Ignore:
Timestamp:
Jun 11, 2019 11:58:28 AM (6 years ago)
Author:
vboxsync
Message:

ValKit: New pylint version - cleanup in progress.

Location:
trunk/src/VBox/ValidationKit/testmanager/webui
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • 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.

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