3209:c5432abceb25 | 3228:f489068e51e8 |
---|---|
23 import UI.PixmapCache | 23 import UI.PixmapCache |
24 import Preferences | 24 import Preferences |
25 import Utilities | 25 import Utilities |
26 | 26 |
27 from . import pep8 | 27 from . import pep8 |
28 #from .NamingStyleChecker import NamingStyleChecker | |
29 # | |
30 ## register the name checker | |
31 #pep8.register_check(NamingStyleChecker, NamingStyleChecker.Codes) | |
32 | 28 |
33 | 29 |
34 class CodeStyleCheckerDialog(QDialog, Ui_CodeStyleCheckerDialog): | 30 class CodeStyleCheckerDialog(QDialog, Ui_CodeStyleCheckerDialog): |
35 """ | 31 """ |
36 Class implementing a dialog to show the results of the code style check. | 32 Class implementing a dialog to show the results of the code style check. |
774 self.__options[3] = self.fixIssuesEdit.text() | 770 self.__options[3] = self.fixIssuesEdit.text() |
775 self.__options[4] = self.noFixIssuesEdit.text() | 771 self.__options[4] = self.noFixIssuesEdit.text() |
776 self.__options[5] = True | 772 self.__options[5] = True |
777 self.__options[6] = self.lineLengthSpinBox.value() | 773 self.__options[6] = self.lineLengthSpinBox.value() |
778 | 774 |
779 self.files = fixesDict.keys() | 775 self.files = list(fixesDict.keys()) |
780 # now go through all the files | 776 # now go through all the files |
781 self.progress = 0 | 777 self.progress = 0 |
782 self.files.sort() | 778 self.files.sort() |
783 self.cancelled = False | 779 self.cancelled = False |
784 self.check(onlyFixes=fixesDict) | 780 self.check(onlyFixes=fixesDict) |