Mon, 24 Feb 2025 15:43:49 +0100
Adjusted the code to the modified issue codes.
--- a/eric7.epj Mon Feb 24 15:11:18 2025 +0100 +++ b/eric7.epj Mon Feb 24 15:43:49 2025 +0100 @@ -69,7 +69,7 @@ "DocstringType": "eric_black", "EnabledCheckerCategories": "PYD, C, D, E, I, L, M, NO, N, Y, U, W", "ExcludeFiles": "*/ThirdParty/*, */Ui_*.py, */Examples/*, */pycodestyle.py, */pyflakes/*, */mccabe.py, */eradicate.py, */ast_unparse.py, */piplicenses.py, */MCUScripts/*, */MicroPython/Tools/*", - "ExcludeMessages": "C101,E203,E265,E266,E305,E402,M251,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,U101,W293,W503,Y119,Y401,Y402", + "ExcludeMessages": "C-101,E-203,E-265,E-266,E-305,E-402,M-251,M-701,M-702,M-811,M-834,M-852,N-802,N-803,N-807,N-808,N-821,U-101,W-293,W-503,Y-119,Y-401,Y-402", "FixCodes": "", "FixIssues": false, "FutureChecker": "", @@ -97,7 +97,7 @@ "SortIgnoringStyle": false, "SortOrder": "natural" }, - "NoFixCodes": "E501", + "NoFixCodes": "E-501", "RepeatMessages": true, "SecurityChecker": { "CheckTypedException": false,
--- a/scripts/cleanupSource.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/cleanupSource.py Mon Feb 24 15:43:49 2025 +0100 @@ -72,4 +72,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/compileUiFiles.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/compileUiFiles.py Mon Feb 24 15:43:49 2025 +0100 @@ -97,7 +97,7 @@ ProcessPoolExecutor = None if workers != 1: try: - from concurrent.futures import ProcessPoolExecutor # noqa: I101, I103 + from concurrent.futures import ProcessPoolExecutor # noqa: I-101, I-103 except NotImplementedError: workers = 1 @@ -155,4 +155,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/create_windows_links.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/create_windows_links.py Mon Feb 24 15:43:49 2025 +0100 @@ -163,4 +163,4 @@ raise # -# eflag: noqa = M801, I102 +# eflag: noqa = M-801, I-102
--- a/scripts/install-debugclients.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/install-debugclients.py Mon Feb 24 15:43:49 2025 +0100 @@ -542,4 +542,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/install-dependencies.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/install-dependencies.py Mon Feb 24 15:43:49 2025 +0100 @@ -156,4 +156,4 @@ main() # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/install-server.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/install-server.py Mon Feb 24 15:43:49 2025 +0100 @@ -684,4 +684,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/install.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/install.py Mon Feb 24 15:43:49 2025 +0100 @@ -160,7 +160,7 @@ else: # determine dynamically try: - from PyQt6.QtCore import QLibraryInfo # noqa: I101, I102 + from PyQt6.QtCore import QLibraryInfo # noqa: I-101, I-102 qtDataDir = QLibraryInfo.path(QLibraryInfo.LibraryPath.DataPath) except ImportError: @@ -224,10 +224,10 @@ """ if os.path.exists(os.path.join("eric", "src", "eric7", "__version__.py")): # Installing from installer archive - from eric.src.eric7.__version__ import Version # noqa: I101, I102 + from eric.src.eric7.__version__ import Version # noqa: I-101, I-102 elif os.path.exists(os.path.join("src", "eric7", "__version__.py")): # Installing from source tree - from src.eric7.__version__ import Version # noqa: I101, I102 + from src.eric7.__version__ import Version # noqa: I-101, I-102 else: Version = "Unknown" @@ -450,7 +450,7 @@ global platBinDir try: - from eric7.Globals import getConfig # noqa: I101 + from eric7.Globals import getConfig # noqa: I-101 except ImportError: # eric wasn't installed previously return @@ -1194,7 +1194,7 @@ # determine entry for DYLD_FRAMEWORK_PATH dyldLine = "" try: - from PyQt6.QtCore import QLibraryInfo # noqa: I101, I102 + from PyQt6.QtCore import QLibraryInfo # noqa: I-101, I-102 qtLibraryDir = QLibraryInfo.path(QLibraryInfo.LibraryPath.LibrariesPath) except ImportError: @@ -1232,10 +1232,10 @@ if os.path.exists(os.path.join("eric", "eric7", "__version__.py")): # Installing from archive - from eric.eric7.__version__ import CopyrightShort, Version # noqa: I101, I102 + from eric.eric7.__version__ import CopyrightShort, Version # noqa: I-101, I-102 elif os.path.exists(os.path.join("eric7", "__version__.py")): # Installing from source tree - from eric7.__version__ import CopyrightShort, Version # noqa: I101 + from eric7.__version__ import CopyrightShort, Version # noqa: I-101 else: Version = "Unknown" CopyrightShort = "(c) 2002 - 2025 Detlev Offenbach" @@ -1624,7 +1624,7 @@ print("PyQt & Qt") print("---------") try: - from PyQt6.QtCore import qVersion # noqa: I101, I102 + from PyQt6.QtCore import qVersion # noqa: I-101, I-102 except ImportError as err: msg = "'PyQt6' could not be detected.{0}".format( "\nError: {0}".format(err) if verbose else "" @@ -1635,7 +1635,7 @@ if installed: # try to import it again try: - from PyQt6.QtCore import qVersion # noqa: I101, I102 + from PyQt6.QtCore import qVersion # noqa: I-101, I-102 except ImportError as msg: print("Sorry, please install PyQt6.") print("Error: {0}".format(msg)) @@ -1847,9 +1847,9 @@ # ==================== with contextlib.suppress(ImportError, AttributeError): try: - from PyQt6 import sip # noqa: I101, I102 + from PyQt6 import sip # noqa: I-101, I-102 except ImportError: - import sip # noqa: I101, I102 + import sip # noqa: I-101, I-102 print("sip:", sip.SIP_VERSION_STR.strip()) # always assume, that snapshots or dev versions are new enough if "snapshot" not in sip.SIP_VERSION_STR and "dev" not in sip.SIP_VERSION_STR: @@ -1874,7 +1874,7 @@ # check version of PyQt6 # ====================== - from PyQt6.QtCore import PYQT_VERSION, PYQT_VERSION_STR # noqa: I101, I102 + from PyQt6.QtCore import PYQT_VERSION, PYQT_VERSION_STR # noqa: I-101, I-102 print("PyQt6:", PYQT_VERSION_STR.strip()) # always assume, that snapshots or dev versions are new enough @@ -1900,7 +1900,7 @@ # check version of QScintilla # =========================== - from PyQt6.Qsci import ( # noqa: I101, I102 + from PyQt6.Qsci import ( # noqa: I-101, I-102 QSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, ) @@ -1928,12 +1928,12 @@ # print version info for additional modules with contextlib.suppress(NameError, AttributeError): - from PyQt6.QtCharts import PYQT_CHART_VERSION_STR # noqa: I101, I102 + from PyQt6.QtCharts import PYQT_CHART_VERSION_STR # noqa: I-101, I-102 print("PyQt6-Charts:", PYQT_CHART_VERSION_STR) with contextlib.suppress(ImportError, AttributeError): - from PyQt6 import QtWebEngineCore # noqa: I101, I102 + from PyQt6 import QtWebEngineCore # noqa: I-101, I-102 print("PyQt6-WebEngine:", QtWebEngineCore.PYQT_WEBENGINE_VERSION_STR) @@ -1994,7 +1994,7 @@ @rtype Any """ try: - import winreg # noqa: I101, I103 + import winreg # noqa: I-101, I-103 except ImportError: return None @@ -2021,8 +2021,8 @@ # replicate stuff done in pywin32.pth - needed only here import pywin32_bootstrap # noqa - from pywintypes import com_error # noqa: I102 - from win32com.client import Dispatch # noqa: I102 + from pywintypes import com_error # noqa: I-102 + from win32com.client import Dispatch # noqa: I-102 with contextlib.suppress(com_error): shell = Dispatch("WScript.Shell") @@ -2440,4 +2440,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/uninstall-debugclients.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/uninstall-debugclients.py Mon Feb 24 15:43:49 2025 +0100 @@ -120,4 +120,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/uninstall-server.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/uninstall-server.py Mon Feb 24 15:43:49 2025 +0100 @@ -161,4 +161,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/scripts/uninstall.py Mon Feb 24 15:11:18 2025 +0100 +++ b/scripts/uninstall.py Mon Feb 24 15:43:49 2025 +0100 @@ -396,7 +396,7 @@ Remove the eric configuration directory. """ try: - from PyQt6.QtCore import QSettings # __IGNORE_WARNING_I10__ + from PyQt6.QtCore import QSettings # __IGNORE_WARNING_I-10__ except ImportError: print("No PyQt variant installed. The configuration directory") print("cannot be determined. You have to remove it manually.\n") @@ -443,7 +443,7 @@ @rtype Any """ # From http://stackoverflow.com/a/35286642 - import winreg # __IGNORE_WARNING_I103__ + import winreg # __IGNORE_WARNING_I-103__ try: registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, winreg.KEY_READ) @@ -527,4 +527,4 @@ raise # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/CodeFormatting/BlackFormattingDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/CodeFormatting/BlackFormattingDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -668,7 +668,7 @@ """ self.result.emit("failed", str(src), message) - def path_ignored(self, src, message=""): # noqa: U100 + def path_ignored(self, src, message=""): # noqa: U-100 """ Public method handling an ignored path. @@ -746,7 +746,7 @@ BlackMultiprocessingResult(status="failed", filename=str(src), data=message) ) - def path_ignored(self, src, message=""): # noqa: U100 + def path_ignored(self, src, message=""): # noqa: U-100 """ Public method handling an ignored path.
--- a/src/eric7/CycloneDXInterface/CycloneDXUtilities.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/CycloneDXInterface/CycloneDXUtilities.py Mon Feb 24 15:43:49 2025 +0100 @@ -340,11 +340,11 @@ """ # add a Tool entry for eric7 try: - from importlib.metadata import version as meta_version # __IGNORE_WARNING_I10__ + from importlib.metadata import version as meta_version # noqa: I-10 __EricToolVersion = str(meta_version("eric-ide")) except Exception: - from eric7.__version__ import Version # __IGNORE_WARNING_I101__ + from eric7.__version__ import Version # __IGNORE_WARNING_I-101__ __EricToolVersion = Version
--- a/src/eric7/DataViews/CodeMetrics.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DataViews/CodeMetrics.py Mon Feb 24 15:43:49 2025 +0100 @@ -86,7 +86,7 @@ self.__addToken(toktype, toktext, srow, scol, line) except tokenize.TokenError as msg: print("Token Error: {0}".format(str(msg))) - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ return return
--- a/src/eric7/DebugClients/Python/AsyncFile.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/AsyncFile.py Mon Feb 24 15:43:49 2025 +0100 @@ -299,7 +299,7 @@ """ return False - def seek(self, offset, whence=0): # noqa: U100 + def seek(self, offset, whence=0): # noqa: U-100 """ Public method to move the filepointer. @@ -321,7 +321,7 @@ """ raise OSError((29, "[Errno 29] Illegal seek")) - def truncate(self, size=-1): # noqa: U100 + def truncate(self, size=-1): # noqa: U-100 """ Public method to truncate the file.
--- a/src/eric7/DebugClients/Python/DebugBase.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/DebugBase.py Mon Feb 24 15:43:49 2025 +0100 @@ -183,7 +183,7 @@ with contextlib.suppress(ImportError, AttributeError): if "__pypy__" in sys.builtin_module_names: - import __pypy__ # __IGNORE_WARNING_I10__ + import __pypy__ # __IGNORE_WARNING_I-10__ __pypy__.locals_to_fast(cf) return @@ -401,7 +401,7 @@ # ignore C events return None - print( # __IGNORE_WARNING_M801__ + print( # __IGNORE_WARNING_M-801__ "DebugBase.trace_dispatch: unknown debugging event: ", repr(event), ) @@ -488,7 +488,7 @@ @type bool """ if globalsDict is None: - import __main__ # __IGNORE_WARNING_I10__ + import __main__ # __IGNORE_WARNING_I-10__ globalsDict = __main__.__dict__
--- a/src/eric7/DebugClients/Python/DebugClientBase.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/DebugClientBase.py Mon Feb 24 15:43:49 2025 +0100 @@ -144,10 +144,10 @@ # Python types "list": "[]", "tuple": "()", - "dict": "{:}", # __IGNORE_WARNING_M613__ - "set": "{}", # __IGNORE_WARNING_M613__ - "frozenset": "{}", # __IGNORE_WARNING_M613__ - "numpy.ndarray": "[ndarray]", # __IGNORE_WARNING_M613__ + "dict": "{:}", # __IGNORE_WARNING_M-613__ + "set": "{}", # __IGNORE_WARNING_M-613__ + "frozenset": "{}", # __IGNORE_WARNING_M-613__ + "numpy.ndarray": "[ndarray]", # __IGNORE_WARNING_M-613__ "collections.abc.ItemsView": "[]", "collections.abc.KeysView": "[]", "collections.abc.ValuesView": "[]", @@ -350,7 +350,7 @@ @param jsonStr string containing the command received from the IDE @type str """ - ## printerr(jsonStr) ## debug # noqa: M891 + ## printerr(jsonStr) ## debug # noqa: M-891 try: commandDict = json.loads(jsonStr.strip()) @@ -550,7 +550,7 @@ ) elif method == "RequestCoverage": - from coverage import Coverage # __IGNORE_WARNING_I10__ + from coverage import Coverage # __IGNORE_WARNING_I-10__ self.disassembly = None sys.argv = [] @@ -596,7 +596,7 @@ elif method == "RequestProfile": sys.setprofile(None) - import PyProfile # __IGNORE_WARNING_I10__ + import PyProfile # __IGNORE_WARNING_I-10__ self.disassembly = None sys.argv = [] @@ -1811,7 +1811,7 @@ tracePython=False, redirect=True, passive=True, - multiprocessSupport=False, # noqa: U100 + multiprocessSupport=False, # noqa: U-100 ): """ Public method used to start the remote debugger. @@ -2113,10 +2113,10 @@ del args[0] if not args: print("No program given. Aborting!") - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ elif "-m" in args: print("Running module as a script is not supported. Aborting!") - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ else: # Store options in case a new Python process is created self.startOptions = ( @@ -2184,7 +2184,7 @@ else: remoteAddress = self.__resolveHost(ipOrHost) if remoteAddress is None: - print(f"Remote host '{ipOrHost}' could not be resolved.") # noqa: M801 + print(f"Remote host '{ipOrHost}' could not be resolved.") # noqa: M-801 sys.exit(1) sys.argv = [""] @@ -2208,7 +2208,7 @@ self.connectDebugger(port, remoteAddress, redirect) self.__interact() else: - print("No network port given. Aborting...") # noqa: M801 + print("No network port given. Aborting...") # noqa: M-801 sys.exit(2) def close(self, fd):
--- a/src/eric7/DebugClients/Python/DebugVariables.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/DebugVariables.py Mon Feb 24 15:43:49 2025 +0100 @@ -777,7 +777,7 @@ ## resolver class to use ############################################################ -_TypeMap = _ArrayTypes = None # noqa: U200 +_TypeMap = _ArrayTypes = None # noqa: U-200 _TryArray = _TryNumpy = _TryDjango = True _MapCount = 0 @@ -814,21 +814,21 @@ # array.array may not be imported (yet) if _TryArray and "array" in sys.modules: - import array # __IGNORE_WARNING_I10__ + import array # __IGNORE_WARNING_I-10__ _TypeMap.append((array.array, arrayResolver)) _TryArray = False # numpy may not be imported (yet) if _TryNumpy and "numpy" in sys.modules: - import numpy # __IGNORE_WARNING_I10__ + import numpy # __IGNORE_WARNING_I-10__ _TypeMap.append((numpy.ndarray, ndarrayResolver)) _TryNumpy = False # django may not be imported (yet) if _TryDjango and "django" in sys.modules: - from django.utils.datastructures import MultiValueDict # __IGNORE_WARNING_I10__ + from django.utils.datastructures import MultiValueDict # noqa: I-10 # it should go before dict _TypeMap.insert(0, (MultiValueDict, multiValueDictResolver))
--- a/src/eric7/DebugClients/Python/FlexCompleter.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/FlexCompleter.py Mon Feb 24 15:43:49 2025 +0100 @@ -253,4 +253,4 @@ # -# eflag: noqa = M111 +# eflag: noqa = M-111
--- a/src/eric7/DebugClients/Python/ModuleLoader.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/ModuleLoader.py Mon Feb 24 15:43:49 2025 +0100 @@ -100,7 +100,7 @@ return module - def find_spec(self, fullname, _path, target=None): # noqa: U100 + def find_spec(self, fullname, _path, target=None): # noqa: U-100 """ Public method returning the module spec.
--- a/src/eric7/DebugClients/Python/MultiProcessDebugExtension.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/MultiProcessDebugExtension.py Mon Feb 24 15:43:49 2025 +0100 @@ -259,7 +259,7 @@ Function replacing the 'fork_exec' functions of the _posixsubprocess module. """ - import _posixsubprocess # __IGNORE_WARNING_I103__ + import _posixsubprocess # __IGNORE_WARNING_I-103__ if _shallPatch(): args = patchArguments(_debugClient, args) @@ -363,9 +363,9 @@ or _winapi module. """ try: - import _subprocess # __IGNORE_WARNING_I10__ + import _subprocess # __IGNORE_WARNING_I-10__ except ImportError: - import _winapi as _subprocess # __IGNORE_WARNING_I10__ + import _winapi as _subprocess # __IGNORE_WARNING_I-10__ if _shallPatch(): cmdline = patchArgumentStringWindows(_debugClient, cmdline) return getattr(_subprocess, originalName)(appName, cmdline, *args) @@ -415,14 +415,14 @@ if isWindowsPlatform(): try: - import _subprocess # __IGNORE_WARNING_I10__ + import _subprocess # __IGNORE_WARNING_I-10__ except ImportError: - import _winapi as _subprocess # __IGNORE_WARNING_I10__ + import _winapi as _subprocess # __IGNORE_WARNING_I-10__ patchModule(_subprocess, "CreateProcess", createCreateProcess) else: patchModule(os, "fork", createFork) with contextlib.suppress(ImportError): - import _posixsubprocess # __IGNORE_WARNING_I10__ + import _posixsubprocess # __IGNORE_WARNING_I-10__ patchModule(_posixsubprocess, "fork_exec", createForkExec)
--- a/src/eric7/DebugClients/Python/MultiprocessingExtension.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/MultiprocessingExtension.py Mon Feb 24 15:43:49 2025 +0100 @@ -24,7 +24,7 @@ @type module @param debugClient reference to the debug client object @type DebugClient - """ # __IGNORE_WARNING_D234__ + """ # __IGNORE_WARNING_D-234__ global _debugClient, _originalProcess, _originalBootstrap _debugClient = debugClient @@ -75,7 +75,7 @@ ) except Exception: print( - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ "Exception during multiprocessing bootstrap init:" ) traceback.print_exc(file=sys.stdout)
--- a/src/eric7/DebugClients/Python/QProcessExtension.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/QProcessExtension.py Mon Feb 24 15:43:49 2025 +0100 @@ -23,7 +23,7 @@ @type module @param debugClient reference to the debug client object @type DebugClient - """ # __IGNORE_WARNING_D234__ + """ # __IGNORE_WARNING_D-234__ global _debugClient class QProcessWrapper(module.QProcess):
--- a/src/eric7/DebugClients/Python/eric7dbgstub.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/eric7dbgstub.py Mon Feb 24 15:43:49 2025 +0100 @@ -36,7 +36,7 @@ res = True try: if kind == "standard": - import DebugClient # __IGNORE_WARNING_I10__ + import DebugClient # __IGNORE_WARNING_I-10__ debugger = DebugClient.DebugClient() else:
--- a/src/eric7/DebugClients/Python/getpass.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/DebugClients/Python/getpass.py Mon Feb 24 15:43:49 2025 +0100 @@ -47,7 +47,7 @@ return "<unknown" -def getpass(prompt="Password: ", stream=None): # noqa: U100 +def getpass(prompt="Password: ", stream=None): # noqa: U-100 """ Function to prompt for a password, with echo turned off.
--- a/src/eric7/Debugger/BreakPointModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/BreakPointModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -69,7 +69,7 @@ self.breakpoints = [] - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the current column count. @@ -145,7 +145,7 @@ return None - def setData(self, index, value, role=Qt.ItemDataRole.EditRole): # noqa: U100 + def setData(self, index, value, role=Qt.ItemDataRole.EditRole): # noqa: U-100 """ Public method to change data in the model.
--- a/src/eric7/Debugger/DebugServer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/DebugServer.py Mon Feb 24 15:43:49 2025 +0100 @@ -1626,7 +1626,7 @@ ) def remoteClientVariable( - self, debuggerId, scope, filterList, var, framenr=0, maxSize=0 # noqa: U100 + self, debuggerId, scope, filterList, var, framenr=0, maxSize=0 # noqa: U-100 ): """ Public method to request the variables of the debugged program.
--- a/src/eric7/Debugger/DebuggerInterfaceNone.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/DebuggerInterfaceNone.py Mon Feb 24 15:43:49 2025 +0100 @@ -627,4 +627,4 @@ # -# eflag: noqa = U100 +# eflag: noqa = U-100
--- a/src/eric7/Debugger/DebuggerInterfacePython.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/DebuggerInterfacePython.py Mon Feb 24 15:43:49 2025 +0100 @@ -100,7 +100,7 @@ # attribute to remember the name of the executed script self.__scriptName = "" - def __identityTranslation(self, fn, remote2local=True): # noqa: U100 + def __identityTranslation(self, fn, remote2local=True): # noqa: U-100 """ Private method to perform the identity path translation. @@ -1668,7 +1668,7 @@ jsonStr = data.decode("utf-8", "backslashreplace") logging.getLogger(__name__).debug("<Debug-Server> %s", jsonStr) - ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M891__ + ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M-891__ if jsonStr: self.handleJsonCommand(jsonStr, sock)
--- a/src/eric7/Debugger/VariablesViewer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/VariablesViewer.py Mon Feb 24 15:43:49 2025 +0100 @@ -495,7 +495,7 @@ idxEnd = self.index(0, 2, QModelIndex()) self.dataChanged.emit(idxStart, idxEnd) - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the column count.
--- a/src/eric7/Debugger/WatchPointModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Debugger/WatchPointModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -61,7 +61,7 @@ self.watchpoints = [] - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the current column count.
--- a/src/eric7/EricGui/EricOverrideCursor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricGui/EricOverrideCursor.py Mon Feb 24 15:43:49 2025 +0100 @@ -61,7 +61,7 @@ QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents ) - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ class EricOverridenCursor(contextlib.AbstractContextManager): @@ -115,7 +115,7 @@ QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents ) - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ class EricOverrideCursorProcess(QProcess):
--- a/src/eric7/EricNetwork/EricGoogleMailHelpers.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricGoogleMailHelpers.py Mon Feb 24 15:43:49 2025 +0100 @@ -41,8 +41,8 @@ Module function to install the required packages to support Google mail. """ with contextlib.suppress(ImportError, KeyError): - from eric7.EricWidgets.EricApplication import ericApp # noqa: I101 - from eric7.SystemUtilities import PythonUtilities # noqa: I101 + from eric7.EricWidgets.EricApplication import ericApp # noqa: I-101 + from eric7.SystemUtilities import PythonUtilities # noqa: I-101 pip = ericApp().getObject("Pip") pip.installPackages( @@ -51,4 +51,4 @@ # -# eflag: noqa = U200 +# eflag: noqa = U-200
--- a/src/eric7/EricNetwork/EricJsonServer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricJsonServer.py Mon Feb 24 15:43:49 2025 +0100 @@ -78,7 +78,7 @@ if ":" in self.__hostAddress else self.__hostAddress ) - print( # __IGNORE_WARNING_M801__ + print( # __IGNORE_WARNING_M-801__ "JSON server ({2}) listening on: {0}:{1:d}".format( hostAddressStr, self.serverPort(), self.__name )
--- a/src/eric7/EricNetwork/EricJsonStreamReader.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricJsonStreamReader.py Mon Feb 24 15:43:49 2025 +0100 @@ -64,7 +64,7 @@ if ":" in self.__hostAddress else self.__hostAddress ) - print( # __IGNORE_WARNING_M801__ + print( # __IGNORE_WARNING_M-801__ "JSON server ({2}) listening on: {0}:{1:d}".format( hostAddressStr, self.serverPort(), self.__name )
--- a/src/eric7/EricNetwork/EricSslCertificateSelectionDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricSslCertificateSelectionDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -114,7 +114,7 @@ Private slot to show data of the selected certificate. """ with contextlib.suppress(ImportError): - from .EricSslCertificatesInfoDialog import ( # noqa: I101 + from .EricSslCertificatesInfoDialog import ( # noqa: I-101 EricSslCertificatesInfoDialog, )
--- a/src/eric7/EricNetwork/EricSslCertificatesDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricSslCertificatesDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -130,7 +130,7 @@ Private slot to show data of the selected server certificate. """ with contextlib.suppress(ImportError): - from .EricSslCertificatesInfoDialog import ( # noqa: I101 + from .EricSslCertificatesInfoDialog import ( # noqa: I-101 EricSslCertificatesInfoDialog, ) @@ -347,7 +347,7 @@ Private slot to show data of the selected CA certificate. """ with contextlib.suppress(ImportError): - from .EricSslCertificatesInfoDialog import ( # noqa: I101 + from .EricSslCertificatesInfoDialog import ( # noqa: I-101 EricSslCertificatesInfoDialog, )
--- a/src/eric7/EricNetwork/EricSslUtilities.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricNetwork/EricSslUtilities.py Mon Feb 24 15:43:49 2025 +0100 @@ -13,7 +13,7 @@ Function to initialize some global SSL stuff. """ try: - from PyQt6.QtNetwork import QSslConfiguration # __IGNORE_WARNING_I10__ + from PyQt6.QtNetwork import QSslConfiguration # __IGNORE_WARNING_I-10__ except ImportError: # no SSL available, so there is nothing to initialize return
--- a/src/eric7/EricUtilities/EricMutexLocker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricUtilities/EricMutexLocker.py Mon Feb 24 15:43:49 2025 +0100 @@ -51,4 +51,4 @@ """ self.__mutex.unlock() - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__
--- a/src/eric7/EricWidgets/EricErrorMessage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricWidgets/EricErrorMessage.py Mon Feb 24 15:43:49 2025 +0100 @@ -253,4 +253,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/EricWidgets/EricFileDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricWidgets/EricFileDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -544,4 +544,4 @@ # -# eflag: noqa = U200 +# eflag: noqa = U-200
--- a/src/eric7/EricWidgets/EricMainWindow.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricWidgets/EricMainWindow.py Mon Feb 24 15:43:49 2025 +0100 @@ -44,7 +44,7 @@ """ # step 1: set the style style = None - if styleName != "System" and styleName in QStyleFactory.keys(): # noqa: Y118 + if styleName != "System" and styleName in QStyleFactory.keys(): # noqa: Y-118 style = QStyleFactory.create(styleName) if style is None: style = QStyleFactory.create(self.defaultStyleName)
--- a/src/eric7/EricWidgets/EricMessageBox.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricWidgets/EricMessageBox.py Mon Feb 24 15:43:49 2025 +0100 @@ -21,7 +21,7 @@ Critical = QMessageBox.Icon.Critical Information = QMessageBox.Icon.Information Question = QMessageBox.Icon.Question -Warning = QMessageBox.Icon.Warning # __IGNORE_WARNING_M131__ +Warning = QMessageBox.Icon.Warning # __IGNORE_WARNING_M-131__ # QMessageBox.StandardButton Abort = QMessageBox.StandardButton.Abort @@ -435,4 +435,4 @@ # -# eflag: noqa = U200 +# eflag: noqa = U-200
--- a/src/eric7/EricWidgets/EricTextEditSearchWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/EricWidgets/EricTextEditSearchWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -454,7 +454,7 @@ @param backwards flag indicating a backwards search @type bool """ - from PyQt6.QtWebEngineCore import QWebEnginePage # noqa: I102 + from PyQt6.QtWebEngineCore import QWebEnginePage # noqa: I-102 if self.findtextCombo.currentText(): findFlags = QWebEnginePage.FindFlag(0)
--- a/src/eric7/Globals/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Globals/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -88,9 +88,9 @@ @rtype str """ try: - from eric7.eric7config import getConfig # __IGNORE_WARNING_I101__ + from eric7.eric7config import getConfig # __IGNORE_WARNING_I-101__ except ImportError: - from eric7config import getConfig # __IGNORE_WARNING_I10__ + from eric7config import getConfig # __IGNORE_WARNING_I-10__ scriptPath = os.path.join(getConfig("ericDir"), "Tools", "webBrowserSupport.py") proc = QProcess() @@ -104,4 +104,4 @@ # -# eflag: noqa = M801, U200 +# eflag: noqa = M-801, U-200
--- a/src/eric7/Graphics/AssociationItem.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Graphics/AssociationItem.py Mon Feb 24 15:43:49 2025 +0100 @@ -184,7 +184,7 @@ endP = self.__findRectIntersectionPoint(self.itemB, midB, midA) if startP.x() != -1 and startP.y() != -1 and endP.x() != -1 and endP.y() != -1: - # __IGNORE_WARNING_C111__ + # __IGNORE_WARNING_C-111__ self.setPoints(startP.x(), startP.y(), endP.x(), endP.y()) def __calculateEndingPoints_rectangle(self):
--- a/src/eric7/Graphics/UMLDiagramBuilder.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Graphics/UMLDiagramBuilder.py Mon Feb 24 15:43:49 2025 +0100 @@ -66,7 +66,7 @@ "Method 'buildDiagram' must be implemented in subclasses." ) - def parsePersistenceData(self, version, data): # noqa: U100 + def parsePersistenceData(self, version, data): # noqa: U-100 """ Public method to parse persisted data. @@ -88,7 +88,7 @@ """ return {} - def fromDict(self, version, data): # noqa: U100 + def fromDict(self, version, data): # noqa: U-100 """ Public method to populate the class with data persisted by 'toDict()'.
--- a/src/eric7/HelpViewer/HelpViewerImplQWE.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/HelpViewer/HelpViewerImplQWE.py Mon Feb 24 15:43:49 2025 +0100 @@ -113,7 +113,7 @@ self.__rwhvqt.grabGesture(Qt.GestureType.PinchGesture) self.__rwhvqt.installEventFilter(self) else: - print("Focus proxy is null!") # __IGNORE_WARNING_M801__ + print("Focus proxy is null!") # __IGNORE_WARNING_M-801__ def setLink(self, url): """
--- a/src/eric7/HelpViewer/HelpViewerWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/HelpViewer/HelpViewerWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -629,11 +629,11 @@ @rtype tuple of (HelpViewerImpl, EricTextEditType) """ if self.__useQTextBrowser: - from .HelpViewerImplQTB import HelpViewerImplQTB # __IGNORE_WARNING_I101__ + from .HelpViewerImplQTB import HelpViewerImplQTB # __IGNORE_WARNING_I-101__ viewer = HelpViewerImplQTB(self.__helpEngine, self) else: - from .HelpViewerImplQWE import HelpViewerImplQWE # __IGNORE_WARNING_I101__ + from .HelpViewerImplQWE import HelpViewerImplQWE # __IGNORE_WARNING_I-101__ viewer = HelpViewerImplQWE(self.__helpEngine, self)
--- a/src/eric7/HexEdit/HexEditSearchReplaceWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/HexEdit/HexEditSearchReplaceWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -69,14 +69,14 @@ self.__findHistory = mainWindow.getSRHistory("search") if replace: - from .Ui_HexEditReplaceWidget import ( # __IGNORE_WARNING_I101__ + from .Ui_HexEditReplaceWidget import ( # __IGNORE_WARNING_I-101__ Ui_HexEditReplaceWidget, ) self.__replaceHistory = mainWindow.getSRHistory("replace") self.__ui = Ui_HexEditReplaceWidget() else: - from .Ui_HexEditSearchWidget import ( # __IGNORE_WARNING_I101__ + from .Ui_HexEditSearchWidget import ( # __IGNORE_WARNING_I-101__ Ui_HexEditSearchWidget, )
--- a/src/eric7/JediInterface/JediClient.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/JediInterface/JediClient.py Mon Feb 24 15:43:49 2025 +0100 @@ -617,4 +617,4 @@ sys.exit(0) # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/MicroPython/BluetoothDialogs/BluetoothAdvertisement.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/BluetoothDialogs/BluetoothAdvertisement.py Mon Feb 24 15:43:49 2025 +0100 @@ -303,4 +303,4 @@ # -# eflag: noqa = U200 +# eflag: noqa = U-200
--- a/src/eric7/MicroPython/Devices/DeviceBase.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/Devices/DeviceBase.py Mon Feb 24 15:43:49 2025 +0100 @@ -1400,7 +1400,7 @@ else: return "" - def syncTime(self, _deviceType, hasCPy=False): # noqa: U100 + def syncTime(self, _deviceType, hasCPy=False): # noqa: U-100 """ Public method to set the time of the connected device to the local computer's time. @@ -1588,7 +1588,7 @@ """ return {}, {}, {} - def connectWifi(self, ssid, password, hostname): # noqa: U100 + def connectWifi(self, ssid, password, hostname): # noqa: U-100 """ Public method to connect a device to a WiFi network. @@ -1630,7 +1630,7 @@ """ return False - def writeCredentials(self, ssid, password, hostname, country): # noqa: U100 + def writeCredentials(self, ssid, password, hostname, country): # noqa: U-100 """ Public method to write the given credentials to the connected device and modify the start script to connect automatically. @@ -1676,7 +1676,7 @@ """ return [], "" - def deactivateInterface(self, interface): # noqa: U100 + def deactivateInterface(self, interface): # noqa: U-100 """ Public method to deactivate a given WiFi interface of the connected device. @@ -1690,11 +1690,11 @@ def startAccessPoint( self, - ssid, # noqa: U100 - security=None, # noqa: U100 - password=None, # noqa: U100 - hostname=None, # noqa: U100 - ifconfig=None, # noqa: U100 + ssid, # noqa: U-100 + security=None, # noqa: U-100 + password=None, # noqa: U-100 + hostname=None, # noqa: U-100 + ifconfig=None, # noqa: U-100 ): """ Public method to start the access point interface. @@ -1734,7 +1734,7 @@ """ return [], "" - def enableWebrepl(self, password): # noqa: U100 + def enableWebrepl(self, password): # noqa: U-100 """ Public method to write the given WebREPL password to the connected device and modify the start script to start the WebREPL server. @@ -1789,7 +1789,7 @@ """ return [] - def connectToLan(self, config, hostname): # noqa: U100 + def connectToLan(self, config, hostname): # noqa: U-100 """ Public method to connect the connected device to the LAN. @@ -1840,7 +1840,7 @@ """ return True, "" - def writeLanAutoConnect(self, config, hostname): # noqa: U100 + def writeLanAutoConnect(self, config, hostname): # noqa: U-100 """ Public method to generate a script and associated configuration to connect the device to the LAN during boot time. @@ -1917,7 +1917,7 @@ """ return False - def getDeviceScan(self, timeout=10): # noqa: U100 + def getDeviceScan(self, timeout=10): # noqa: U-100 """ Public method to perform a Bluetooth device scan. @@ -1944,7 +1944,7 @@ return False def setNetworkTime( - self, server="pool.ntp.org", tzOffset=0, timeout=10 # noqa: U100 + self, server="pool.ntp.org", tzOffset=0, timeout=10 # noqa: U-100 ): """ Public method to set the time to the network time retrieved from an @@ -1985,4 +1985,4 @@ # -# eflag: noqa = M613 +# eflag: noqa = M-613
--- a/src/eric7/MicroPython/Devices/EspDevices.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/Devices/EspDevices.py Mon Feb 24 15:43:49 2025 +0100 @@ -639,7 +639,7 @@ # The machine.RTC.init() (ESP32) and machine.rtc.datetime() (ESP8266) functions # take the arguments in the order: # (year, month, day, weekday, hour, minute, second, subseconds) - # __IGNORE_WARNING_M891__ + # __IGNORE_WARNING_M-891__ # https://docs.micropython.org/en/latest/library/machine.RTC.html#machine-rtc # # LoBo variant of MPy deviates.
--- a/src/eric7/MicroPython/Devices/RP2Devices.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/Devices/RP2Devices.py Mon Feb 24 15:43:49 2025 +0100 @@ -406,7 +406,7 @@ # The machine.rtc.datetime() function takes the arguments in the order: # (year, month, day, weekday, hour, minute, second, subseconds) - # __IGNORE_WARNING_M891__ + # __IGNORE_WARNING_M-891__ # https://docs.micropython.org/en/latest/library/machine.RTC.html#machine-rtc return """ def set_time(rtc_time):
--- a/src/eric7/MicroPython/Devices/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/Devices/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -472,7 +472,7 @@ (0x8086, None), ) -FirmwareGithubUrls = { # noqa: U200 +FirmwareGithubUrls = { # noqa: U-200 "micropython": "https://github.com/micropython/micropython/releases/latest", "circuitpython": "https://github.com/adafruit/circuitpython/releases/latest", "pimoroni_pico": "https://github.com/pimoroni/pimoroni-pico/releases/latest",
--- a/src/eric7/MicroPython/MicroPythonReplWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/MicroPythonReplWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -555,7 +555,7 @@ ): if b"\x1b\\" in data[index + 4 :]: # 'set window title' command detected: <Esc>]0;...<Esc>\ - # __IGNORE_WARNING_M891__ + # __IGNORE_WARNING_M-891__ titleData = data[index + 4 :].split(b"\x1b\\")[0] title = titleData.decode("utf-8") index += len(titleData) + 5 # one more is done at the end
--- a/src/eric7/MicroPython/MicroPythonWebreplDeviceInterface.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/MicroPython/MicroPythonWebreplDeviceInterface.py Mon Feb 24 15:43:49 2025 +0100 @@ -168,7 +168,7 @@ return True - def execute(self, commands, *, mode="raw", timeout=0): # noqa: U100 + def execute(self, commands, *, mode="raw", timeout=0): # noqa: U-100 """ Public method to send commands to the connected device and return the result.
--- a/src/eric7/PipInterface/Pip.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/PipInterface/Pip.py Mon Feb 24 15:43:49 2025 +0100 @@ -768,7 +768,7 @@ pipre = re.compile(r"^pip\s*(~=|==|!=|<=|>=|<|>|===)") for dependency in dependencies: if pipre.search(dependency): - dependencies.remove(dependency) # noqa: M569 + dependencies.remove(dependency) # noqa: M-569 break dlg = DeleteFilesConfirmationDialog(
--- a/src/eric7/PipInterface/PipPackagesWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/PipInterface/PipPackagesWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -1224,7 +1224,7 @@ ericApp().getObject("UserInterface").showPreferences("pipPage") except KeyError: # we were called from outside the eric IDE - from eric7.Preferences.ConfigurationDialog import ( # noqa: I101 + from eric7.Preferences.ConfigurationDialog import ( # noqa: I-101 ConfigurationDialog, ConfigurationMode, ) @@ -1836,7 +1836,7 @@ """ Private slot to create a "Software Bill Of Material" file. """ - import CycloneDXInterface # __IGNORE_WARNING_I102__ + import CycloneDXInterface # __IGNORE_WARNING_I-102__ venvName = self.environmentsComboBox.currentText() if venvName == self.__pip.getProjectEnvironmentString():
--- a/src/eric7/PipInterface/PipVulnerabilityChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/PipInterface/PipVulnerabilityChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -127,7 +127,7 @@ @rtype dict """ if os.path.exists(self.__cacheFile): - with open(self.__cacheFile, "r") as f: # noqa: Y117 + with open(self.__cacheFile, "r") as f: # noqa: Y-117 with contextlib.suppress(json.JSONDecodeError, OSError): cachedData = json.load(f) if dbName in cachedData and "cachedAt" in cachedData[dbName]:
--- a/src/eric7/PipInterface/pipcleanup.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/PipInterface/pipcleanup.py Mon Feb 24 15:43:49 2025 +0100 @@ -27,7 +27,7 @@ leftovers = glob.glob("~*", root_dir=sitepackages) for leftover in leftovers: directory = os.path.join(sitepackages, leftover) - print(f"Removing '{directory}'.") # noqa: M801 + print(f"Removing '{directory}'.") # noqa: M-801 shutil.rmtree(directory, ignore_errors=True) # check again for leftovers and report via exit code @@ -39,7 +39,7 @@ win_leftovers = glob.glob("pip-uninstall-*", root_dir=tempDir) for leftover in win_leftovers: directory = os.path.join(tempDir, leftover) - print(f"Removing '{directory}'.") # noqa: M801 + print(f"Removing '{directory}'.") # noqa: M-801 shutil.rmtree(directory, ignore_errors=True) # check again for leftovers and report via exit code
--- a/src/eric7/PluginManager/PluginManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/PluginManager/PluginManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -1528,11 +1528,11 @@ pip = ericApp().getObject("Pip") except KeyError: # Installation is performed via the plug-in installation script. - from eric7.PipInterface.Pip import Pip # __IGNORE_WARNING_I101__ + from eric7.PipInterface.Pip import Pip # __IGNORE_WARNING_I-101__ pip = Pip(self) pip.installPackages(packages, interpreter=PythonUtilities.getPythonExecutable()) # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -388,7 +388,7 @@ else: self.__error(arg.lineno - 1, arg.col_offset, errorCode) - @lru_cache() # __IGNORE_WARNING_M519__ + @lru_cache() # __IGNORE_WARNING_M-519__ def __returnErrorClassifier(self, isClassMethod, classDecoratorType, functionType): """ Private method to classify a return type annotation issue. @@ -419,7 +419,7 @@ else: return "A-201" - @lru_cache() # __IGNORE_WARNING_M519__ + @lru_cache() # __IGNORE_WARNING_M-519__ def __argumentErrorClassifier( self, isClassMethod, isFirstArg, classDecoratorType, annotationType ):
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -1057,7 +1057,7 @@ """ Private method to modify the options based on eflag: entries. - This method looks for comment lines like '# eflag: noqa = M601' + This method looks for comment lines like '# eflag: noqa = M-601' at the end of the source in order to extend the list of excluded messages for one file only.
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py Mon Feb 24 15:43:49 2025 +0100 @@ -21,7 +21,7 @@ with contextlib.suppress(ImportError): import pycodestyle -FixableCodeStyleIssues = [ # noqa: U200 +FixableCodeStyleIssues = [ # noqa: U-200 "D-111", "D-112", "D-121", @@ -1702,7 +1702,7 @@ """ Private method to fix the long lines by breaking them. - Codes: E501 + Codes: E-501 @param code code of the issue @type str @@ -1748,7 +1748,7 @@ newNextText = "" self.__source[line + 1] = newNextText # Long lines have been shortened. - return (1, "FIX-E501", [], 0) + return (1, "FIX-E-501", [], 0) else: return (0, "", [], 0) else: @@ -3055,7 +3055,7 @@ """ count = 0 for opening, closing in ["()", "[]", "{}"]: - # __IGNORE_WARNING_M613__ + # __IGNORE_WARNING_M-613__ count += abs(line.count(opening) - line.count(closing)) return count
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -1642,7 +1642,9 @@ and lineno > 0 and lines[lineno - 1].strip() == "" ): - self.__error(docstringContext.start() + lineno, 0, "D-271", docToken) + self.__error( + docstringContext.start() + lineno, 0, "D-271", docToken + ) # check the correct sequence of @param/@return/@yield and their accompanying # type tag
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py Mon Feb 24 15:43:49 2025 +0100 @@ -29,7 +29,9 @@ "I-903": QCoreApplication.translate( "ImportsChecker", "relative imports from parent modules are banned" ), - "I-904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), + "I-904": QCoreApplication.translate( + "ImportsChecker", "relative imports are banned" + ), } _importsMessagesSampleArgs = {
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/LoggingVisitor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/LoggingVisitor.py Mon Feb 24 15:43:49 2025 +0100 @@ -75,9 +75,9 @@ # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting return re.compile( r""" - % # noqa: M601 + % # noqa: M-601 (?P<spec> - % | # raw % character # noqa: M601 + % | # raw % character # noqa: M-601 (?: ([-#0 +]+)? # conversion flags (?P<minwidth>\d+|\*)? # minimum field width @@ -103,7 +103,7 @@ # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting return re.compile( r""" - % # noqa: M601 + % # noqa: M-601 \( (?P<name>.*?) \) @@ -472,7 +472,7 @@ msgArg.col_offset, "L-112", modposCount, - "'%'", # noqa: M601 + "'%'", # noqa: M-601 argCount, ) return
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/translations.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/translations.py Mon Feb 24 15:43:49 2025 +0100 @@ -63,7 +63,7 @@ ), "L-111c": QCoreApplication.translate( "LoggingChecker", - "avoid pre-formatting log messages using '%'", # noqa: M601 + "avoid pre-formatting log messages using '%'", # noqa: M-601 ), "L-111d": QCoreApplication.translate( "LoggingChecker", @@ -94,7 +94,7 @@ _loggingMessagesSampleArgs = { ## Logging "L-103": ["'pathname'"], - "L-112": [3, "'%'", 2], # noqa: M601 + "L-112": [3, "'%'", 2], # noqa: M-601 "L-113a": ["'foo', 'bar'"], "L-113b": ["'foo', 'bar'"], }
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -346,7 +346,16 @@ (self.__checkDictWithSortedKeys, ("M-251",)), ( self.__checkProperties, - ("M-260", "M-261", "M-262", "M-263", "M-264", "M-265", "M-266", "M-267"), + ( + "M-260", + "M-261", + "M-262", + "M-263", + "M-264", + "M-265", + "M-266", + "M-267", + ), ), ( self.__checkDateTime, @@ -714,7 +723,10 @@ ) else: self.__error( - node.lineno - 1, node.col_offset, "M-702", ", ".join(expectedImports) + node.lineno - 1, + node.col_offset, + "M-702", + ", ".join(expectedImports), ) def __checkPep3101(self): @@ -819,7 +831,9 @@ for name in sorted(names): if name not in keywords: - self.__error(call.lineno - 1, call.col_offset, "M-622", name) + self.__error( + call.lineno - 1, call.col_offset, "M-622", name + ) for arg in range(numArgs): if arg not in numbers: @@ -1063,7 +1077,9 @@ and numKeywordArgs == 0 and node.func.id in ("tuple", "list") ): - self.__error(node.lineno - 1, node.col_offset, "M-188", node.func.id) + self.__error( + node.lineno - 1, node.col_offset, "M-188", node.func.id + ) elif ( node.func.id in {"list", "reversed"} @@ -1147,7 +1163,9 @@ and isinstance(node.args[0].slice.step.operand, ast.Constant) and node.args[0].slice.step.operand.n == 1 ): - self.__error(node.lineno - 1, node.col_offset, "M-195", node.func.id) + self.__error( + node.lineno - 1, node.col_offset, "M-195", node.func.id + ) elif ( node.func.id == "map" @@ -1156,7 +1174,10 @@ and isinstance(node.args[0], ast.Lambda) ): self.__error( - node.lineno - 1, node.col_offset, "M-197", "generator expression" + node.lineno - 1, + node.col_offset, + "M-197", + "generator expression", ) elif ( @@ -1489,7 +1510,9 @@ for a, b in pairwise(tokensWithoutWhitespace): if self.__isImplicitStringConcat(a, b): self.__error( - a.end[0] - 1, a.end[1], "M-851" if a.end[0] == b.start[0] else "M-852" + a.end[0] - 1, + a.end[1], + "M-851" if a.end[0] == b.start[0] else "M-852", ) def __checkExplicitStringConcat(self): @@ -2869,7 +2892,7 @@ @param node reference to the node to be processed @type ast.ClassDef - """ # __IGNORE_WARNING_D234r__ + """ # __IGNORE_WARNING_D-234r__ def isAbcClass(value, name="ABC"): if isinstance(value, ast.keyword): @@ -3192,7 +3215,7 @@ @param node reference to the node to be processed @type ast.expr or None - """ # noqa: D234y + """ # noqa: D-234y def superwalk(node: ast.AST | list[ast.AST]): """ @@ -3223,7 +3246,7 @@ @param node reference to the node to be processed @type ast.Dict - """ # noqa: D234r + """ # noqa: D-234r def convertToValue(item): """ @@ -4551,4 +4574,4 @@ # -# eflag: noqa = M891 +# eflag: noqa = M-891
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -97,7 +97,10 @@ for name in ("functiondef", "asyncfunctiondef"): self.__checkersWithCodes[name] = [ (self.__checkFunctionName, ("N-802", "N-809")), - (self.__checkFunctionArgumentNames, ("N-803", "N-804", "N-805", "N-806")), + ( + self.__checkFunctionArgumentNames, + ("N-803", "N-804", "N-805", "N-806"), + ), (self.__checkNameToBeAvoided, ("N-831",)), ] for name in ("assign", "namedexpr", "annassign"):
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/djangoXssVulnerability.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/djangoXssVulnerability.py Mon Feb 24 15:43:49 2025 +0100 @@ -313,7 +313,7 @@ elif isinstance(arg, ast.Starred) and isinstance( arg.value, (ast.List, ast.Tuple) ): - args.extend(arg.value.elts) # noqa: M569 + args.extend(arg.value.elts) # noqa: M-569 numSecure += 1 else: break
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityUtils.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityUtils.py Mon Feb 24 15:43:49 2025 +0100 @@ -349,4 +349,4 @@ # -# eflag: noqa = M601 +# eflag: noqa = M-601
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/translations.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/translations.py Mon Feb 24 15:43:49 2025 +0100 @@ -45,7 +45,9 @@ # try-except and contextlib.suppress "S-110": QCoreApplication.translate("Security", "Try, Except, Pass detected."), "S-112": QCoreApplication.translate("Security", "Try, Except, Continue detected."), - "S-113": QCoreApplication.translate("Security", "'contextlib.suppress()' detected."), + "S-113": QCoreApplication.translate( + "Security", "'contextlib.suppress()' detected." + ), # request without timeout "S-114.1": QCoreApplication.translate("Security", "Call to {0} without timeout."), "S-114.2": QCoreApplication.translate(
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Mon Feb 24 15:43:49 2025 +0100 @@ -1781,7 +1781,7 @@ @param node reference to the AST node to be checked @type ast.Call - """ # __IGNORE_WARNING_D234r__ + """ # __IGNORE_WARNING_D-234r__ def getOsPathJoinArgs(node): names = [] @@ -1937,4 +1937,4 @@ # -# eflag: noqa = M891 +# eflag: noqa = M-891
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Unused/translations.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Unused/translations.py Mon Feb 24 15:43:49 2025 +0100 @@ -14,7 +14,9 @@ "U-100": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"), "U-101": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"), ## Unused Globals - "U-200": QCoreApplication.translate("UnusedChecker", "Unused global variable '{0}'"), + "U-200": QCoreApplication.translate( + "UnusedChecker", "Unused global variable '{0}'" + ), } _unusedMessagesSampleArgs = {
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Mon Feb 24 15:43:49 2025 +0100 @@ -289,7 +289,7 @@ of 79 characters. For flowing long blocks of text (docstrings or comments), limiting the length to 72 characters is recommended. - Reports error E501. + Reports error E-501. """ line = physical_line.rstrip() length = len(line) @@ -306,7 +306,7 @@ len(line) - len(chunks[-1]) < max_line_length - 7: return if length > max_line_length: - return (max_line_length, "E501 line too long " + return (max_line_length, "E-501 line too long " "(%d > %d characters)" % (length, max_line_length), length, max_line_length) @@ -922,7 +922,7 @@ if text == ':' and brace_stack[-1:] == ['[']: pass # 3.12+ fstring format specifier - elif text == ':' and brace_stack[-2:] == ['f', '{']: # pragma: >=3.12 cover # noqa: E501 + elif text == ':' and brace_stack[-2:] == ['f', '{']: # pragma: >=3.12 cover # noqa: E-501 pass # tuple (and list for some reason?) elif text == ',' and next_char in ')]': @@ -2733,4 +2733,4 @@ if __name__ == '__main__': _main() # -# eflag: noqa = D2, M601, M801 +# eflag: noqa = D2, M-601, M-801
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Mon Feb 24 15:43:49 2025 +0100 @@ -93,12 +93,16 @@ "E-201": QCoreApplication.translate("pycodestyle", "whitespace after '{0}'"), "E-202": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), "E-203": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), - "E-204": QCoreApplication.translate("pycodestyle", "whitespace after decorator '@'"), + "E-204": QCoreApplication.translate( + "pycodestyle", "whitespace after decorator '@'" + ), "E-211": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), "E-221": QCoreApplication.translate( "pycodestyle", "multiple spaces before operator" ), - "E-222": QCoreApplication.translate("pycodestyle", "multiple spaces after operator"), + "E-222": QCoreApplication.translate( + "pycodestyle", "multiple spaces after operator" + ), "E-223": QCoreApplication.translate("pycodestyle", "tab before operator"), "E-224": QCoreApplication.translate("pycodestyle", "tab after operator"), "E-225": QCoreApplication.translate( @@ -113,7 +117,9 @@ "E-228": QCoreApplication.translate( "pycodestyle", "missing whitespace around modulo operator" ), - "E-231": QCoreApplication.translate("pycodestyle", "missing whitespace after '{0}'"), + "E-231": QCoreApplication.translate( + "pycodestyle", "missing whitespace after '{0}'" + ), "E-241": QCoreApplication.translate("pycodestyle", "multiple spaces after '{0}'"), "E-242": QCoreApplication.translate("pycodestyle", "tab after '{0}'"), "E-251": QCoreApplication.translate( @@ -135,7 +141,9 @@ "pycodestyle", "too many leading '#' for block comment" ), "E-271": QCoreApplication.translate("pycodestyle", "multiple spaces after keyword"), - "E-272": QCoreApplication.translate("pycodestyle", "multiple spaces before keyword"), + "E-272": QCoreApplication.translate( + "pycodestyle", "multiple spaces before keyword" + ), "E-273": QCoreApplication.translate("pycodestyle", "tab after keyword"), "E-274": QCoreApplication.translate("pycodestyle", "tab before keyword"), "E-275": QCoreApplication.translate( @@ -227,7 +235,9 @@ "W-191": QCoreApplication.translate("pycodestyle", "indentation contains tabs"), "W-291": QCoreApplication.translate("pycodestyle", "trailing whitespace"), "W-292": QCoreApplication.translate("pycodestyle", "no newline at end of file"), - "W-293": QCoreApplication.translate("pycodestyle", "blank line contains whitespace"), + "W-293": QCoreApplication.translate( + "pycodestyle", "blank line contains whitespace" + ), "W-391": QCoreApplication.translate("pycodestyle", "blank line at end of file"), "W-503": QCoreApplication.translate( "pycodestyle", "line break before binary operator" @@ -360,7 +370,7 @@ "FIX-E401": QCoreApplication.translate( "CodeStyleFixer", "Imports were put on separate lines." ), - "FIX-E501": QCoreApplication.translate( + "FIX-E-501": QCoreApplication.translate( "CodeStyleFixer", "Long lines have been shortened." ), "FIX-E502": QCoreApplication.translate(
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Mon Feb 24 15:43:49 2025 +0100 @@ -158,7 +158,7 @@ """ if codestring: try: - import esprima # noqa: I101, I102 + import esprima # noqa: I-101, I-102 except ImportError: error = "esprima not available. Install it via the PyPI interface." return [{"error": (file, 0, 0, "", error)}]
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyCheckSyntax.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyCheckSyntax.py Mon Feb 24 15:43:49 2025 +0100 @@ -254,8 +254,8 @@ category, filename, lineno, - file=None, # noqa: U100 - line=None, # noqa: U100 + file=None, # noqa: U-100 + line=None, # noqa: U-100 ): pyWarnings.append( ( @@ -291,7 +291,7 @@ if filename.endswith(".ptl"): try: - import quixote.ptl_compile # __IGNORE_WARNING_I10__ + import quixote.ptl_compile # __IGNORE_WARNING_I-10__ except ImportError: return [ {"error": (filename, 0, 0, "", "Quixote plugin not found.")}
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/tomlCheckSyntax.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/tomlCheckSyntax.py Mon Feb 24 15:43:49 2025 +0100 @@ -157,9 +157,9 @@ """ if codestring: try: - import tomlkit # __IGNORE_WARNING_I10__ + import tomlkit # __IGNORE_WARNING_I-10__ - from tomlkit.exceptions import ( # __IGNORE_WARNING_I10__ + from tomlkit.exceptions import ( # __IGNORE_WARNING_I-10__ KeyAlreadyPresent, ParseError, )
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py Mon Feb 24 15:43:49 2025 +0100 @@ -157,7 +157,7 @@ """ if codestring: try: - from yaml import MarkedYAMLError, safe_load_all # __IGNORE_WARNING_I10__ + from yaml import MarkedYAMLError, safe_load_all # __IGNORE_WARNING_I-10__ except ImportError: error = "pyyaml not available. Install it via the PyPI interface." return [{"error": (file, 0, 0, "", error)}]
--- a/src/eric7/Plugins/PluginAbout.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginAbout.py Mon Feb 24 15:43:49 2025 +0100 @@ -31,7 +31,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class AboutPlugin(QObject):
--- a/src/eric7/Plugins/PluginCodeStyleChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginCodeStyleChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -43,7 +43,7 @@ # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class CodeStyleCheckerPlugin(QObject):
--- a/src/eric7/Plugins/PluginEricapi.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginEricapi.py Mon Feb 24 15:43:49 2025 +0100 @@ -37,7 +37,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayData():
--- a/src/eric7/Plugins/PluginEricdoc.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginEricdoc.py Mon Feb 24 15:43:49 2025 +0100 @@ -43,7 +43,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayDataList():
--- a/src/eric7/Plugins/PluginSyntaxChecker.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginSyntaxChecker.py Mon Feb 24 15:43:49 2025 +0100 @@ -38,7 +38,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class SyntaxCheckerPlugin(QObject):
--- a/src/eric7/Plugins/PluginTranslator.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginTranslator.py Mon Feb 24 15:43:49 2025 +0100 @@ -35,7 +35,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 translatorPluginObject = None
--- a/src/eric7/Plugins/PluginVcsGit.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVcsGit.py Mon Feb 24 15:43:49 2025 +0100 @@ -36,7 +36,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayData(): @@ -347,4 +347,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Plugins/PluginVcsMercurial.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVcsMercurial.py Mon Feb 24 15:43:49 2025 +0100 @@ -41,7 +41,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayData():
--- a/src/eric7/Plugins/PluginVcsPySvn.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVcsPySvn.py Mon Feb 24 15:43:49 2025 +0100 @@ -36,7 +36,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayData(): @@ -47,7 +47,7 @@ @rtype dict """ try: - import pysvn # __IGNORE_WARNING_I10__ + import pysvn # __IGNORE_WARNING_I-10__ try: text = os.path.dirname(pysvn.__file__)
--- a/src/eric7/Plugins/PluginVcsSubversion.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVcsSubversion.py Mon Feb 24 15:43:49 2025 +0100 @@ -41,7 +41,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def exeDisplayData():
--- a/src/eric7/Plugins/PluginVmListspace.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVmListspace.py Mon Feb 24 15:43:49 2025 +0100 @@ -32,7 +32,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def previewPix():
--- a/src/eric7/Plugins/PluginVmTabview.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginVmTabview.py Mon Feb 24 15:43:49 2025 +0100 @@ -32,7 +32,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 def previewPix():
--- a/src/eric7/Plugins/PluginWizardDotDesktop.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardDotDesktop.py Mon Feb 24 15:43:49 2025 +0100 @@ -33,7 +33,7 @@ } # End-of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class DotDesktopWizard(QObject): @@ -156,4 +156,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Plugins/PluginWizardEricMessageBox.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardEricMessageBox.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class EricMessageBoxWizard(QObject): @@ -150,4 +150,4 @@ # -# eflag: noqa = M841 +# eflag: noqa = M-841
--- a/src/eric7/Plugins/PluginWizardEricPlugin.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardEricPlugin.py Mon Feb 24 15:43:49 2025 +0100 @@ -36,7 +36,7 @@ } # End-of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class WizardEricPluginWizard(QObject): @@ -195,4 +195,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Plugins/PluginWizardPyRegExp.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardPyRegExp.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class PyRegExpWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQColorDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQColorDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class ColorDialogWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQFileDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQFileDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -32,7 +32,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class FileDialogWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQFontDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQFontDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class FontDialogWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQInputDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQInputDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class InputDialogWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQMessageBox.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQMessageBox.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class MessageBoxWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardQRegularExpression.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardQRegularExpression.py Mon Feb 24 15:43:49 2025 +0100 @@ -30,7 +30,7 @@ } # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class QRegularExpressionWizard(QObject):
--- a/src/eric7/Plugins/PluginWizardSetup.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/PluginWizardSetup.py Mon Feb 24 15:43:49 2025 +0100 @@ -35,7 +35,7 @@ } # End-of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 class SetupWizard(QObject): @@ -181,4 +181,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/TranslationEngine.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/TranslationEngine.py Mon Feb 24 15:43:49 2025 +0100 @@ -83,7 +83,7 @@ """ return False - def getTextToSpeechData(self, requestObject, text, language): # noqa: U100 + def getTextToSpeechData(self, requestObject, text, language): # noqa: U-100 """ Public method to pronounce the given text. @@ -99,7 +99,7 @@ return self.tr("No pronounce data available"), False def getTranslation( - self, requestObject, text, originalLanguage, translationLanguage # noqa: U100 + self, requestObject, text, originalLanguage, translationLanguage # noqa: U-100 ): """ Public method to translate the given text.
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/git.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsGit/git.py Mon Feb 24 15:43:49 2025 +0100 @@ -222,7 +222,7 @@ return False, errMsg - def vcsInit(self, _vcsDir, noDialog=False): # noqa: U100 + def vcsInit(self, _vcsDir, noDialog=False): # noqa: U-100 """ Public method used to initialize the Git repository. @@ -266,7 +266,7 @@ project.openProject(pfn) def vcsImport( - self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 + self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 ): """ Public method used to import the project into the Git repository. @@ -692,7 +692,7 @@ self.vcsAdd(path, isDir=False) def vcsRemove( - self, name, project=False, noDialog=False, stageOnly=False # noqa: U100 + self, name, project=False, noDialog=False, stageOnly=False # noqa: U-100 ): """ Public method used to remove a file/directory from the Git @@ -1154,7 +1154,7 @@ return VersionControlState.Uncontrolled - def vcsAllRegisteredStates(self, names, dname, shortcut=True): # noqa: U100 + def vcsAllRegisteredStates(self, names, dname, shortcut=True): # noqa: U-100 """ Public method used to get the registered states of a number of files in the vcs. @@ -1318,7 +1318,7 @@ dia.exec() def vcsOptionsDialog( - self, project, _archive, editable=False, parent=None # noqa: U100 + self, project, _archive, editable=False, parent=None # noqa: U-100 ): """ Public method to get a dialog to enter repository info.
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditEditor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditEditor.py Mon Feb 24 15:43:49 2025 +0100 @@ -90,11 +90,11 @@ if args.file: fileName = os.path.basename(args.file) if fileName.startswith("hg-histedit-"): - from HgHisteditPlanEditor import HgHisteditPlanEditor # noqa: I101, I102 + from HgHisteditPlanEditor import HgHisteditPlanEditor # noqa: I-101, I-102 return HgHisteditPlanEditor(args.file) elif fileName.startswith("hg-editor-"): - from HgHisteditCommitEditor import ( # noqa: I101, I102 + from HgHisteditCommitEditor import ( # noqa: I-101, I-102 HgHisteditCommitEditor, )
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Mon Feb 24 15:43:49 2025 +0100 @@ -273,7 +273,7 @@ self.__getExtensionsInfo() return hgExists, errMsg - def vcsInit(self, _vcsDir, noDialog=False): # noqa: U100 + def vcsInit(self, _vcsDir, noDialog=False): # noqa: U-100 """ Public method used to initialize the mercurial repository. @@ -317,7 +317,7 @@ project.openProject(pfn) def vcsImport( - self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 + self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 ): """ Public method used to import the project into the Mercurial repository. @@ -656,7 +656,7 @@ return output - def vcsUpdate(self, name=None, noDialog=False, revision=None): # noqa: U100 + def vcsUpdate(self, name=None, noDialog=False, revision=None): # noqa: U-100 """ Public method used to update a file/directory with the Mercurial repository. @@ -693,7 +693,7 @@ self.checkVCSStatus() return res - def vcsAdd(self, name, isDir=False, noDialog=False): # noqa: U100 + def vcsAdd(self, name, isDir=False, noDialog=False): # noqa: U-100 """ Public method used to add a file/directory to the Mercurial repository. @@ -746,7 +746,7 @@ """ self.vcsAdd(path, isDir=False) - def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 + def vcsRemove(self, name, project=False, noDialog=False): # noqa: U-100 """ Public method used to remove a file/directory from the Mercurial repository. @@ -918,7 +918,7 @@ self.summary.raise_() self.summary.start(mq=mq, largefiles=largefiles) - def vcsTag(self, name=None, revision=None, tagName=None): # noqa: U100 + def vcsTag(self, name=None, revision=None, tagName=None): # noqa: U-100 """ Public method used to set/remove a tag in the Mercurial repository. @@ -1032,7 +1032,7 @@ return res - def vcsMerge(self, name, rev=""): # noqa: U100 + def vcsMerge(self, name, rev=""): # noqa: U-100 """ Public method used to merge a URL/revision into the local project. @@ -1180,7 +1180,7 @@ return VersionControlState.Uncontrolled - def vcsAllRegisteredStates(self, names, dname, shortcut=True): # noqa: U100 + def vcsAllRegisteredStates(self, names, dname, shortcut=True): # noqa: U-100 """ Public method used to get the registered states of a number of files in the vcs. @@ -1323,7 +1323,7 @@ dia.exec() def vcsOptionsDialog( - self, project, _archive, editable=False, parent=None # noqa: U100 + self, project, _archive, editable=False, parent=None # noqa: U-100 ): """ Public method to get a dialog to enter repository info.
--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py Mon Feb 24 15:43:49 2025 +0100 @@ -178,7 +178,7 @@ self.version = pysvn.svn_version[:-1] return True, "" - def vcsInit(self, vcsDir, noDialog=False): # noqa: U100 + def vcsInit(self, vcsDir, noDialog=False): # noqa: U-100 """ Public method used to initialize the subversion repository. @@ -262,7 +262,7 @@ project.openProject(pfn) def vcsImport( - self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 + self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 ): """ Public method used to import the project into the Subversion @@ -949,7 +949,7 @@ dlg.exec() os.chdir(cwd) - def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 + def vcsRemove(self, name, project=False, noDialog=False): # noqa: U-100 """ Public method used to remove a file/directory from the Subversion repository. @@ -1604,7 +1604,7 @@ else: return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) - def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): # noqa: U100 + def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): # noqa: U-100 """ Private method used to get the registered states of a number of files in the vcs. @@ -1862,7 +1862,7 @@ dia.exec() def vcsOptionsDialog( - self, project, _archive, editable=False, parent=None # noqa: U100 + self, project, _archive, editable=False, parent=None # noqa: U-100 ): """ Public method to get a dialog to enter repository info.
--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py Mon Feb 24 15:43:49 2025 +0100 @@ -188,7 +188,7 @@ return False, errMsg - def vcsInit(self, vcsDir, noDialog=False): # noqa: U100 + def vcsInit(self, vcsDir, noDialog=False): # noqa: U-100 """ Public method used to initialize the subversion repository. @@ -272,7 +272,7 @@ project.openProject(pfn) def vcsImport( - self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 + self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 ): """ Public method used to import the project into the Subversion @@ -873,7 +873,7 @@ if res: dia.exec() - def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 + def vcsRemove(self, name, project=False, noDialog=False): # noqa: U-100 """ Public method used to remove a file/directory from the Subversion repository. @@ -1669,7 +1669,7 @@ dia.exec() def vcsOptionsDialog( - self, project, _archive, editable=False, parent=None # noqa: U100 + self, project, _archive, editable=False, parent=None # noqa: U-100 ): """ Public method to get a dialog to enter repository info.
--- a/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Mon Feb 24 15:43:49 2025 +0100 @@ -473,7 +473,7 @@ self.editorChangedEd.emit(aw) def _addView( - self, win, fn=None, noName="", addNext=False, indexes=None # noqa: U100 + self, win, fn=None, noName="", addNext=False, indexes=None # noqa: U-100 ): """ Protected method to add a view (i.e. window).
--- a/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Mon Feb 24 15:43:49 2025 +0100 @@ -1159,7 +1159,7 @@ self._modificationStatusChanged(editor.isModified(), editor) self._checkActions(editor) - def _showView(self, win, fn=None): # noqa: U100 + def _showView(self, win, fn=None): # noqa: U-100 """ Protected method to show a view (i.e. window).
--- a/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py Mon Feb 24 15:43:49 2025 +0100 @@ -40,7 +40,7 @@ }} # End-Of-Header -error = "" # noqa: U200 +error = "" # noqa: U-200 {modulesetup}\ @@ -308,4 +308,4 @@ ''' # -# eflag: noqa = M841 +# eflag: noqa = M-841
--- a/src/eric7/Preferences/ConfigurationDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -145,7 +145,7 @@ self.itmDict = {} if not fromEric: - from eric7.PluginManager.PluginManager import ( # __IGNORE_WARNING_I101__ + from eric7.PluginManager.PluginManager import ( # __IGNORE_WARNING_I-101__ PluginManager, ) @@ -155,7 +155,7 @@ self.pluginManager = PluginManager(self) ericApp().registerObject("PluginManager", self.pluginManager) - from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I101__ + from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I-101__ VirtualenvManager, ) @@ -165,7 +165,7 @@ self.virtualenvManager = VirtualenvManager(self) ericApp().registerObject("VirtualEnvManager", self.virtualenvManager) - from eric7.PipInterface.Pip import Pip # __IGNORE_WARNING_I101__ + from eric7.PipInterface.Pip import Pip # __IGNORE_WARNING_I-101__ try: self.pip = ericApp().getObject("Pip")
--- a/src/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -472,7 +472,7 @@ """ return QModelIndex() - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public Qt slot to get the column count. @@ -483,7 +483,7 @@ """ return 1 - def rowCount(self, parent=None): # noqa: U100 + def rowCount(self, parent=None): # noqa: U-100 """ Public Qt slot to get the row count.
--- a/src/eric7/Preferences/ConfigurationPages/DebuggerPython3Page.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/DebuggerPython3Page.py Mon Feb 24 15:43:49 2025 +0100 @@ -35,7 +35,7 @@ self.__virtualenvManager = ericApp().getObject("VirtualEnvManager") self.__standalone = False except KeyError: - from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I101__ + from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I-101__ VirtualenvManager, )
--- a/src/eric7/Preferences/ConfigurationPages/EmailPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/EmailPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -274,7 +274,7 @@ try: from eric7.EricNetwork import EricGoogleMail # __IGNORE_WARNING__ - from eric7.EricNetwork.EricGoogleMailHelpers import ( # noqa: I101 + from eric7.EricNetwork.EricGoogleMailHelpers import ( # noqa: I-101 isClientSecretFileAvailable, )
--- a/src/eric7/Preferences/ConfigurationPages/EricServerPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/EricServerPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -38,7 +38,7 @@ Preferences.setEricServer("AutostartShell", self.startShellCheckBox.isChecked()) -def create(dlg): # noqa: U100 +def create(dlg): # noqa: U-100 """ Module function to create the configuration page.
--- a/src/eric7/Preferences/ConfigurationPages/NetworkPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/NetworkPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -99,7 +99,7 @@ "RequestDownloadFilename", self.requestFilenameCheckBox.isChecked() ) if self.__webEngine: - from eric7.WebBrowser.Download.DownloadManager import ( # noqa: I101 + from eric7.WebBrowser.Download.DownloadManager import ( # noqa: I-101 DownloadManagerRemovePolicy, )
--- a/src/eric7/Preferences/ConfigurationPages/QtPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/QtPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -35,7 +35,7 @@ self.__virtualenvManager = ericApp().getObject("VirtualEnvManager") self.__standalone = False except KeyError: - from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I101__ + from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I-101__ VirtualenvManager, )
--- a/src/eric7/Preferences/ProgramsDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/ProgramsDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -282,7 +282,7 @@ # 6. do the spell checking entry try: - import enchant # __IGNORE_WARNING_I10__ + import enchant # __IGNORE_WARNING_I-10__ try: text = os.path.dirname(enchant.__file__) @@ -299,7 +299,7 @@ # 7. do the pygments entry try: - import pygments # __IGNORE_WARNING_I10__ + import pygments # __IGNORE_WARNING_I-10__ try: text = os.path.dirname(pygments.__file__) @@ -366,7 +366,7 @@ # 9. do the jedi related entries try: - import jedi # __IGNORE_WARNING_I10__ + import jedi # __IGNORE_WARNING_I-10__ try: text = os.path.dirname(jedi.__file__)
--- a/src/eric7/Preferences/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Preferences/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -2063,7 +2063,7 @@ try: virtualenvManager = ericApp().getObject("VirtualEnvManager") except KeyError: - from eric7.VirtualEnv.VirtualenvManager import ( # noqa: I101 + from eric7.VirtualEnv.VirtualenvManager import ( # noqa: I-101 VirtualenvManager, ) @@ -4375,4 +4375,4 @@ EricPreferences.initPreferences() # -# eflag: noqa = M201, M613 +# eflag: noqa = M201, M-613
--- a/src/eric7/Project/Project.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Project/Project.py Mon Feb 24 15:43:49 2025 +0100 @@ -6343,7 +6343,7 @@ if recursiveSearch: d = self.getRelativePath(ns) if d not in dirs: - dirs.append(d) # noqa: M569 + dirs.append(d) # noqa: M-569 continue filetype = "" @@ -8113,4 +8113,4 @@ # -# eflag: noqa = M601 +# eflag: noqa = M-601
--- a/src/eric7/Project/ProjectFormsBrowser.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Project/ProjectFormsBrowser.py Mon Feb 24 15:43:49 2025 +0100 @@ -1000,7 +1000,7 @@ if self.hooks["generateDialogCode"] is not None: self.hooks["generateDialogCode"](fn) else: - from .CreateDialogCodeDialog import ( # __IGNORE_WARNING_I101__ + from .CreateDialogCodeDialog import ( # __IGNORE_WARNING_I-101__ CreateDialogCodeDialog, )
--- a/src/eric7/Project/UicLoadUi5.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Project/UicLoadUi5.py Mon Feb 24 15:43:49 2025 +0100 @@ -234,4 +234,4 @@ sys.exit(1) # -# eflag: noqa = M701, M801 +# eflag: noqa = M701, M-801
--- a/src/eric7/Project/UicLoadUi6.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Project/UicLoadUi6.py Mon Feb 24 15:43:49 2025 +0100 @@ -239,4 +239,4 @@ sys.exit(1) # -# eflag: noqa = M701, M801 +# eflag: noqa = M701, M-801
--- a/src/eric7/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Mon Feb 24 15:43:49 2025 +0100 @@ -50,7 +50,7 @@ """ self.editor = editor - def isFunctionStart(self, text): # noqa: U100 + def isFunctionStart(self, text): # noqa: U-100 """ Public method to test, if a text is the start of a function or method definition. @@ -63,7 +63,7 @@ """ return False - def hasFunctionDefinition(self, cursorPosition): # noqa: U100 + def hasFunctionDefinition(self, cursorPosition): # noqa: U-100 """ Public method to test, if the cursor is right below a function definition. @@ -75,7 +75,7 @@ """ return False - def isDocstringIntro(self, cursorPosition): # noqa: U100 + def isDocstringIntro(self, cursorPosition): # noqa: U-100 """ Public function to test, if the line up to the cursor position might be introducing a docstring. @@ -87,7 +87,7 @@ """ return False - def insertDocstring(self, cursorPosition, fromStart=True): # noqa: U100 + def insertDocstring(self, cursorPosition, fromStart=True): # noqa: U-100 """ Public method to insert a docstring for the function at the cursor position. @@ -101,7 +101,7 @@ # just do nothing in the base class return - def insertDocstringFromShortcut(self, cursorPosition): # noqa: U100 + def insertDocstringFromShortcut(self, cursorPosition): # noqa: U-100 """ Public method to insert a docstring for the function at the cursor position initiated via a keyboard shortcut.
--- a/src/eric7/QScintilla/DocstringGenerator/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/DocstringGenerator/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -25,13 +25,13 @@ "Python3", "MicroPython", ): - from .PyDocstringGenerator import ( # __IGNORE_WARNING_I101__ + from .PyDocstringGenerator import ( # __IGNORE_WARNING_I-101__ PyDocstringGenerator, ) return PyDocstringGenerator(editor) else: - from .BaseDocstringGenerator import ( # __IGNORE_WARNING_I101__ + from .BaseDocstringGenerator import ( # __IGNORE_WARNING_I-101__ BaseDocstringGenerator, )
--- a/src/eric7/QScintilla/Editor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Editor.py Mon Feb 24 15:43:49 2025 +0100 @@ -82,7 +82,7 @@ TemplateCompletionListID = 2 ReferencesListID = 3 -ReferenceItem = collections.namedtuple( # noqa: U200 +ReferenceItem = collections.namedtuple( # noqa: U-200 "ReferenceItem", ["modulePath", "codeLine", "line", "column"] ) @@ -219,8 +219,8 @@ "'": "'", "(": "()", ")": "()", - "{": "{}", # __IGNORE_WARNING_M613__ - "}": "{}", # __IGNORE_WARNING_M613__ + "{": "{}", # __IGNORE_WARNING_M-613__ + "}": "{}", # __IGNORE_WARNING_M-613__ "[": "[]", "]": "[]", "<": "<>", @@ -1653,7 +1653,7 @@ @return name of the selected pygments lexer @rtype str """ - from pygments.lexers import get_all_lexers # __IGNORE_WARNING_I102__ + from pygments.lexers import get_all_lexers # __IGNORE_WARNING_I-102__ lexerList = sorted(lex[0] for lex in get_all_lexers()) try: @@ -7066,7 +7066,7 @@ (defaults to None) @type str (optional) """ - from coverage import Coverage # __IGNORE_WARNING_I102__ + from coverage import Coverage # __IGNORE_WARNING_I-102__ self.__codeCoverageHideAnnotations() @@ -8826,7 +8826,7 @@ if not self.checkDirty(): return - if FileSystemUtilities.isRemoteFileName(self.fileName): # noqa: Y108 + if FileSystemUtilities.isRemoteFileName(self.fileName): # noqa: Y-108 package = ( self.fileName if self.__remotefsInterface.isdir(self.fileName) @@ -8965,7 +8965,7 @@ line, index = self.getCursorPosition() text = self.text(line)[index - 1 : index + 1] matchingPairs = ["()", "[]", "{}", "<>", "''", '""'] - # __IGNORE_WARNING_M613__ + # __IGNORE_WARNING_M-613__ if text in matchingPairs: self.delete()
--- a/src/eric7/QScintilla/EditorAssembly.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/EditorAssembly.py Mon Feb 24 15:43:49 2025 +0100 @@ -343,7 +343,7 @@ self.__membersBoundaries = {} self.__globalsCombo.addItem("") - index = 0 # noqa: Y113 + index = 0 # noqa: Y-113 # step 1: add modules items = []
--- a/src/eric7/QScintilla/Exporters/ExporterHTML.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Exporters/ExporterHTML.py Mon Feb 24 15:43:49 2025 +0100 @@ -523,7 +523,7 @@ sys.modules.pop(key) try: - import docutils.core # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I10__ + import docutils.core # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I-10__ except ImportError: EricMessageBox.critical( self.editor, @@ -559,7 +559,7 @@ @rtype str """ try: - import markdown # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I10__ + import markdown # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I-10__ except ImportError: EricMessageBox.critical( self.editor,
--- a/src/eric7/QScintilla/Lexers/Lexer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/Lexer.py Mon Feb 24 15:43:49 2025 +0100 @@ -192,7 +192,7 @@ """ return [] - def isCommentStyle(self, style): # noqa: U100 + def isCommentStyle(self, style): # noqa: U-100 """ Public method to check, if a style is a comment style. @@ -203,7 +203,7 @@ """ return True - def isStringStyle(self, style): # noqa: U100 + def isStringStyle(self, style): # noqa: U-100 """ Public method to check, if a style is a string style. @@ -247,7 +247,7 @@ else: return self.keywordSetDescriptions[kwSet - 1] - def defaultKeywords(self, kwSet): # noqa: U100 + def defaultKeywords(self, kwSet): # noqa: U-100 """ Public method to get the default keywords. @@ -256,7 +256,7 @@ @return space separated list of keywords @rtype str or None """ - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ def maximumKeywordSet(self): """
--- a/src/eric7/QScintilla/Lexers/LexerBash.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerBash.py Mon Feb 24 15:43:49 2025 +0100 @@ -80,7 +80,7 @@ return QsciLexerBash.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerBatch.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerBatch.py Mon Feb 24 15:43:49 2025 +0100 @@ -68,7 +68,7 @@ return QsciLexerBatch.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerCMake.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerCMake.py Mon Feb 24 15:43:49 2025 +0100 @@ -77,7 +77,7 @@ return QsciLexerCMake.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerCPP.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerCPP.py Mon Feb 24 15:43:49 2025 +0100 @@ -198,7 +198,7 @@ return 4 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerCSS.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerCSS.py Mon Feb 24 15:43:49 2025 +0100 @@ -162,7 +162,7 @@ return QsciLexerCSS.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerCSharp.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerCSharp.py Mon Feb 24 15:43:49 2025 +0100 @@ -110,7 +110,7 @@ return 4 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerCoffeeScript.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerCoffeeScript.py Mon Feb 24 15:43:49 2025 +0100 @@ -105,7 +105,7 @@ return 4 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerD.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerD.py Mon Feb 24 15:43:49 2025 +0100 @@ -115,7 +115,7 @@ return 7 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerDiff.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerDiff.py Mon Feb 24 15:43:49 2025 +0100 @@ -63,7 +63,7 @@ return QsciLexerDiff.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerFortran.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerFortran.py Mon Feb 24 15:43:49 2025 +0100 @@ -90,7 +90,7 @@ return QsciLexerFortran.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerFortran77.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerFortran77.py Mon Feb 24 15:43:49 2025 +0100 @@ -90,7 +90,7 @@ return QsciLexerFortran77.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerHTML.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerHTML.py Mon Feb 24 15:43:49 2025 +0100 @@ -131,7 +131,7 @@ return QsciLexerHTML.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerJSON.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerJSON.py Mon Feb 24 15:43:49 2025 +0100 @@ -90,7 +90,7 @@ return 2 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerJava.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerJava.py Mon Feb 24 15:43:49 2025 +0100 @@ -110,7 +110,7 @@ return 4 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerJavaScript.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerJavaScript.py Mon Feb 24 15:43:49 2025 +0100 @@ -110,7 +110,7 @@ return 4 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerLua.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerLua.py Mon Feb 24 15:43:49 2025 +0100 @@ -105,7 +105,7 @@ return 8 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerMakefile.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerMakefile.py Mon Feb 24 15:43:49 2025 +0100 @@ -66,7 +66,7 @@ return QsciLexerMakefile.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerMarkdown.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerMarkdown.py Mon Feb 24 15:43:49 2025 +0100 @@ -41,7 +41,7 @@ return QsciLexerMarkdown.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerMatlab.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerMatlab.py Mon Feb 24 15:43:49 2025 +0100 @@ -70,7 +70,7 @@ return QsciLexerMatlab.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerOctave.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerOctave.py Mon Feb 24 15:43:49 2025 +0100 @@ -70,7 +70,7 @@ return QsciLexerOctave.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPO.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPO.py Mon Feb 24 15:43:49 2025 +0100 @@ -78,7 +78,7 @@ return QsciLexerPO.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPOV.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPOV.py Mon Feb 24 15:43:49 2025 +0100 @@ -86,7 +86,7 @@ return QsciLexerPOV.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPascal.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPascal.py Mon Feb 24 15:43:49 2025 +0100 @@ -102,7 +102,7 @@ return QsciLexerPascal.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPerl.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPerl.py Mon Feb 24 15:43:49 2025 +0100 @@ -102,7 +102,7 @@ return QsciLexerPerl.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPostScript.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPostScript.py Mon Feb 24 15:43:49 2025 +0100 @@ -91,7 +91,7 @@ return 5 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerProperties.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerProperties.py Mon Feb 24 15:43:49 2025 +0100 @@ -77,7 +77,7 @@ return QsciLexerProperties.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerPygments.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPygments.py Mon Feb 24 15:43:49 2025 +0100 @@ -652,7 +652,7 @@ @return string giving the keywords or None @rtype str """ - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ def commentStr(self): """
--- a/src/eric7/QScintilla/Lexers/LexerQSS.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerQSS.py Mon Feb 24 15:43:49 2025 +0100 @@ -180,7 +180,7 @@ return "QSS" -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerRuby.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerRuby.py Mon Feb 24 15:43:49 2025 +0100 @@ -97,7 +97,7 @@ return QsciLexerRuby.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerSQL.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerSQL.py Mon Feb 24 15:43:49 2025 +0100 @@ -109,7 +109,7 @@ return 8 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerTCL.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerTCL.py Mon Feb 24 15:43:49 2025 +0100 @@ -102,7 +102,7 @@ return 9 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerTeX.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerTeX.py Mon Feb 24 15:43:49 2025 +0100 @@ -222,7 +222,7 @@ return None -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerVHDL.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerVHDL.py Mon Feb 24 15:43:49 2025 +0100 @@ -94,7 +94,7 @@ return 7 -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerXML.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerXML.py Mon Feb 24 15:43:49 2025 +0100 @@ -129,7 +129,7 @@ return QsciLexerXML.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/Lexers/LexerYAML.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerYAML.py Mon Feb 24 15:43:49 2025 +0100 @@ -75,7 +75,7 @@ return QsciLexerYAML.keywords(self, kwSet) -def createLexer(variant, parent=None): # noqa: U100 +def createLexer(variant, parent=None): # noqa: U-100 """ Function to instantiate a lexer object.
--- a/src/eric7/QScintilla/MiniEditor.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/MiniEditor.py Mon Feb 24 15:43:49 2025 +0100 @@ -73,8 +73,8 @@ "'": "'", "(": "()", ")": "()", - "{": "{}", # __IGNORE_WARNING_M613__ - "}": "{}", # __IGNORE_WARNING_M613__ + "{": "{}", # __IGNORE_WARNING_M-613__ + "}": "{}", # __IGNORE_WARNING_M-613__ "[": "[]", "]": "[]", "<": "<>", @@ -114,7 +114,7 @@ line, index = self.getCursorPosition() text = self.text(line)[index - 1 : index + 1] matchingPairs = ["()", "[]", "{}", "<>", "''", '""'] - # __IGNORE_WARNING_M613__ + # __IGNORE_WARNING_M-613__ if text in matchingPairs: self.delete() @@ -3858,7 +3858,7 @@ @return name of the selected pygments lexer @rtype str """ - from pygments.lexers import get_all_lexers # __IGNORE_WARNING_I102__ + from pygments.lexers import get_all_lexers # __IGNORE_WARNING_I-102__ lexerList = sorted(lex[0] for lex in get_all_lexers()) try:
--- a/src/eric7/QScintilla/Shell.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QScintilla/Shell.py Mon Feb 24 15:43:49 2025 +0100 @@ -2720,4 +2720,4 @@ # -# eflag: noqa = M601 +# eflag: noqa = M-601
--- a/src/eric7/QtHelpInterface/QtHelpDocumentationSettingsWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/QtHelpInterface/QtHelpDocumentationSettingsWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -44,7 +44,7 @@ ericApp().getObject("PluginManager").getPluginQtHelpFiles() ) except KeyError: - from eric7.PluginManager.PluginManager import ( # __IGNORE_WARNING_I101__ + from eric7.PluginManager.PluginManager import ( # __IGNORE_WARNING_I-101__ PluginManager, )
--- a/src/eric7/RemoteServer/EricServer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServer/EricServer.py Mon Feb 24 15:43:49 2025 +0100 @@ -196,7 +196,7 @@ except UnicodeDecodeError: msgClientId = str(bytes(msgClientIdBytes)) if msgClientId != self.__clientId: - print(f"Received illegal client ID '{msgClientId}'.") # noqa: M801 + print(f"Received illegal client ID '{msgClientId}'.") # noqa: M-801 return {} header = self.__receiveBytes(struct.calcsize(b"!II"), sock) @@ -223,7 +223,7 @@ return {} jsonStr = data.decode("utf8", "backslashreplace") - # - print("Eric Server Receive:", jsonStr) # for debugging # noqa: M801 + # - print("Eric Server Receive:", jsonStr) # for debugging # noqa: M-801 try: return json.loads(jsonStr.strip()) except (TypeError, ValueError) as err: @@ -302,7 +302,7 @@ self.__socket.listen(0) self.__socket.setblocking(False) address = self.__socket.getsockname() - print( # noqa: M801 + print( # noqa: M-801 f"Listening for 'eric-ide' connections on {address[0]}, port {address[1]}" ) data = types.SimpleNamespace( @@ -326,7 +326,7 @@ """ self.__closeIdeConnection(shutdown=True) - print("Stop listening for 'eric-ide' connections.") # noqa: M801 + print("Stop listening for 'eric-ide' connections.") # noqa: M-801 if self.__socket is not None: self.__socket.shutdown(socket.SHUT_RDWR) self.__socket.close() @@ -343,7 +343,7 @@ connection, address = sock.accept() # Should be ready to read. if self.__connection is None: print(f"'eric-ide' connection from {address[0]}, port {address[1]}") - # noqa: M801 + # noqa: M-801 self.__connection = connection self.__connection.settimeout(10) data = types.SimpleNamespace( @@ -354,7 +354,7 @@ self.__unregisterIdeSocket() else: - print( # noqa: M801 + print( # noqa: M-801 f"'eric-ide' connection from {address[0]}, port {address[1]} rejected" ) connection.close() @@ -370,13 +370,13 @@ self.__selector.unregister(self.__connection) try: address = self.__connection.getpeername() - print( # noqa: M801 + print( # noqa: M-801 f"Closing 'eric-ide' connection to {address[0]}, port {address[1]}." ) self.__connection.shutdown(socket.SHUT_RDWR) self.__connection.close() except OSError: - print("'eric-ide' connection gone.") # noqa: M801 + print("'eric-ide' connection gone.") # noqa: M-801 self.__connection = None self.__debuggerRequestHandler.shutdownClients() @@ -448,8 +448,8 @@ tbinfofile.seek(0) tbinfo = tbinfofile.read() - print("Stopping due to an exception.\nDetails:") # noqa: M801 - print(f"{str(exctype)} / {str(excval)} / {tbinfo}") # noqa: M801 + print("Stopping due to an exception.\nDetails:") # noqa: M-801 + print(f"{str(exctype)} / {str(excval)} / {tbinfo}") # noqa: M-801 self.__shouldStop = True cleanExit = False @@ -539,7 +539,7 @@ params={"Category": category}, ) - def __handleEchoRequest(self, request, params, reqestUuid): # noqa: U100 + def __handleEchoRequest(self, request, params, reqestUuid): # noqa: U-100 """ Private method to handle an 'Echo' request. @@ -558,7 +558,7 @@ reqestUuid=reqestUuid, ) - def __handleServerRequest(self, request, params, reqestUuid): # noqa: U100 + def __handleServerRequest(self, request, params, reqestUuid): # noqa: U-100 """ Private method to handle a 'Server' request.
--- a/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Mon Feb 24 15:43:49 2025 +0100 @@ -86,7 +86,7 @@ self.__socket.listen() self.__socket.setblocking(False) address = self.__socket.getsockname() - print( # noqa: M801 + print( # noqa: M-801 f"Listening for 'Debug Client' connections on" f" {address[0]}, port {address[1]}" ) @@ -110,7 +110,7 @@ """ connection, address = sock.accept() # Should be ready to read print(f"'Debug Client' connection from {address[0]}, port {address[1]}") - # noqa: M801 + # noqa: M-801 connection.setblocking(False) self.__pendingConnections.append(connection) @@ -180,7 +180,7 @@ with contextlib.suppress(OSError): address = sock.getpeername() - print( # noqa: M801 + print( # noqa: M-801 f"'Debug Client' connection from {address[0]}, port {address[1]}" f" closed." ) @@ -345,7 +345,7 @@ except (OSError, ValueError, subprocess.SubprocessError) as err: self.sendError(request="StartClientError", errorMessage=str(err)) - def __stopClient(self, params): # noqa: U100 + def __stopClient(self, params): # noqa: U-100 """ Private method to stop the current debug client process. @@ -377,7 +377,7 @@ for sock in self.__connections.values(): self._server.sendJsonCommand(jsonStr, sock) else: - try: # noqa: Y105 + try: # noqa: Y-105 sock = self.__connections[debuggerId] self._server.sendJsonCommand(jsonStr, sock) except KeyError:
--- a/src/eric7/RemoteServer/EricServerFileSystemRequestHandler.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServer/EricServerFileSystemRequestHandler.py Mon Feb 24 15:43:49 2025 +0100 @@ -82,7 +82,7 @@ ## File system related methods below ############################################################################ - def __getPathSeparator(self, params): # noqa: U100 + def __getPathSeparator(self, params): # noqa: U-100 """ Private method to report the path separator. @@ -111,7 +111,7 @@ "error": str(err), } - def __getcwd(self, params): # noqa: U100 + def __getcwd(self, params): # noqa: U-100 """ Private method to report the current working directory.
--- a/src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py Mon Feb 24 15:43:49 2025 +0100 @@ -134,7 +134,7 @@ """ self.debugClientDisconnected.emit(params["debugger_id"]) - def __handleLastDbgClientExited(self, params): # noqa: U100 + def __handleLastDbgClientExited(self, params): # noqa: U-100 """ Private method to handle a report of the eric-ide server, that the last debug client has disconnected. @@ -145,7 +145,7 @@ self.__clientStarted = False self.lastClientExited.emit() - def __handleMainClientExited(self, params): # noqa: U100 + def __handleMainClientExited(self, params): # noqa: U-100 """ Private method to handle the main client exiting. @@ -207,7 +207,7 @@ if self.__serverInterface.isServerConnected() and self.__clientStarted: loop = QEventLoop() - def callback(reply, params): # noqa: U100 + def callback(reply, params): # noqa: U-100 """ Function to handle the server reply
--- a/src/eric7/RemoteServerInterface/EricServerFileDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServerInterface/EricServerFileDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -59,7 +59,7 @@ IsDirectoryRole = Qt.ItemDataRole.UserRole - def __init__(self, parent=None, caption="", directory="", filter=""): # noqa: M132 + def __init__(self, parent=None, caption="", directory="", filter=""): # noqa: M-132 """ Constructor @@ -198,7 +198,7 @@ self.filterCombo.clear() self.filterCombo.addItems([f for f in filters if f]) - def setNameFilter(self, filter): # noqa: M132 + def setNameFilter(self, filter): # noqa: M-132 """ Public method to set the current name filter.
--- a/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Mon Feb 24 15:43:49 2025 +0100 @@ -1440,7 +1440,7 @@ f"Remote Cache Size: {len(_RemoteFsCache)} entries" ) except OSError as err: - print("Error in 'populateFsCache()':", str(err)) # noqa: M801 + print("Error in 'populateFsCache()':", str(err)) # noqa: M-801 def removeFromFsCache(self, directory): """
--- a/src/eric7/Snapshot/SnapWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Snapshot/SnapWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -62,7 +62,7 @@ self.__grabber = None supportedModes = [] else: - from .SnapshotDefaultGrabber import ( # __IGNORE_WARNING_I101__ + from .SnapshotDefaultGrabber import ( # __IGNORE_WARNING_I-101__ SnapshotDefaultGrabber, )
--- a/src/eric7/SystemUtilities/OSUtilities.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/SystemUtilities/OSUtilities.py Mon Feb 24 15:43:49 2025 +0100 @@ -165,7 +165,7 @@ @return result of the kill @rtype bool """ - import win32api # __IGNORE_WARNING_I102__ + import win32api # __IGNORE_WARNING_I-102__ handle = win32api.OpenProcess(1, 0, pid) return 0 != win32api.TerminateProcess(handle, 0) @@ -179,7 +179,7 @@ @rtype str """ try: - import win32api # __IGNORE_WARNING_I10__ + import win32api # __IGNORE_WARNING_I-10__ return win32api.GetUserName() except ImportError:
--- a/src/eric7/SystemUtilities/PythonUtilities.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/SystemUtilities/PythonUtilities.py Mon Feb 24 15:43:49 2025 +0100 @@ -166,9 +166,9 @@ @rtype list of str """ try: - import winreg # noqa: I101, I103 + import winreg # noqa: I-101, I-103 except ImportError: - import _winreg as winreg # noqa: I101, I102 + import _winreg as winreg # noqa: I-101, I-102 def getExePath(branch, access, versionStr): with contextlib.suppress(WindowsError, OSError):
--- a/src/eric7/SystemUtilities/QtUtilities.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/SystemUtilities/QtUtilities.py Mon Feb 24 15:43:49 2025 +0100 @@ -94,7 +94,7 @@ if not binPath: with contextlib.suppress(ImportError): # if qt6-applications is not installed just go to the next step - import qt6_applications # __IGNORE_WARNING_I10__ + import qt6_applications # __IGNORE_WARNING_I-10__ if libexec: binPath = os.path.join(
--- a/src/eric7/Templates/TemplateViewer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Templates/TemplateViewer.py Mon Feb 24 15:43:49 2025 +0100 @@ -695,7 +695,7 @@ """ project = ericApp().getObject("Project") editor = self.viewmanager.activeWindow() - now = datetime.datetime.now() # noqa: M305 + now = datetime.datetime.now() # noqa: M-305 sepchar = Preferences.getTemplates("SeparatorChar") keyfmt = sepchar + "{0}" + sepchar varValues = {
--- a/src/eric7/Testing/Interfaces/PytestRunner.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Testing/Interfaces/PytestRunner.py Mon Feb 24 15:43:49 2025 +0100 @@ -176,7 +176,7 @@ } ) - def pytest_runtest_logstart(self, nodeid, location): # noqa: U100 + def pytest_runtest_logstart(self, nodeid, location): # noqa: U-100 """ Public method called by pytest before running a test. @@ -268,7 +268,7 @@ self.__writer.write(data) - def pytest_sessionstart(self, session): # noqa: U100 + def pytest_sessionstart(self, session): # noqa: U-100 """ Public method called by pytest before performing collection and entering the run test loop. @@ -279,7 +279,7 @@ self.__totalStartTime = time.monotonic_ns() self.__testsRun = 0 - def pytest_sessionfinish(self, session, exitstatus): # noqa: U100 + def pytest_sessionfinish(self, session, exitstatus): # noqa: U-100 """ Public method called by pytest after the whole test run finished. @@ -306,7 +306,7 @@ plugins. """ try: - import pytest # __IGNORE_WARNING_I10__ + import pytest # __IGNORE_WARNING_I-10__ versions = { "name": "pytest", @@ -331,7 +331,7 @@ Function to determine the defined markers and their descriptions. """ try: - import pytest # __IGNORE_WARNING_I10__ + import pytest # __IGNORE_WARNING_I-10__ # --capture=sys needed on Windows to avoid # ValueError: saved filedescriptor not valid anymore @@ -370,4 +370,4 @@ sys.exit(42) # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Testing/Interfaces/TestExecutorBase.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Testing/Interfaces/TestExecutorBase.py Mon Feb 24 15:43:49 2025 +0100 @@ -153,7 +153,7 @@ return False - def getVersions(self, interpreter): # noqa: U100 + def getVersions(self, interpreter): # noqa: U-100 """ Public method to get the test framework version and version information of its installed plugins. @@ -166,7 +166,7 @@ """ return {} - def hasCoverage(self, interpreter): # noqa: U100 + def hasCoverage(self, interpreter): # noqa: U-100 """ Public method to check, if the collection of coverage data is available. @@ -177,7 +177,7 @@ """ return False - def supportsPatterns(self, interpreter): # noqa: U100 + def supportsPatterns(self, interpreter): # noqa: U-100 """ Public method to indicate the support for test filtering using test name patterns or a test name pattern expression. @@ -189,7 +189,7 @@ """ return False - def supportsMarkers(self, interpreter): # noqa: U100 + def supportsMarkers(self, interpreter): # noqa: U-100 """ Public method to indicate the support for test filtering using markers and/or marker expressions. @@ -201,7 +201,7 @@ """ return False - def getMarkers(self, interpreter, workdir): # noqa: U100 + def getMarkers(self, interpreter, workdir): # noqa: U-100 """ Public method to get the list of defined markers.
--- a/src/eric7/Testing/Interfaces/UnittestRunner.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Testing/Interfaces/UnittestRunner.py Mon Feb 24 15:43:49 2025 +0100 @@ -371,7 +371,7 @@ ), ) try: - from coverage import Coverage # __IGNORE_WARNING_I10__ + from coverage import Coverage # __IGNORE_WARNING_I-10__ cover = Coverage(data_file=covDataFile) if coverageErase: @@ -489,4 +489,4 @@ sys.exit(42) # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Testing/TestResultsTree.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Testing/TestResultsTree.py Mon Feb 24 15:43:49 2025 +0100 @@ -268,7 +268,7 @@ @type int @param order sort order @type Qt.SortOrder - """ # __IGNORE_WARNING_D234r__ + """ # __IGNORE_WARNING_D-234r__ def durationKey(result): """
--- a/src/eric7/Testing/TestingWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Testing/TestingWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -205,7 +205,7 @@ self.__project.projectClosed.connect(self.__projectClosed) except KeyError: # we were called as a standalone application - from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I101__ + from eric7.VirtualEnv.VirtualenvManager import ( # __IGNORE_WARNING_I-101__ VirtualenvManager, )
--- a/src/eric7/Toolbox/SingleApplication.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Toolbox/SingleApplication.py Mon Feb 24 15:43:49 2025 +0100 @@ -63,7 +63,7 @@ while self.qsock and self.qsock.canReadLine(): line = bytes(self.qsock.readLine()).decode() - ##print(line) ## debug # __IGNORE_WARNING_M891__ + ##print(line) ## debug # __IGNORE_WARNING_M-891__ try: commandDict = json.loads(line.strip())
--- a/src/eric7/Toolbox/Startup.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Toolbox/Startup.py Mon Feb 24 15:43:49 2025 +0100 @@ -218,7 +218,7 @@ app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) # the following code depends upon a valid application object - from eric7 import Preferences # __IGNORE_WARNING_I101__ + from eric7 import Preferences # __IGNORE_WARNING_I-101__ # set the application style sheet app.setStyleSheetFile(Preferences.getUI("StyleSheet")) @@ -246,7 +246,7 @@ if installErrorHandler: # generate a graphical error handler - from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ + from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I-101__ eMsg = EricErrorMessage.qtHandler( minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") @@ -257,4 +257,4 @@ # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Tools/TrayStarter.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Tools/TrayStarter.py Mon Feb 24 15:43:49 2025 +0100 @@ -630,7 +630,7 @@ # webengine (chromium) version with contextlib.suppress(ImportError): - from eric7.WebBrowser.Tools import ( # __IGNORE_WARNING_I101__ + from eric7.WebBrowser.Tools import ( # __IGNORE_WARNING_I-101__ WebBrowserTools, )
--- a/src/eric7/Tools/webBrowserSupport.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Tools/webBrowserSupport.py Mon Feb 24 15:43:49 2025 +0100 @@ -22,6 +22,6 @@ ) else "None" ) -print(variant) # noqa: M801 +print(variant) # noqa: M-801 sys.exit(0)
--- a/src/eric7/UI/BrowserModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/BrowserModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -418,7 +418,7 @@ self._addItem(node, itm) self.endInsertRows() - def entryDeleted(self, path, isDir=False): # noqa: U100 + def entryDeleted(self, path, isDir=False): # noqa: U-100 """ Public method to handle the deletion of a file or directory. @@ -1346,7 +1346,7 @@ else: self.icon = EricPixmapCache.getIcon("dirClosed") - def setName(self, dinfo, full=True): # noqa: U100 + def setName(self, dinfo, full=True): # noqa: U-100 """ Public method to set the directory name. @@ -1656,7 +1656,7 @@ else: self.icon = EricPixmapCache.getIcon(pixName) - def setName(self, finfo, full=True): # noqa: U100 + def setName(self, finfo, full=True): # noqa: U-100 """ Public method to set the directory name.
--- a/src/eric7/UI/CodeDocumentationViewer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/CodeDocumentationViewer.py Mon Feb 24 15:43:49 2025 +0100 @@ -89,10 +89,10 @@ self.__verticalLayout.setContentsMargins(0, 0, 0, 0) try: - from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I10__ + from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I-10__ QWebEngineSettings, ) - from PyQt6.QtWebEngineWidgets import ( # __IGNORE_WARNING_I10__ + from PyQt6.QtWebEngineWidgets import ( # __IGNORE_WARNING_I-10__ QWebEngineView, )
--- a/src/eric7/UI/CompareDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/CompareDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -46,7 +46,7 @@ <li>line b -- line of sequence b</li> </ul> @ytype tuple of (str, str, str, str, str) - """ # __IGNORE_WARNING_D234r__ + """ # __IGNORE_WARNING_D-234r__ def removeMarkers(line): """
--- a/src/eric7/UI/EmailDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/EmailDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -162,7 +162,7 @@ """ if self.__helpDialog is None: try: - from eric7.EricNetwork.EricGoogleMail import ( # noqa: I101 + from eric7.EricNetwork.EricGoogleMail import ( # noqa: I-101 GoogleMailHelp, ) @@ -418,7 +418,7 @@ @type email.mime.text.MIMEBase """ try: - from eric7.EricNetwork.EricGoogleMail import ( # __IGNORE_WARNING_I101__ + from eric7.EricNetwork.EricGoogleMail import ( # __IGNORE_WARNING_I-101__ EricGoogleMail, )
--- a/src/eric7/UI/FindFileWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/FindFileWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -208,7 +208,7 @@ # a list of file name patterns as value self.__filters = json.loads( Preferences.getSettings().value("FindFileWidget/FileFilters", "{}") - # noqa: M613 + # noqa: M-613 ) for fileFilter in sorted(self.__filters): self.filterComboBox.addItem( @@ -221,7 +221,7 @@ # a list of file name patterns as value self.__excludeFilters = json.loads( Preferences.getSettings().value("FindFileWidget/ExcludeFileFilters", "{}") - # noqa: M613 + # noqa: M-613 ) for fileFilter in sorted(self.__excludeFilters): self.excludeFilterComboBox.addItem(
--- a/src/eric7/UI/Previewer.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/Previewer.py Mon Feb 24 15:43:49 2025 +0100 @@ -222,7 +222,7 @@ if language in ["HTML", "Markdown", "ReST"]: if self.__htmlPreviewer is None: - from .Previewers.PreviewerHTML import ( # __IGNORE_WARNING_I101__ + from .Previewers.PreviewerHTML import ( # __IGNORE_WARNING_I-101__ PreviewerHTML, ) @@ -232,7 +232,7 @@ self.__htmlPreviewer.processEditor(editor) elif language == "QSS": if self.__qssPreviewer is None: - from .Previewers.PreviewerQSS import ( # __IGNORE_WARNING_I101__ + from .Previewers.PreviewerQSS import ( # __IGNORE_WARNING_I-101__ PreviewerQSS, )
--- a/src/eric7/UI/Previewers/MarkdownExtensions.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/Previewers/MarkdownExtensions.py Mon Feb 24 15:43:49 2025 +0100 @@ -21,7 +21,7 @@ ###################################################################### MermaidRegex = re.compile(r"^(?P<mermaid_sign>[\~\`]){3}[ \t]*[Mm]ermaid[ \t]*$") -MermaidRegexFullText = re.compile(r"([\~\`]){3}[ \t]*[Mm]ermaid") # noqa:U200 +MermaidRegexFullText = re.compile(r"([\~\`]){3}[ \t]*[Mm]ermaid") # noqa:U-200 class MermaidPreprocessor(Preprocessor):
--- a/src/eric7/UI/Previewers/PreviewerHTML.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/Previewers/PreviewerHTML.py Mon Feb 24 15:43:49 2025 +0100 @@ -60,7 +60,7 @@ self.__previewAvailable = True try: - from PyQt6.QtWebEngineWidgets import ( # __IGNORE_WARNING_I10__ + from PyQt6.QtWebEngineWidgets import ( # __IGNORE_WARNING_I-10__ QWebEngineView, ) @@ -695,8 +695,8 @@ sys.modules.pop(key) try: - import docutils.core # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I10__ - import docutils.utils # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I10__ + import docutils.core # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I-10__ + import docutils.utils # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I-10__ except ImportError: return self.tr( """<p>ReStructuredText preview requires the""" @@ -742,7 +742,7 @@ @rtype str """ try: - import markdown # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I10__ + import markdown # __IGNORE_EXCEPTION__ __IGNORE_WARNING_I-10__ except ImportError: return self.tr( """<p>Markdown preview requires the <b>Markdown</b> """ @@ -752,7 +752,7 @@ """installation instructions.</a></p>""" ) - from . import MarkdownExtensions, PreviewerHTMLStyles # __IGNORE_WARNING_I101__ + from . import MarkdownExtensions, PreviewerHTMLStyles # noqa: I-101 extensions = []
--- a/src/eric7/UI/SearchWidget.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/SearchWidget.py Mon Feb 24 15:43:49 2025 +0100 @@ -43,13 +43,13 @@ super().__init__(parent) if showLine: - from .Ui_SearchWidgetLine import ( # __IGNORE_WARNING_I101__ + from .Ui_SearchWidgetLine import ( # __IGNORE_WARNING_I-101__ Ui_SearchWidgetLine, ) self.__ui = Ui_SearchWidgetLine() else: - from .Ui_SearchWidget import Ui_SearchWidget # __IGNORE_WARNING_I101__ + from .Ui_SearchWidget import Ui_SearchWidget # __IGNORE_WARNING_I-101__ self.__ui = Ui_SearchWidget() self.__ui.setupUi(self)
--- a/src/eric7/UI/UserInterface.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/UI/UserInterface.py Mon Feb 24 15:43:49 2025 +0100 @@ -338,7 +338,7 @@ ) with contextlib.suppress(ImportError, AttributeError): - from eric7.EricWidgets.EricSpellCheckedTextEdit import ( # noqa: I101 + from eric7.EricWidgets.EricSpellCheckedTextEdit import ( # noqa: I-101 SpellCheckMixin, ) @@ -850,7 +850,7 @@ if Preferences.getUI("ShowTemplateViewer"): # Create the template viewer part of the user interface logging.getLogger(__name__).debug("Creating Template Viewer...") - from eric7.Templates.TemplateViewer import TemplateViewer # noqa: I101 + from eric7.Templates.TemplateViewer import TemplateViewer # noqa: I-101 self.templateViewer = TemplateViewer(None, self.viewmanager) else: @@ -860,7 +860,7 @@ if Preferences.getUI("ShowFileBrowser"): # Create the file browser logging.getLogger(__name__).debug("Creating File Browser...") - from .Browser import Browser # noqa: I101 + from .Browser import Browser # noqa: I-101 self.browser = Browser(self.__ericServerInterface) else: @@ -870,7 +870,7 @@ if Preferences.getUI("ShowSymbolsViewer"): # Create the symbols viewer logging.getLogger(__name__).debug("Creating Symbols Viewer...") - from .SymbolsWidget import SymbolsWidget # noqa: I101 + from .SymbolsWidget import SymbolsWidget # noqa: I-101 self.symbolsViewer = SymbolsWidget() else: @@ -880,7 +880,7 @@ if Preferences.getUI("ShowCodeDocumentationViewer"): # Create the code documentation viewer logging.getLogger(__name__).debug("Creating Code Documentation Viewer...") - from .CodeDocumentationViewer import CodeDocumentationViewer # noqa: I101 + from .CodeDocumentationViewer import CodeDocumentationViewer # noqa: I-101 self.codeDocumentationViewer = CodeDocumentationViewer(self) else: @@ -890,7 +890,7 @@ if Preferences.getUI("ShowPyPIPackageManager"): # Create the PyPI package manager logging.getLogger(__name__).debug("Creating PyPI Package Manager...") - from eric7.PipInterface.PipPackagesWidget import ( # noqa: I101 + from eric7.PipInterface.PipPackagesWidget import ( # noqa: I-101 PipPackagesWidget, ) @@ -902,7 +902,7 @@ if Preferences.getUI("ShowCondaPackageManager"): # Create the conda package manager logging.getLogger(__name__).debug("Creating Conda Package Manager...") - from eric7.CondaInterface.CondaPackagesWidget import ( # noqa: I101 + from eric7.CondaInterface.CondaPackagesWidget import ( # noqa: I-101 CondaPackagesWidget, ) @@ -914,7 +914,7 @@ if Preferences.getUI("ShowCooperation"): # Create the chat part of the user interface logging.getLogger(__name__).debug("Creating Chat Widget...") - from eric7.Cooperation.ChatWidget import ChatWidget # noqa: I101 + from eric7.Cooperation.ChatWidget import ChatWidget # noqa: I-101 self.cooperation = ChatWidget(self) else: @@ -924,7 +924,7 @@ if Preferences.getUI("ShowIrc"): # Create the IRC part of the user interface logging.getLogger(__name__).debug("Creating IRC Widget...") - from eric7.Network.IRC.IrcWidget import IrcWidget # noqa: I101 + from eric7.Network.IRC.IrcWidget import IrcWidget # noqa: I-101 self.irc = IrcWidget(self) else: @@ -934,7 +934,7 @@ if Preferences.getUI("ShowMicroPython"): # Create the MicroPython part of the user interface logging.getLogger(__name__).debug("Creating MicroPython Widget...") - from eric7.MicroPython.MicroPythonWidget import ( # noqa: I101 + from eric7.MicroPython.MicroPythonWidget import ( # noqa: I-101 MicroPythonWidget, ) @@ -946,7 +946,7 @@ if Preferences.getUI("ShowNumbersViewer"): # Create the numbers viewer logging.getLogger(__name__).debug("Creating Numbers Viewer...") - from .NumbersWidget import NumbersWidget # noqa: I101 + from .NumbersWidget import NumbersWidget # noqa: I-101 self.numbersViewer = NumbersWidget() else: @@ -976,7 +976,7 @@ self.__replaceFileDialog = None if Preferences.getUI("ShowFindFileWidget"): # Create the find in files widget - from .FindFileWidget import FindFileWidget # noqa: I101 + from .FindFileWidget import FindFileWidget # noqa: I-101 logging.getLogger(__name__).debug("Creating Find/Replace Pane...") self.__findFileWidget = FindFileWidget(self.project, self) @@ -994,7 +994,7 @@ self.__findLocationDialog = None if Preferences.getUI("ShowFindLocationWidget"): # Create the find location (file) widget - from .FindLocationWidget import FindLocationWidget # noqa: I101 + from .FindLocationWidget import FindLocationWidget # noqa: I-101 logging.getLogger(__name__).debug("Creating Find File Pane...") self.__findLocationWidget = FindLocationWidget(self.project, self) @@ -1021,7 +1021,7 @@ ): # Create the embedded help viewer logging.getLogger(__name__).debug("Creating Internal Help Viewer...") - from eric7.HelpViewer.HelpViewerWidget import HelpViewerWidget # noqa: I101 + from eric7.HelpViewer.HelpViewerWidget import HelpViewerWidget # noqa:I-101 self.__helpViewerWidget = HelpViewerWidget(self) else: @@ -4630,14 +4630,14 @@ # PyQt versions versionInfo.append(f"<tr><td><b>PyQt6</b></td><td>{PYQT_VERSION_STR}</td></tr>") with contextlib.suppress(ImportError, AttributeError): - from PyQt6 import QtCharts # __IGNORE_WARNING_I10__ + from PyQt6 import QtCharts # __IGNORE_WARNING_I-10__ versionInfo.append( "<tr><td><b>PyQt6-Charts</b></td>" f"<td>{QtCharts.PYQT_CHART_VERSION_STR}</td></tr>" ) with contextlib.suppress(ImportError, AttributeError): - from PyQt6 import QtWebEngineCore # __IGNORE_WARNING_I10__ + from PyQt6 import QtWebEngineCore # __IGNORE_WARNING_I-10__ versionInfo.append( "<tr><td><b>PyQt6-WebEngine</b></td>" @@ -4653,7 +4653,7 @@ # webengine (chromium) version with contextlib.suppress(ImportError): - from eric7.WebBrowser.Tools import ( # __IGNORE_WARNING_I101__ + from eric7.WebBrowser.Tools import ( # __IGNORE_WARNING_I-101__ WebBrowserTools, ) @@ -7455,7 +7455,7 @@ ) with contextlib.suppress(ImportError, AttributeError): - from eric7.EricWidgets.EricSpellCheckedTextEdit import ( # noqa: I101 + from eric7.EricWidgets.EricSpellCheckedTextEdit import ( # noqa: I-101 SpellCheckMixin, ) @@ -7505,7 +7505,7 @@ Preferences.convertPasswords(oldPassword, newPassword) variant = Globals.getWebBrowserSupport() if variant == "QtWebEngine": - from eric7.WebBrowser.Passwords.PasswordManager import ( # noqa: I101 + from eric7.WebBrowser.Passwords.PasswordManager import ( # noqa: I-101 PasswordManager, )
--- a/src/eric7/Utilities/BackgroundClient.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/BackgroundClient.py Mon Feb 24 15:43:49 2025 +0100 @@ -250,4 +250,4 @@ backgroundClient.run() # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/Utilities/BackgroundService.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/BackgroundService.py Mon Feb 24 15:43:49 2025 +0100 @@ -77,7 +77,7 @@ else self.__hostAddress ) print("Background Service listening on: {0}:{1:d}".format(hostAddressStr, port)) - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ interpreter = self.__getPythonInterpreter() if interpreter:
--- a/src/eric7/Utilities/ClassBrowsers/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -227,7 +227,7 @@ for p in path: # search in path pathname = os.path.join(p, name) if os.path.exists(pathname): - return (open(pathname), pathname, (ext, "r", sourceType)) # noqa: Y115 + return (open(pathname), pathname, (ext, "r", sourceType)) # noqa: Y-115 raise ImportError else: # standard Python module file @@ -239,7 +239,8 @@ raise ImportError if isinstance(spec.loader, importlib.machinery.SourceFileLoader): ext = os.path.splitext(spec.origin)[-1] - return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) # noqa: Y115 + return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) + # noqa: Y-115 raise ImportError
--- a/src/eric7/Utilities/ClassBrowsers/rbclbr.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/rbclbr.py Mon Feb 24 15:43:49 2025 +0100 @@ -302,7 +302,7 @@ self.setPrivate() -def readmodule_ex(module, searchPath=None, isTypeFile=False): # noqa: U100 +def readmodule_ex(module, searchPath=None, isTypeFile=False): # noqa: U-100 """ Read a Ruby file and return a dictionary of classes, functions and modules.
--- a/src/eric7/Utilities/GetSysPath.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/GetSysPath.py Mon Feb 24 15:43:49 2025 +0100 @@ -17,4 +17,4 @@ sys.exit(0) # -# eflag: noqa = M701, M801 +# eflag: noqa = M701, M-801
--- a/src/eric7/Utilities/ModuleParser.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/ModuleParser.py Mon Feb 24 15:43:49 2025 +0100 @@ -584,7 +584,7 @@ @param src the source text to be scanned @type str - """ # __IGNORE_WARNING_D234__ + """ # __IGNORE_WARNING_D-234__ def calculateEndline(lineno, lines, indent): """ @@ -1743,7 +1743,7 @@ moduleType = PTL_SOURCE elif extension == ".rb": moduleType = RB_SOURCE - elif extension in _extensions: # noqa: Y106 + elif extension in _extensions: # noqa: Y-106 moduleType = PY_SOURCE else: raise ImportError @@ -1835,20 +1835,20 @@ if ext == ".ptl": # Quixote page template return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (".ptl", "r", PTL_SOURCE), ) elif ext == ".rb": # Ruby source file return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (".rb", "r", RB_SOURCE), ) else: return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (ext, "r", PY_SOURCE), ) @@ -1863,7 +1863,7 @@ raise ImportError if isinstance(spec.loader, importlib.machinery.SourceFileLoader): ext = os.path.splitext(spec.origin)[-1] - return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) # noqa: Y115 + return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) # noqa: Y-115 raise ImportError
--- a/src/eric7/Utilities/__init__.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/__init__.py Mon Feb 24 15:43:49 2025 +0100 @@ -47,7 +47,7 @@ def __showwarning( - message, category, filename, lineno, file=None, line=None # noqa: U100 + message, category, filename, lineno, file=None, line=None # noqa: U-100 ): """ Module function to raise a SyntaxError for a SyntaxWarning. @@ -84,7 +84,7 @@ (1, re.compile(r"""<\?xml.*\bencoding\s*=\s*['"]([-\w_.]+)['"]\?>""")), ] -supportedCodecs = [ # noqa: U200 +supportedCodecs = [ # noqa: U-200 "utf-8", "iso-8859-1", "iso-8859-2", @@ -1065,13 +1065,13 @@ info.append(f" Qt {qVersion()}") info.append(f" PyQt6 {PYQT_VERSION_STR}") try: - from PyQt6 import QtCharts # noqa: I101, I102 + from PyQt6 import QtCharts # noqa: I-101, I-102 info.append(f" PyQt6-Charts {QtCharts.PYQT_CHART_VERSION_STR}") except (AttributeError, ImportError): info.append(" PyQt6-Charts not installed") try: - from PyQt6 import QtWebEngineCore # noqa: I101, I102 + from PyQt6 import QtWebEngineCore # noqa: I-101, I-102 info.append(f" PyQt6-WebEngine {QtWebEngineCore.PYQT_WEBENGINE_VERSION_STR}") except (AttributeError, ImportError): @@ -1079,7 +1079,7 @@ info.append(f" PyQt6-QScintilla {QSCINTILLA_VERSION_STR}") info.append(f" sip {sip_version_str}") if bool(importlib.util.find_spec("PyQt6.QtWebEngineCore")): - from eric7.WebBrowser.Tools import WebBrowserTools # noqa: I101 + from eric7.WebBrowser.Tools import WebBrowserTools # noqa: I-101 ( chromiumVersion,
--- a/src/eric7/Utilities/uic.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/uic.py Mon Feb 24 15:43:49 2025 +0100 @@ -100,9 +100,9 @@ @param uiheadername UI file name to be placed in the header (defaults to "") @type str ((optional) """ - from PyQt6.QtCore import PYQT_VERSION_STR # noqa: I102 - from PyQt6.uic.compile_ui import _display_code, _header # noqa: I102 - from PyQt6.uic.Compiler import compiler, indenter # noqa: I102 + from PyQt6.QtCore import PYQT_VERSION_STR # noqa: I-102 + from PyQt6.uic.compile_ui import _display_code, _header # noqa: I-102 + from PyQt6.uic.Compiler import compiler, indenter # noqa: I-102 if uiheadername: uifname = uiheadername
--- a/src/eric7/VCS/ProjectHelper.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/VCS/ProjectHelper.py Mon Feb 24 15:43:49 2025 +0100 @@ -164,7 +164,7 @@ menu.addAction(self.vcsAddAct) menu.addSeparator() - def initToolbar(self, ui, toolbarManager): # noqa: U100 + def initToolbar(self, ui, toolbarManager): # noqa: U-100 """ Public slot to initialize the VCS toolbar. @@ -175,7 +175,7 @@ @return the toolbar generated @rtype QToolBar """ - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ def initBasicToolbar(self, ui, toolbarManager): """
--- a/src/eric7/VCS/VersionControl.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/VCS/VersionControl.py Mon Feb 24 15:43:49 2025 +0100 @@ -695,7 +695,7 @@ """ raise NotImplementedError("Not implemented") - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ def vcsGetProjectHelper(self, project): """ @@ -710,7 +710,7 @@ """ raise NotImplementedError("Not implemented") - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ ##################################################################### ## methods above need to be implemented by a subclass @@ -1127,7 +1127,7 @@ if self.statusMonitorThread is not None: self.statusMonitorThread.clearCachedState(name) - def _createStatusMonitorThread(self, interval, project): # noqa: U100 + def _createStatusMonitorThread(self, interval, project): # noqa: U-100 """ Protected method to create an instance of the VCS status monitor thread. @@ -1142,4 +1142,4 @@ @return reference to the monitor thread @rtype QThread """ - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__
--- a/src/eric7/ViewManager/ViewManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/ViewManager/ViewManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -361,7 +361,7 @@ """ raise NotImplementedError("Not implemented") - return None # __IGNORE_WARNING_M831__ + return None # __IGNORE_WARNING_M-831__ def _removeAllViews(self): """ @@ -7209,7 +7209,7 @@ @param zoomingWidget reference to the widget triggering the slot @type Editor or Shell """ - if QApplication.focusWidget() == ericApp().getObject("Shell"): # noqa: Y108 + if QApplication.focusWidget() == ericApp().getObject("Shell"): # noqa: Y-108 aw = ericApp().getObject("Shell") else: aw = (
--- a/src/eric7/VirtualEnv/VirtualenvManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/VirtualEnv/VirtualenvManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -71,7 +71,7 @@ ) venvString = Preferences.getSettings().value( - "PyVenv/VirtualEnvironments", "{}" # __IGNORE_WARNING_M613__ + "PyVenv/VirtualEnvironments", "{}" # __IGNORE_WARNING_M-613__ ) environments = json.loads(venvString)
--- a/src/eric7/VirtualEnv/VirtualenvManagerWidgets.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/VirtualEnv/VirtualenvManagerWidgets.py Mon Feb 24 15:43:49 2025 +0100 @@ -215,7 +215,7 @@ selectedInterpreters = [env[1] for env in dlg.getSelection()] nameTemplate = "Environment #{0} added " + datetime.datetime.now().strftime( - # noqa: M305 + # noqa: M-305 "%Y-%m-%d %H:%M" ) for interpreter in selectedInterpreters:
--- a/src/eric7/WebBrowser/AdBlock/AdBlockRule.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/AdBlock/AdBlockRule.py Mon Feb 24 15:43:49 2025 +0100 @@ -1006,7 +1006,7 @@ @return flag indicating a end of string match filter @rtype bool """ - for index, filterChar in enumerate(filterString): # noqa: Y111 + for index, filterChar in enumerate(filterString): # noqa: Y-111 if filterChar in ["^", "*"]: return False elif filterChar == "|":
--- a/src/eric7/WebBrowser/Bookmarks/BookmarksManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -446,11 +446,11 @@ fpath = fpath.with_suffix(ex) if fpath.suffix == ".html": - from .NsHtmlWriter import NsHtmlWriter # __IGNORE_WARNING_I101__ + from .NsHtmlWriter import NsHtmlWriter # __IGNORE_WARNING_I-101__ writer = NsHtmlWriter() else: - from .XbelWriter import XbelWriter # __IGNORE_WARNING_I101__ + from .XbelWriter import XbelWriter # __IGNORE_WARNING_I-101__ writer = XbelWriter() if not writer.write(str(fpath), self.__bookmarkRootNode):
--- a/src/eric7/WebBrowser/Download/DownloadManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Download/DownloadManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -584,7 +584,7 @@ @rtype QWinTaskbarButton or None """ if OSUtilities.isWindowsPlatform(): - from PyQt6.QtWinExtras import QWinTaskbarButton # __IGNORE_WARNING_I10__ + from PyQt6.QtWinExtras import QWinTaskbarButton # __IGNORE_WARNING_I-10__ if self.__winTaskbarButton is None: window = WebBrowserWindow.mainWindow()
--- a/src/eric7/WebBrowser/Network/NetworkManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Network/NetworkManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -99,7 +99,7 @@ ) if engine: - from eric7.QtHelpInterface.QtHelpSchemeHandler import ( # noqa: I101 + from eric7.QtHelpInterface.QtHelpSchemeHandler import ( # noqa: I-101 QtHelpSchemeHandler, )
--- a/src/eric7/WebBrowser/OpenSearch/OpenSearchEngineModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/OpenSearch/OpenSearchEngineModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -92,7 +92,7 @@ else: return self.__manager.enginesCount() - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the number of columns of the model.
--- a/src/eric7/WebBrowser/Passwords/PasswordManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Passwords/PasswordManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -425,7 +425,7 @@ ) progress.setMinimumDuration(0) progress.setWindowTitle(self.tr("Passwords")) - count = 0 # noqa: Y113 + count = 0 # noqa: Y-113 # step 1: do the logins for key in self.__logins:
--- a/src/eric7/WebBrowser/Passwords/PasswordModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Passwords/PasswordModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -111,7 +111,7 @@ else: return self.__manager.sitesCount() - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the number of columns of the model.
--- a/src/eric7/WebBrowser/Sync/FtpSyncHandler.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Sync/FtpSyncHandler.py Mon Feb 24 15:43:49 2025 +0100 @@ -111,7 +111,7 @@ self.__initialSync() self.__state = "idle" self.__idleTimer.start() - except ftplib.all_errors + (EricFtpProxyError,) as err: # noqa: M530 + except ftplib.all_errors + (EricFtpProxyError,) as err: # noqa: M-530 self.syncError.emit(str(err)) def __connectAndLogin(self):
--- a/src/eric7/WebBrowser/Sync/SyncManager.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Sync/SyncManager.py Mon Feb 24 15:43:49 2025 +0100 @@ -78,11 +78,11 @@ if self.syncEnabled(): if Preferences.getWebBrowser("SyncType") == SyncGlobals.SyncTypeFtp: - from .FtpSyncHandler import FtpSyncHandler # __IGNORE_WARNING_I101__ + from .FtpSyncHandler import FtpSyncHandler # __IGNORE_WARNING_I-101__ self.__handler = FtpSyncHandler(self) elif Preferences.getWebBrowser("SyncType") == SyncGlobals.SyncTypeDirectory: - from .DirectorySyncHandler import ( # __IGNORE_WARNING_I101__ + from .DirectorySyncHandler import ( # __IGNORE_WARNING_I-101__ DirectorySyncHandler, )
--- a/src/eric7/WebBrowser/Tools/Scripts.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Tools/Scripts.py Mon Feb 24 15:43:49 2025 +0100 @@ -75,7 +75,7 @@ }})()""" - from eric7.WebBrowser.WebBrowserPage import ( # __IGNORE_WARNING_I101__ + from eric7.WebBrowser.WebBrowserPage import ( # __IGNORE_WARNING_I-101__ WebBrowserPage, )
--- a/src/eric7/WebBrowser/Tools/WebBrowserTools.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Tools/WebBrowserTools.py Mon Feb 24 15:43:49 2025 +0100 @@ -226,7 +226,7 @@ @rtype tuple of (str, str, str) """ try: - from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I10__ + from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I-10__ qWebEngineChromiumSecurityPatchVersion, qWebEngineChromiumVersion, qWebEngineVersion, @@ -237,7 +237,7 @@ webengineVersion = qWebEngineVersion() except ImportError: # backwards compatibility for PyQt < 6.3.1 - from PyQt6.QtWebEngineCore import QWebEngineProfile # __IGNORE_WARNING_I10__ + from PyQt6.QtWebEngineCore import QWebEngineProfile # __IGNORE_WARNING_I-10__ useragent = QWebEngineProfile.defaultProfile().httpUserAgent() match = re.search(r"""Chrome/([\d.]+)""", useragent)
--- a/src/eric7/WebBrowser/Tools/WebIconProvider.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/Tools/WebIconProvider.py Mon Feb 24 15:43:49 2025 +0100 @@ -110,7 +110,7 @@ if not self.__loaded: return - from eric7.WebBrowser.WebBrowserWindow import ( # __IGNORE_WARNING_I101__ + from eric7.WebBrowser.WebBrowserWindow import ( # __IGNORE_WARNING_I-101__ WebBrowserWindow, )
--- a/src/eric7/WebBrowser/UserAgent/UserAgentModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/UserAgent/UserAgentModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -92,7 +92,7 @@ else: return self.__manager.hostsCount() - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the number of columns of the model.
--- a/src/eric7/WebBrowser/WebAuth/WebBrowserWebAuthDialog.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/WebAuth/WebBrowserWebAuthDialog.py Mon Feb 24 15:43:49 2025 +0100 @@ -340,7 +340,7 @@ ) elif ( requestFailureReason - == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorRemovedDuringPinEntry # noqa: E501 + == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorRemovedDuringPinEntry # noqa: E-501 ): errorMsg = self.tr( "Security key removed during verification. Please reinsert and try" @@ -348,17 +348,17 @@ ) elif ( requestFailureReason - == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingResidentKeys # noqa: E501 + == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingResidentKeys # noqa: E-501 ): errorMsg = self.tr("Security key does not have resident key support.") elif ( requestFailureReason - == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingUserVerification # noqa: E501 + == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingUserVerification # noqa: E-501 ): errorMsg = self.tr("Security key is missing user verification.") elif ( requestFailureReason - == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingLargeBlob # noqa: E501 + == QWebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingLargeBlob # noqa: E-501 ): errorMsg = self.tr("Security key is missing Large Blob support.") elif (
--- a/src/eric7/WebBrowser/WebBrowserPage.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/WebBrowserPage.py Mon Feb 24 15:43:49 2025 +0100 @@ -73,7 +73,7 @@ sslConfigurationChanged = pyqtSignal() - if QtUtilities.qVersionTuple() >= (6, 8, 0): # noqa: Y108 + if QtUtilities.qVersionTuple() >= (6, 8, 0): # noqa: Y-108 PermissionTypeQuestions = { QWebEnginePermission.PermissionType.Geolocation: QCoreApplication.translate( "WebBrowserPage",
--- a/src/eric7/WebBrowser/WebBrowserView.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/WebBrowserView.py Mon Feb 24 15:43:49 2025 +0100 @@ -251,7 +251,7 @@ self.__rwhvqt.grabGesture(Qt.GestureType.PinchGesture) self.__rwhvqt.installEventFilter(self) else: - print("Focus proxy is null!") # __IGNORE_WARNING_M801__ + print("Focus proxy is null!") # __IGNORE_WARNING_M-801__ def __currentEngineChanged(self): """ @@ -2622,7 +2622,7 @@ @param accessRequest reference to the file system access request object @type QWebEngineFileSystemAccessRequest """ - from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I102__ + from PyQt6.QtWebEngineCore import ( # __IGNORE_WARNING_I-102__ QWebEngineFileSystemAccessRequest, )
--- a/src/eric7/WebBrowser/WebBrowserWindow.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/WebBrowserWindow.py Mon Feb 24 15:43:49 2025 +0100 @@ -4020,7 +4020,7 @@ Private slot to manage the QtHelp documentation database. """ if WebBrowserWindow._useQtHelp: - from eric7.QtHelpInterface.QtHelpDocumentationConfigurationDialog import ( # noqa: I101 + from eric7.QtHelpInterface.QtHelpDocumentationConfigurationDialog import ( # noqa: I-101 QtHelpDocumentationConfigurationDialog, ) @@ -4119,7 +4119,7 @@ help database. """ if WebBrowserWindow._useQtHelp: - from eric7.QtHelpInterface.HelpDocsInstaller import ( # noqa: I101 + from eric7.QtHelpInterface.HelpDocsInstaller import ( # noqa: I-101 HelpDocsInstaller, ) @@ -4300,7 +4300,7 @@ """ if QtUtilities.qVersionTuple() >= (6, 8, 0): # Qt 6.8+ - from .FeaturePermissions.FeaturePermissionsDialog import ( # noqa: I101 + from .FeaturePermissions.FeaturePermissionsDialog import ( # noqa: I-101 FeaturePermissionsDialog, )
--- a/src/eric7/WebBrowser/ZoomManager/ZoomValuesModel.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/WebBrowser/ZoomManager/ZoomValuesModel.py Mon Feb 24 15:43:49 2025 +0100 @@ -92,7 +92,7 @@ else: return self.__manager.sitesCount() - def columnCount(self, parent=None): # noqa: U100 + def columnCount(self, parent=None): # noqa: U-100 """ Public method to get the number of columns of the model.
--- a/src/eric7/eric7_api.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/eric7_api.py Mon Feb 24 15:43:49 2025 +0100 @@ -84,7 +84,7 @@ "-o", "--output", default="", - help="Write the API information to the named file. A '%%L'" # noqa: M601 + help="Write the API information to the named file. A '%%L'" # noqa: M-601 " placeholder is replaced by the language of the API file (see --language).", required=True, ) @@ -315,4 +315,4 @@ main() # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/eric7_browser.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/eric7_browser.py Mon Feb 24 15:43:49 2025 +0100 @@ -126,7 +126,7 @@ sys.exit(0) elif res < 0: print("eric7_browser: {0}".format(client.errstr())) - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ sys.exit(res) res = Startup.appStartup(args, createMainWidget, installErrorHandler=True, app=app)
--- a/src/eric7/eric7_doc.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/eric7_doc.py Mon Feb 24 15:43:49 2025 +0100 @@ -483,4 +483,4 @@ main() # -# eflag: noqa = M801 +# eflag: noqa = M-801
--- a/src/eric7/eric7_ide.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/eric7_ide.py Mon Feb 24 15:43:49 2025 +0100 @@ -231,7 +231,7 @@ elif res < 0: print("eric7: {0}".format(client.errstr())) - # __IGNORE_WARNING_M801__ + # __IGNORE_WARNING_M-801__ sys.exit(res) @@ -296,7 +296,7 @@ qWarning(warning) else: warning = notice + msg + versionInfo - print(warning) # __IGNORE_WARNING_M801__ + print(warning) # __IGNORE_WARNING_M-801__ def uiStartUp(): @@ -359,7 +359,7 @@ app = EricApplication(args) logging.getLogger(__name__).debug("Importing Preferences") - from eric7 import Preferences # __IGNORE_WARNING_I101__ + from eric7 import Preferences # __IGNORE_WARNING_I-101__ if Preferences.getUI("SingleApplicationMode"): handleSingleApplication() @@ -371,7 +371,7 @@ Startup.initializeResourceSearchPath(app) # generate and show a splash window, if not suppressed - from eric7.UI.SplashScreen import ( # __IGNORE_WARNING_I101__ + from eric7.UI.SplashScreen import ( # __IGNORE_WARNING_I-101__ NoneSplashScreen, SplashScreen, ) @@ -402,7 +402,7 @@ loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",)) # generate a graphical error handler - from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ + from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I-101__ eMsg = EricErrorMessage.qtHandler( minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") @@ -410,7 +410,7 @@ eMsg.setMinimumSize(600, 400) # Initialize SSL stuff - from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ + from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I-101__ initSSL() @@ -419,7 +419,7 @@ # We can only import these after creating the EricApplication because they # make Qt calls that need the EricApplication to exist. - from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ + from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I-101__ splash.showMessage( QCoreApplication.translate("eric7_ide", "Generating Main Window...")
--- a/src/eric7/eric7_post_install.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/eric7_post_install.py Mon Feb 24 15:43:49 2025 +0100 @@ -66,7 +66,7 @@ @rtype Any """ try: - import winreg # __IGNORE_WARNING_I10__ + import winreg # __IGNORE_WARNING_I-10__ except ImportError: return None @@ -126,8 +126,8 @@ @param iconPath path of the icon file @type str """ - from pywintypes import com_error # __IGNORE_WARNING_I102__ - from win32com.client import Dispatch # __IGNORE_WARNING_I102__ + from pywintypes import com_error # __IGNORE_WARNING_I-102__ + from win32com.client import Dispatch # __IGNORE_WARNING_I-102__ with contextlib.suppress(com_error): shell = Dispatch("WScript.Shell")