Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/gcp/fix_plugin_gcp/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def collect_resources(cls: Type[GcpResource], builder: GraphBuilder, **kwargs: A
items = builder.client.list(spec, **kwargs)
resources = cls.collect(items, builder)
log.info(
f"[GCP:{builder.project.id}:{builder.region.safe_name if builder.region else "global"}] finished collecting: {cls.kind}"
f"[GCP:{builder.project.id}:{builder.region.safe_name if builder.region else 'global'}] finished collecting: {cls.kind}"
)
return resources
return []
Expand Down
2 changes: 1 addition & 1 deletion plugins/gcp/fix_plugin_gcp/resources/filestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def collect_snapshots() -> None:
for snapshot in snapshots:
graph_builder.add_edge(self, node=snapshot)
log.info(
f"[GCP:{graph_builder.project.id}:{graph_builder.region.safe_name if graph_builder.region else "global"}] finished collecting: {GcpFilestoreInstanceSnapshot.kind}"
f"[GCP:{graph_builder.project.id}:{graph_builder.region.safe_name if graph_builder.region else 'global'}] finished collecting: {GcpFilestoreInstanceSnapshot.kind}"
)

graph_builder.submit_work(collect_snapshots)
Expand Down
2 changes: 1 addition & 1 deletion plugins/gcp/fix_plugin_gcp/resources/firestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def collect_documents() -> None:
for document in documents:
graph_builder.add_edge(self, node=document)
log.info(
f"[GCP:{graph_builder.project.id}:{graph_builder.region.safe_name if graph_builder.region else "global"}] finished collecting: {GcpFirestoreDocument.kind}"
f"[GCP:{graph_builder.project.id}:{graph_builder.region.safe_name if graph_builder.region else 'global'}] finished collecting: {GcpFirestoreDocument.kind}"
)

graph_builder.submit_work(collect_documents)
Expand Down
2 changes: 1 addition & 1 deletion plugins/gcp/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ commands= pytest
commands = black --line-length 120 --check --diff --target-version py39 .

[testenv:mypy]
commands= mypy --install-types --non-interactive --python-version 3.12 --strict fix_plugin_gcp test
commands= mypy --install-types --non-interactive --python-version 3.12 --strict --allow-untyped-decorators --disable-error-code no-any-return --disable-error-code unused-ignore --disable-error-code misc --disable-error-code call-arg fix_plugin_gcp test