skylos 1.2.1__py3-none-any.whl → 1.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of skylos might be problematic. Click here for more details.
- skylos/analyzer.py +7 -4
- {skylos-1.2.1.dist-info → skylos-1.2.2.dist-info}/METADATA +1 -1
- {skylos-1.2.1.dist-info → skylos-1.2.2.dist-info}/RECORD +6 -6
- {skylos-1.2.1.dist-info → skylos-1.2.2.dist-info}/WHEEL +0 -0
- {skylos-1.2.1.dist-info → skylos-1.2.2.dist-info}/entry_points.txt +0 -0
- {skylos-1.2.1.dist-info → skylos-1.2.2.dist-info}/top_level.txt +0 -0
skylos/analyzer.py
CHANGED
|
@@ -283,10 +283,13 @@ class Skylos:
|
|
|
283
283
|
|
|
284
284
|
unused = []
|
|
285
285
|
for d in self.defs.values():
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
286
|
+
# skip anything on line that carries ignore pragma
|
|
287
|
+
if d.line in self.ignored_lines:
|
|
288
|
+
continue
|
|
289
|
+
|
|
290
|
+
if (d.references == 0 and not d.is_exported
|
|
291
|
+
and d.confidence >= thr):
|
|
292
|
+
unused.append(d.to_dict())
|
|
290
293
|
|
|
291
294
|
result = {
|
|
292
295
|
"unused_functions": [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
skylos/__init__.py,sha256=ZZWhq0TZ3G-yDi9inbYvMn8OBes-pqo1aYB5EivuxFI,152
|
|
2
|
-
skylos/analyzer.py,sha256=
|
|
2
|
+
skylos/analyzer.py,sha256=cO6J-hOsdJLoyw2vkL2BdX_fS-i5R50suLuh1QqPly4,15144
|
|
3
3
|
skylos/cli.py,sha256=6udZY4vLU6PFzVMkaiCLCRcLXgquyHdmf4rIOAPosWc,18266
|
|
4
4
|
skylos/constants.py,sha256=F1kMjuTxfw2hJjd0SeOQcgex5WhHMUhXCzOlVmwuACs,1230
|
|
5
5
|
skylos/framework_aware.py,sha256=p7BGoFnzkpaLJoE3M5qgyIeZvXx17tOkdyXgeqGKmqU,5804
|
|
@@ -25,8 +25,8 @@ test/sample_repo/sample_repo/commands.py,sha256=b6gQ9YDabt2yyfqGbOpLo0osF7wya8O4
|
|
|
25
25
|
test/sample_repo/sample_repo/models.py,sha256=xXIg3pToEZwKuUCmKX2vTlCF_VeFA0yZlvlBVPIy5Qw,3320
|
|
26
26
|
test/sample_repo/sample_repo/routes.py,sha256=8yITrt55BwS01G7nWdESdx8LuxmReqop1zrGUKPeLi8,2475
|
|
27
27
|
test/sample_repo/sample_repo/utils.py,sha256=S56hEYh8wkzwsD260MvQcmUFOkw2EjFU27nMLFE6G2k,1103
|
|
28
|
-
skylos-1.2.
|
|
29
|
-
skylos-1.2.
|
|
30
|
-
skylos-1.2.
|
|
31
|
-
skylos-1.2.
|
|
32
|
-
skylos-1.2.
|
|
28
|
+
skylos-1.2.2.dist-info/METADATA,sha256=2cvKXdg5thOkSpCbaN7jQ3Lwa10jVmVVB6KvDST3ZOw,224
|
|
29
|
+
skylos-1.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
skylos-1.2.2.dist-info/entry_points.txt,sha256=zzRpN2ByznlQoLeuLolS_TFNYSQxUGBL1EXQsAd6bIA,43
|
|
31
|
+
skylos-1.2.2.dist-info/top_level.txt,sha256=f8GA_7KwfaEopPMP8-EXDQXaqd4IbsOQPakZy01LkdQ,12
|
|
32
|
+
skylos-1.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|