Skip to content

Commit

Permalink
disable pylint for two lines due to bugs
Browse files Browse the repository at this point in the history
temporarily disabling pylint as it has an active bug for two lines: pylint-dev/pylint#3675
  • Loading branch information
aafshinfard authored Apr 1, 2021
1 parent a51a9ea commit 8abcb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physlr/physlr.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def determine_backbones_of_trees(g, prune_junctions):
for subcomponent in nx.connected_components(gcomponents):
gsubcomponent = g.subgraph(subcomponent)
u, v, _ = Physlr.diameter_of_tree(gsubcomponent, weight="m")
path = nx.shortest_path(gsubcomponent, u, v, weight="m")
path = nx.shortest_path(gsubcomponent, u, v, weight="m") # pylint: disable=E1121, 1123
paths.append(path)
paths.sort(key=len, reverse=True)
print(
Expand Down Expand Up @@ -1266,7 +1266,7 @@ def physlr_tiling_graph(self):
g = self.read_graph(self.args.FILES)
Physlr.filter_edges(g, self.args.m)
backbones = self.determine_backbones(g)
tiling = {u for path in backbones for u in nx.shortest_path(g, path[0], path[-1])}
tiling = {u for path in backbones for u in nx.shortest_path(g, path[0], path[-1])} # pylint: disable=E1121, 1123
subgraph = g.subgraph(tiling)
self.write_graph(subgraph, sys.stdout, self.args.graph_format)

Expand Down

0 comments on commit 8abcb7b

Please sign in to comment.