--- a/PyLint/PyLintConfigDialog.py Sun Oct 13 18:33:34 2013 +0200 +++ b/PyLint/PyLintConfigDialog.py Thu Oct 24 18:56:00 2013 +0200 @@ -4,7 +4,7 @@ # """ -Module implementing a dialog to configure the PyLint process +Module implementing a dialog to configure the PyLint process. """ from __future__ import unicode_literals # __IGNORE_WARNING__ @@ -31,7 +31,7 @@ class PyLintConfigDialog(QDialog, Ui_PyLintConfigDialog): """ - Class implementing a dialog to configure the PyLint process + Class implementing a dialog to configure the PyLint process. """ def __init__(self, ppath, exe, parms, version): """ @@ -78,13 +78,16 @@ self.formatCheckBox.setChecked(self.parameters['enableFormat']) self.importsCheckBox.setChecked(self.parameters['enableImports']) self.metricsCheckBox.setChecked(self.parameters['enableMetrics']) - self.miscellaneousCheckBox.setChecked(self.parameters['enableMiscellaneous']) + self.miscellaneousCheckBox.setChecked( + self.parameters['enableMiscellaneous']) self.newstyleCheckBox.setChecked(self.parameters['enableNewstyle']) - self.similaritiesCheckBox.setChecked(self.parameters['enableSimilarities']) + self.similaritiesCheckBox.setChecked( + self.parameters['enableSimilarities']) self.typecheckCheckBox.setChecked(self.parameters['enableTypecheck']) self.variablesCheckBox.setChecked(self.parameters['enableVariables']) self.loggingCheckBox.setChecked(self.parameters['enableLogging']) - self.stringFormatCheckBox.setChecked(self.parameters['enableStringFormat']) + self.stringFormatCheckBox.setChecked( + self.parameters['enableStringFormat']) # initialize messages tab self.enabledMessagesEdit.setText(self.parameters['enabledMessages']) @@ -138,11 +141,11 @@ list can be passed back upon object generation to overwrite the default settings. - <b>Note</b>: The arguments list contains the name of the pylint executable as - the first parameter. + <b>Note</b>: The arguments list contains the name of the pylint + executable as the first parameter. - @return a tuple of the commandline parameters and non default parameters - (list of strings, dictionary) + @return a tuple of the commandline parameters and non default + parameters (list of strings, dictionary) """ parms = {} args = [] @@ -245,7 +248,8 @@ self, self.trUtf8("Select configuration file"), startWith, - self.trUtf8("Configuration Files (*.cfg *.cnf *.rc);;All Files (*)")) + self.trUtf8("Configuration Files (*.cfg *.cnf *.rc);;" + "All Files (*)")) if config: self.configfileEdit.setText(Utilities.toNativeSeparators(config)) @@ -284,17 +288,21 @@ self.parameters['enableBasic'] = self.basicCheckBox.isChecked() self.parameters['enableClasses'] = self.classesCheckBox.isChecked() self.parameters['enableDesign'] = self.designCheckBox.isChecked() - self.parameters['enableExceptions'] = self.exceptionsCheckBox.isChecked() + self.parameters['enableExceptions'] = \ + self.exceptionsCheckBox.isChecked() self.parameters['enableFormat'] = self.formatCheckBox.isChecked() self.parameters['enableImports'] = self.importsCheckBox.isChecked() self.parameters['enableMetrics'] = self.metricsCheckBox.isChecked() - self.parameters['enableMiscellaneous'] = self.miscellaneousCheckBox.isChecked() + self.parameters['enableMiscellaneous'] = \ + self.miscellaneousCheckBox.isChecked() self.parameters['enableNewstyle'] = self.newstyleCheckBox.isChecked() - self.parameters['enableSimilarities'] = self.similaritiesCheckBox.isChecked() + self.parameters['enableSimilarities'] = \ + self.similaritiesCheckBox.isChecked() self.parameters['enableTypecheck'] = self.typecheckCheckBox.isChecked() self.parameters['enableVariables'] = self.variablesCheckBox.isChecked() self.parameters['enableLogging'] = self.loggingCheckBox.isChecked() - self.parameters['enableStringFormat'] = self.stringFormatCheckBox.isChecked() + self.parameters['enableStringFormat'] = \ + self.stringFormatCheckBox.isChecked() # get data of messages tab self.parameters['enabledMessages'] = ','.join( @@ -305,9 +313,9 @@ # call the accept slot of the base class super(PyLintConfigDialog, self).accept() - ############################################################################ + ########################################################################### ## Methods below are needed to generate a configuration file template - ############################################################################ + ########################################################################### @pyqtSlot() def on_configButton_clicked(self): @@ -331,7 +339,8 @@ if procStarted: e5App().getObject("ViewManager").enableEditorsCheckFocusIn(False) else: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8('Process Generation Error'), self.trUtf8( 'Could not start {0}.<br>' @@ -356,19 +365,22 @@ def __readStdout(self): """ - Private slot to handle the readyReadStandardOutput signal of the pylint process. + Private slot to handle the readyReadStandardOutput signal of the + pylint process. """ if self.pylintProc is None: return self.pylintProc.setReadChannel(QProcess.StandardOutput) while self.pylintProc and self.pylintProc.canReadLine(): - line = str(self.pylintProc.readLine(), self.__ioEncoding, "replace").rstrip() + line = str(self.pylintProc.readLine(), self.__ioEncoding, + "replace").rstrip() self.buf += line + os.linesep def __readStderr(self): """ - Private slot to handle the readyReadStandardError signal of the pylint process. + Private slot to handle the readyReadStandardError signal of the + pylint process. """ if self.pylintProc is None: return