27 except ImportError: |
27 except ImportError: |
28 # imports for eric < 23.1 |
28 # imports for eric < 23.1 |
29 from eric7.Utilities import getEnvironmentEntry, isWindowsPlatform |
29 from eric7.Utilities import getEnvironmentEntry, isWindowsPlatform |
30 |
30 |
31 # Start-of-Header |
31 # Start-of-Header |
32 name = "PyLint Plugin" |
32 __header__ = { |
33 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
33 "name": "PyLint Plugin", |
34 autoactivate = True |
34 "author": "Detlev Offenbach <detlev@die-offenbachs.de>", |
35 deactivateable = True |
35 "autoactivate": True, |
36 version = "10.2.0" |
36 "deactivateable": True, |
37 className = "PyLintPlugin" |
37 "version": "10.3.0", |
38 packageName = "PyLintInterface" |
38 "className": "PyLintPlugin", |
39 shortDescription = "Show the PyLint dialogs." |
39 "packageName": "PyLintInterface", |
40 longDescription = ( |
40 "shortDescription": "Show the PyLint dialogs.", |
41 """This plug-in implements the PyLint dialogs. PyLint is used to check""" |
41 "longDescription": ( |
42 """ Python source files according to various rules.""" |
42 "This plug-in implements the PyLint dialogs. PyLint is used to check" |
43 ) |
43 " Python source files according to various rules." |
44 needsRestart = False |
44 ), |
45 pyqtApi = 2 |
45 "needsRestart": False, |
|
46 "hasCompiledForms": True, |
|
47 "pyqtApi": 2, |
|
48 } |
46 # End-of-Header |
49 # End-of-Header |
47 |
50 |
48 error = "" |
51 error = "" |
49 |
52 |
50 exePy3 = [] |
53 exePy3 = [] |
577 self.tr("pylint"), |
580 self.tr("pylint"), |
578 self.tr("""The pylint executable could not be found."""), |
581 self.tr("""The pylint executable could not be found."""), |
579 ) |
582 ) |
580 return |
583 return |
581 |
584 |
582 dlg = PyLintConfigDialog(project.getProjectPath(), exe, parms, version) |
585 dlg = PyLintConfigDialog( |
|
586 project.getProjectPath(), exe, parms, version, parent=self.__ui |
|
587 ) |
583 if dlg.exec() == QDialog.DialogCode.Accepted: |
588 if dlg.exec() == QDialog.DialogCode.Accepted: |
584 args, parms = dlg.generateParameters() |
589 args, parms = dlg.generateParameters() |
585 self.__editorParms = copy.deepcopy(parms) |
590 self.__editorParms = copy.deepcopy(parms) |
586 if not forEditor: |
591 if not forEditor: |
587 project.setData("CHECKERSPARMS", "PYLINT", parms) |
592 project.setData("CHECKERSPARMS", "PYLINT", parms) |