Wed, 30 Aug 2023 13:07:19 +0200
Corrected some code style issues.
--- a/PluginCheckerVulture.epj Sat May 27 15:01:43 2023 +0200 +++ b/PluginCheckerVulture.epj Wed Aug 30 13:07:19 2023 +0200 @@ -16,6 +16,9 @@ "singledispatch", "singledispatchmethod" ], + "ExemptedTypingSymbols": [ + "" + ], "ForceFutureAnnotations": false, "MaximumComplexity": 3, "MaximumLength": 7, @@ -63,7 +66,7 @@ "CopyrightAuthor": "", "CopyrightMinFileSize": 0, "DocstringType": "eric_black", - "EnabledCheckerCategories": "C, D, E, M, N, S, Y, U, W", + "EnabledCheckerCategories": "C, D, E, I, M, NO, N, S, Y, U, W", "ExcludeFiles": "*/Ui_*.py, */*_rc.py, */vulture/*", "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,U200,W293,W503,Y119,Y401,Y402", "FixCodes": "", @@ -71,7 +74,10 @@ "FutureChecker": "", "HangClosing": false, "ImportsChecker": { - "ApplicationPackageNames": [], + "ApplicationPackageNames": [ + "VultureChecker", + "eric7" + ], "BanRelativeImports": "", "BannedModules": [] }, @@ -82,7 +88,10 @@ "MaxDocLineLength": 88, "MaxLineLength": 88, "NameOrderChecker": { - "ApplicationPackageNames": [], + "ApplicationPackageNames": [ + "VultureChecker", + "eric7" + ], "CombinedAsImports": false, "SortCaseSensitive": false, "SortFromFirst": false, @@ -236,7 +245,7 @@ ], "OTHERTOOLSPARMS": { "Black": { - "exclude": "/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.mypy_cache|\\.nox|\\.tox|\\.venv|venv|\\.svn|\\.ipynb_checkpoints|_build|buck-out|build|dist|__pypackages__)/", + "exclude": "/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.ipynb_checkpoints|\\.mypy_cache|\\.nox|\\.pytest_cache|\\.ruff_cache|\\.tox|\\.svn|\\.venv|\\.vscode|__pypackages__|_build|buck-out|build|dist|venv)/", "extend-exclude": "", "force-exclude": "", "line-length": 88, @@ -244,11 +253,11 @@ "skip-string-normalization": false, "source": "project", "target-version": [ + "py312", "py311", "py310", "py39", - "py38", - "py37" + "py38" ] }, "isort": { @@ -289,6 +298,7 @@ "VultureChecker/__init__.py", "__init__.py" ], + "SOURCESDIR": "", "SPELLEXCLUDES": "", "SPELLLANGUAGE": "en_US", "SPELLWORDS": "",
--- a/PluginVulture.py Sat May 27 15:01:43 2023 +0200 +++ b/PluginVulture.py Wed Aug 30 13:07:19 2023 +0200 @@ -273,7 +273,11 @@ ) print("Using default.") - def __projectShowMenu(self, menuName, menu): # noqa: U100 + def __projectShowMenu( + self, + menuName, + menu, # noqa: U100 + ): """ Private slot called, when the the project menu or a submenu is about to be shown. @@ -303,6 +307,7 @@ if self.__projectVultureCheckerDialog is None: from VultureChecker.VultureCheckerDialog import VultureCheckerDialog + # noqa: I101 self.__projectVultureCheckerDialog = VultureCheckerDialog(self) self.__projectVultureCheckerDialog.show()
--- a/VultureChecker/Documentation/source/Plugin_Checker_Vulture.PluginVulture.html Sat May 27 15:01:43 2023 +0200 +++ b/VultureChecker/Documentation/source/Plugin_Checker_Vulture.PluginVulture.html Wed Aug 30 13:07:19 2023 +0200 @@ -179,7 +179,7 @@ </p> <a NAME="VulturePlugin.__projectShowMenu" ID="VulturePlugin.__projectShowMenu"></a> <h4>VulturePlugin.__projectShowMenu</h4> -<b>__projectShowMenu</b>(<i>menuName, menu</i>) +<b>__projectShowMenu</b>(<i>menuName, menu, </i>) <p> Private slot called, when the the project menu or a submenu is
--- a/VultureChecker/VultureCheckerDialog.py Sat May 27 15:01:43 2023 +0200 +++ b/VultureChecker/VultureCheckerDialog.py Wed Aug 30 13:07:19 2023 +0200 @@ -269,7 +269,7 @@ try: self.source = Utilities.readEncodedFile(self.filename)[0] self.source = Utilities.normalizeCode(self.source) - except (UnicodeError, OSError) as msg: + except (OSError, UnicodeError) as msg: self.__createErrorItem(self.filename, str(msg).rstrip()) self.progress += 1 # Continue with next file @@ -293,7 +293,7 @@ try: source = Utilities.readEncodedFile(filename)[0] source = Utilities.normalizeCode(source) - except (UnicodeError, OSError) as msg: + except (OSError, UnicodeError) as msg: self.__createErrorItem(filename, str(msg).rstrip()) continue