From 9810aa80f17bf35a6bda7bc8240bbf730ef3b4ed Mon Sep 17 00:00:00 2001 From: Omri Yoffe Date: Tue, 22 Oct 2024 14:55:41 +0300 Subject: [PATCH] formatting --- checkov/arm/graph_builder/context_definitions.py | 1 - checkov/arm/graph_builder/local_graph.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/checkov/arm/graph_builder/context_definitions.py b/checkov/arm/graph_builder/context_definitions.py index cdb4299820d..c38a94bf10a 100644 --- a/checkov/arm/graph_builder/context_definitions.py +++ b/checkov/arm/graph_builder/context_definitions.py @@ -8,4 +8,3 @@ def build_definitions_context(definitions: Dict[Path, Any], definitions_raw: Dic ) -> Dict[str, Dict[str, Any]]: # TODO pass - diff --git a/checkov/arm/graph_builder/local_graph.py b/checkov/arm/graph_builder/local_graph.py index cc155065791..4fdaf1a065b 100644 --- a/checkov/arm/graph_builder/local_graph.py +++ b/checkov/arm/graph_builder/local_graph.py @@ -24,7 +24,6 @@ def __init__(self, definitions: dict[str, dict[str, Any]]) -> None: self.vertices_by_path_and_id: dict[tuple[str, str], int] = {} self.vertices_by_name: dict[str, int] = {} - def build_graph(self, render_variables: bool = False) -> None: self._create_vertices() logging.debug(f"[ArmLocalGraph] created {len(self.vertices)} vertices") @@ -129,7 +128,7 @@ def _create_edge(self, element_name: str, origin_vertex_index: int, label: str) self.in_edges[dest_vertex_index].append(edge) def _create_implicit_edges(self, origin_vertex_index: int, resource_name: str, d: dict[str, Any]) -> None: - for key, value in d.items(): + for _, value in d.items(): if isinstance(value, str): if 'reference' in value: self._create_implicit_edge(origin_vertex_index, resource_name, value) @@ -138,7 +137,6 @@ def _create_implicit_edge(self, origin_vertex_index: int, resource_name: str, re dep_name = extract_resource_name_from_reference_func(reference_string) self._create_edge(dep_name, origin_vertex_index, f'{resource_name}->{dep_name}') - def update_vertices_configs(self) -> None: # not used pass