scripts/install.py

branch
eric7-maintenance
changeset 11155
e1843b6efa73
parent 11118
967a88a16a21
parent 11148
15e30f0c76a8
diff -r 32d0ec15eba0 -r e1843b6efa73 scripts/install.py
--- a/scripts/install.py	Sun Feb 09 15:47:57 2025 +0100
+++ b/scripts/install.py	Sat Mar 01 15:52:40 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

eric ide

mercurial