Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm5343 committed Feb 23, 2025
1 parent 392a768 commit d96b9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cycl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def app() -> None:
configure_log(getattr(logging, args.log_level))

dep_graph = build_dependency_graph(
cdk_out_path=args.cdk_out,
cdk_out_path=args.cdk_out,
nodes_to_ignore=args.ignore_nodes,
edges_to_ignore=args.ignore_edge,
)
Expand Down
4 changes: 2 additions & 2 deletions src/cycl/cycl.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def build_dependency_graph(
for importing_stack_name in export['ImportingStackNames']:
if importing_stack_name not in nodes_to_ignore:
edge = (export['ExportingStackName'], importing_stack_name)
if list(edge) not in edges_to_ignore:
if list(edge) not in edges_to_ignore:
edges.append(edge)

if edges:
dep_graph.add_edges_from(ebunch_to_add=edges)
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_app_topo_acyclic_ignore_passes_arg(mock_build_dependency_graph, cmd):
app()

mock_build_dependency_graph.assert_called_once_with(
cdk_out_path=None,
cdk_out_path=None,
nodes_to_ignore=['3'],
edges_to_ignore=[],
)
Expand Down

0 comments on commit d96b9a8

Please sign in to comment.