Sat, 23 Dec 2023 18:14:27 +0100
Corrected some code style issues.
--- a/PluginSelectionEncloser.py Sat Dec 23 15:48:59 2023 +0100 +++ b/PluginSelectionEncloser.py Sat Dec 23 18:14:27 2023 +0100 @@ -41,7 +41,7 @@ selectionEncloserPluginObject = None -def createSelectionEncloserPage(configDlg): +def createSelectionEncloserPage(configDlg): # noqa: U100 """ Module function to create the Selection Encloser configuration page. @@ -50,11 +50,12 @@ @return reference to the configuration page @rtype SelectionEncloserPage """ - global selectionEncloserPluginObject from SelectionEncloser.ConfigurationPage.SelectionEncloserPage import ( SelectionEncloserPage, ) + global selectionEncloserPluginObject + return SelectionEncloserPage(selectionEncloserPluginObject) @@ -395,4 +396,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M801, U200
--- a/SelectionEncloser.epj Sat Dec 23 15:48:59 2023 +0100 +++ b/SelectionEncloser.epj Sat Dec 23 18:14:27 2023 +0100 @@ -1,7 +1,7 @@ { "header": { "comment": "eric project file for project SelectionEncloser", - "copyright": "Copyright (C) 2022 Detlev Offenbach, detlev@die-offenbachs.de" + "copyright": "Copyright (C) 2023 Detlev Offenbach, detlev@die-offenbachs.de" }, "project": { "AUTHOR": "Detlev Offenbach", @@ -11,10 +11,14 @@ "AllowStarArgAny": false, "AllowUntypedDefs": false, "AllowUntypedNested": false, + "CheckFutureAnnotations": false, "DispatchDecorators": [ "singledispatch", "singledispatchmethod" ], + "ExemptedTypingSymbols": [ + "" + ], "ForceFutureAnnotations": false, "MaximumComplexity": 3, "MaximumLength": 7, @@ -62,15 +66,18 @@ "CopyrightAuthor": "", "CopyrightMinFileSize": 0, "DocstringType": "eric_black", - "EnabledCheckerCategories": "C, D, E, M, N, S, Y, W", + "EnabledCheckerCategories": "C, D, E, I, L, M, NO, N, Y, U, W", "ExcludeFiles": "*/Ui_*.py, */*_rc.py", - "ExcludeMessages": "C101,E265,E266,E305,E402,M201,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,N802,N803,N807,N808,N821,W293,W503,Y119,Y401,Y402", + "ExcludeMessages": "C101,E265,E266,E305,E402,M201,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,W293,W503,Y119,Y401,Y402", "FixCodes": "", "FixIssues": false, "FutureChecker": "", "HangClosing": false, "ImportsChecker": { - "ApplicationPackageNames": [], + "ApplicationPackageNames": [ + "SelectionEncloser", + "eric7" + ], "BanRelativeImports": "", "BannedModules": [] }, @@ -80,6 +87,17 @@ "MaxCodeComplexity": 10, "MaxDocLineLength": 88, "MaxLineLength": 88, + "NameOrderChecker": { + "ApplicationPackageNames": [ + "SelectionEncloser", + "eric7" + ], + "CombinedAsImports": false, + "SortCaseSensitive": false, + "SortFromFirst": false, + "SortIgnoringStyle": false, + "SortOrder": "natural" + }, "NoFixCodes": "E501", "RepeatMessages": true, "SecurityChecker": { @@ -113,6 +131,19 @@ "WeakKeySizeRsaMedium": "2048" }, "ShowIgnored": false, + "UnusedChecker": { + "IgnoreAbstract": true, + "IgnoreDunderGlobals": true, + "IgnoreDunderMethods": true, + "IgnoreEventHandlerMethods": false, + "IgnoreLambdas": false, + "IgnoreNestedFunctions": false, + "IgnoreOverload": true, + "IgnoreOverride": true, + "IgnoreSlotMethods": false, + "IgnoreStubs": true, + "IgnoreVariadicNames": false + }, "ValidEncodings": "latin-1, utf-8" } }, @@ -255,6 +286,7 @@ "SelectionEncloser/__init__.py", "__init__.py" ], + "SOURCESDIR": "", "SPELLEXCLUDES": "", "SPELLLANGUAGE": "en_US", "SPELLWORDS": "",
--- a/SelectionEncloser/ConfigurationPage/SelectionEncloserEditDialog.py Sat Dec 23 15:48:59 2023 +0100 +++ b/SelectionEncloser/ConfigurationPage/SelectionEncloserEditDialog.py Sat Dec 23 18:14:27 2023 +0100 @@ -49,7 +49,7 @@ ) @pyqtSlot(str) - def on_titleEdit_textChanged(self, txt): + def on_titleEdit_textChanged(self, txt): # noqa: U100 """ Private slot to react on changes of the title. @@ -59,7 +59,7 @@ self.__updateOkButton() @pyqtSlot(str) - def on_stringEdit_textChanged(self, txt): + def on_stringEdit_textChanged(self, txt): # noqa: U100 """ Private slot to react on changes of the string.
--- a/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py Sat Dec 23 15:48:59 2023 +0100 +++ b/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py Sat Dec 23 18:14:27 2023 +0100 @@ -217,6 +217,8 @@ """ Private slot to edit the selected entry. """ + from .SelectionEncloserEditDialog import SelectionEncloserEditDialog + itm = self.menuTree.selectedItems()[0] parent = itm.parent() if parent is None: @@ -230,8 +232,6 @@ if ok and menuTitle: itm.setText(0, menuTitle) else: - from .SelectionEncloserEditDialog import SelectionEncloserEditDialog - dlg = SelectionEncloserEditDialog( itm.text(0), itm.data(0, Qt.ItemDataRole.UserRole), self )