--- a/PluginPyLint.py Sat Dec 31 13:50:22 2016 +0100 +++ b/PluginPyLint.py Mon Mar 27 19:46:20 2017 +0200 @@ -19,7 +19,7 @@ import platform from PyQt5.QtCore import QObject, QTranslator, QCoreApplication, QProcess -from PyQt5.QtWidgets import QDialog +from PyQt5.QtWidgets import QDialog from E5Gui.E5Application import e5App from E5Gui.E5Action import E5Action @@ -35,7 +35,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "6.1.4" +version = "6.1.5" className = "PyLintPlugin" packageName = "PyLint" shortDescription = "Show the PyLint dialogs." @@ -203,9 +203,9 @@ # step 1: determine possible candidates exes = [] dirs = path.split(os.pathsep) - for dir in dirs: + for directory in dirs: for suffix in scriptSuffixes: - exe = os.path.join(dir, pylintScript + suffix) + exe = os.path.join(directory, pylintScript + suffix) if os.access(exe, os.X_OK): exes.append(exe) @@ -488,9 +488,9 @@ self.__projectBrowserShowAct.triggered.connect( self.__projectBrowserPylintShow) - if not self.__projectBrowserAct in menu.actions(): + if self.__projectBrowserAct not in menu.actions(): menu.addAction(self.__projectBrowserAct) - if not self.__projectBrowserShowAct in menu.actions(): + if self.__projectBrowserShowAct not in menu.actions(): menu.addAction(self.__projectBrowserShowAct) enable = e5App().getObject("ProjectBrowser")\ @@ -556,7 +556,7 @@ def __projectPylint(self): """ - Public slot used to check the project files with Pylint. + Private slot used to check the project files with Pylint. """ project = e5App().getObject("Project") project.saveAllScripts() @@ -564,7 +564,8 @@ def __projectPylintShow(self): """ - Public slot to show the PyLint dialog with the results of the last run. + Private slot to show the PyLint dialog with the results of the last + run. """ if self.__pylintPDialog is not None: self.__pylintPDialog.show() @@ -586,7 +587,8 @@ def __projectBrowserPylintShow(self): """ - Public slot to show the PyLint dialog with the results of the last run. + Private slot to show the PyLint dialog with the results of the last + run. """ if self.__pylintPsbDialog is not None: self.__pylintPsbDialog.show() @@ -624,7 +626,7 @@ @param editor reference to the editor (QScintilla.Editor) """ if menuName == "Checks": - if not self.__editorAct in menu.actions(): + if self.__editorAct not in menu.actions(): menu.addAction(self.__editorAct) self.__editorAct.setEnabled( editor.isPy3File() or editor.isPy2File()) @@ -641,3 +643,6 @@ fn = editor.getFileName() project = e5App().getObject("Project") self.__pyLint(project, fn, False, True) + +# +# eflag: noqa = M801