Sat, 23 Dec 2023 18:10:24 +0100
Corrected some code style issues.
PluginPrintRemover.py | file | annotate | diff | comparison | revisions | |
PrintRemover.epj | file | annotate | diff | comparison | revisions |
--- a/PluginPrintRemover.py Sat Dec 23 15:48:58 2023 +0100 +++ b/PluginPrintRemover.py Sat Dec 23 18:10:24 2023 +0100 @@ -42,7 +42,7 @@ printRemoverPluginObject = None -def createPrintRemoverPage(configDlg): +def createPrintRemoverPage(configDlg): # noqa: U100 """ Module function to create the Print Remover configuration page. @@ -51,8 +51,9 @@ @return reference to the configuration page @rtype PrintRemoverPage """ + from PrintRemover.ConfigurationPage.PrintRemoverPage import PrintRemoverPage + global printRemoverPluginObject - from PrintRemover.ConfigurationPage.PrintRemoverPage import PrintRemoverPage return PrintRemoverPage(printRemoverPluginObject) @@ -358,4 +359,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M801, U200
--- a/PrintRemover.epj Sat Dec 23 15:48:58 2023 +0100 +++ b/PrintRemover.epj Sat Dec 23 18:10:24 2023 +0100 @@ -1,7 +1,7 @@ { "header": { "comment": "eric project file for project PrintRemover", - "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": [ + "PrintRemover", + "eric7" + ], "BanRelativeImports": "", "BannedModules": [] }, @@ -80,6 +87,17 @@ "MaxCodeComplexity": 10, "MaxDocLineLength": 88, "MaxLineLength": 88, + "NameOrderChecker": { + "ApplicationPackageNames": [ + "PrintRemover", + "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" } }, @@ -251,6 +282,7 @@ "PrintRemover/__init__.py", "__init__.py" ], + "SOURCESDIR": "", "SPELLEXCLUDES": "", "SPELLLANGUAGE": "en_US", "SPELLWORDS": "",