summaryrefslogtreecommitdiff
path: root/buildscripts/libdeps
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/libdeps')
-rw-r--r--buildscripts/libdeps/libdeps/analyzer.py7
-rw-r--r--buildscripts/libdeps/libdeps/graph.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/buildscripts/libdeps/libdeps/analyzer.py b/buildscripts/libdeps/libdeps/analyzer.py
index 3844eed85ab..f32f0e7a4b9 100644
--- a/buildscripts/libdeps/libdeps/analyzer.py
+++ b/buildscripts/libdeps/libdeps/analyzer.py
@@ -399,10 +399,9 @@ class ExcludeDependencies(Analyzer):
valid_depender_nodes = []
for depender_node in set(self.graph[self.nodes[0]]):
- if all([
+ if all(
bool(excludes_node not in set(self.graph.rgraph[depender_node]))
- for excludes_node in self.nodes[1:]
- ]):
+ for excludes_node in self.nodes[1:]):
valid_depender_nodes.append(depender_node)
return valid_depender_nodes
@@ -590,7 +589,7 @@ class GaJsonPrinter(GaPrinter):
def print(self):
"""Print the result data."""
- import json
+ import json # pylint: disable=import-outside-toplevel
results = self.libdeps_graph_analysis.get_results()
print(json.dumps(self.serialize(results)))
diff --git a/buildscripts/libdeps/libdeps/graph.py b/buildscripts/libdeps/libdeps/graph.py
index 03b2a29f4f9..3f3f444a2ff 100644
--- a/buildscripts/libdeps/libdeps/graph.py
+++ b/buildscripts/libdeps/libdeps/graph.py
@@ -31,6 +31,8 @@ from enum import Enum, auto
import networkx
+# pylint: disable=invalid-name
+
class CountTypes(Enum):
"""Enums for the different types of counts to perform on a graph."""