RadonMetrics/CodeMetricsCalculator.py

branch
eric7
changeset 109
47df4b69f699
parent 107
0843dd7239f6
child 110
261babeb7cc6
--- a/RadonMetrics/CodeMetricsCalculator.py	Sat May 27 15:34:14 2023 +0200
+++ b/RadonMetrics/CodeMetricsCalculator.py	Wed Aug 30 13:20:08 2023 +0200
@@ -29,7 +29,10 @@
     return batchRawCodeMetrics
 
 
-def rawCodeMetrics(file, text=""):  # noqa: U100
+def rawCodeMetrics(
+    file,  # noqa: U100
+    text="",
+):
     """
     Private function to calculate the raw code metrics of one file.
 
@@ -144,7 +147,7 @@
     @return tuple containing the result dictionary
     @rtype (tuple of dict)
     """
-    from radon.raw import analyze
+    from radon.raw import analyze  # noqa: I102
 
     try:
         res = __raw2Dict(analyze(text))

eric ide

mercurial