Skip to content

Instantly share code, notes, and snippets.

@bukzor
Created May 23, 2024 16:53
Show Gist options
  • Save bukzor/33512c19ab47607a733fd8396adb3522 to your computer and use it in GitHub Desktop.
Save bukzor/33512c19ab47607a733fd8396adb3522 to your computer and use it in GitHub Desktop.
diff --git a/gcloud/lib/gcloud_logging_json_to_messages.py b/gcloud/lib/gcloud_logging_json_to_messages.py
index f873758..43d0faf 100755
--- a/gcloud/lib/gcloud_logging_json_to_messages.py
+++ b/gcloud/lib/gcloud_logging_json_to_messages.py
@@ -173,10 +173,14 @@ def get_rpc_method_names(proto: json.Object) -> str:
except KeyError:
pass
- return ".".join((
- gcp_json_get(proto, str, "serviceName").replace(".googleapis.com", ""),
- gcp_json_get(proto, str, "methodName").split(".")[-1],
- ))
+ return ".".join(
+ (
+ gcp_json_get(proto, str, "serviceName").replace(
+ ".googleapis.com", ""
+ ),
+ gcp_json_get(proto, str, "methodName").split(".")[-1],
+ )
+ )
def get_rpc_response(proto: json.Object) -> list[str]:
diff --git a/terragrunt/refresh_symlinks.py b/terragrunt/refresh_symlinks.py
index f0fc02c..ee9a39a 100755
--- a/terragrunt/refresh_symlinks.py
+++ b/terragrunt/refresh_symlinks.py
@@ -169,17 +169,21 @@ def infer_symlink_src(dst: Path) -> Path:
def get_added_but_ignored_files() -> set[Path]:
- return set([
- Path(path)
- for path in sh_lines((
- "git",
- "ls-files",
- "--cached",
- "--ignored",
- "--exclude-standard",
- ".",
- ))
- ])
+ return set(
+ [
+ Path(path)
+ for path in sh_lines(
+ (
+ "git",
+ "ls-files",
+ "--cached",
+ "--ignored",
+ "--exclude-standard",
+ ".",
+ )
+ )
+ ]
+ )
def get_src_keepers(src_paths: set[Path]) -> set[Path]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment