diff options
author | David Bradford <david.bradford@mongodb.com> | 2021-03-01 12:35:13 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-01 23:46:55 +0000 |
commit | a22cbaba0634e6d20244b75c94e8e693e961399d (patch) | |
tree | 37cbc45eae4d174299f33515ea97214789b9cb75 /buildscripts/libdeps | |
parent | fae0542f9ff0be300a5a6d1eb901b15f5a0953dd (diff) | |
download | mongo-a22cbaba0634e6d20244b75c94e8e693e961399d.tar.gz |
SERVER-54861: Update pylint to 2.7.2
Diffstat (limited to 'buildscripts/libdeps')
-rw-r--r-- | buildscripts/libdeps/libdeps/analyzer.py | 7 | ||||
-rw-r--r-- | buildscripts/libdeps/libdeps/graph.py | 2 |
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.""" |